var poll = {
	message : 'Submitting...',
	
	submit : function(id) {
		if ($('poll_button').value == this.message) return
		$('poll_button').value = this.message
		new Ajax.Updater('current_poll_div','/app/poll/ajax_vote/'+id,{
		  parameters:Form.serialize('current_poll_form')
		})
	}
}
var checkout = {
  shippingIsBilling : function(el) {
    if (el.checked) {
      $('billing_address').value = $F('shipping_address')
      $('billing_address_2').value = $F('shipping_address_2')
      $('billing_city').value = $F('shipping_city')
      $('billing_state').value = $F('shipping_state')
	  $('billing_country').value = $F('shipping_country')
      $('billing_zip_code').value = $F('shipping_zip_code')
    }
  }	
}

function fixLeftHeight() {
	if (Element.getHeight('main_inner_content') > Element.getHeight('main_left')) {
		$('main_left').style.height = Element.getHeight('main_inner_content') + 'px'
	}
}