var Store = {
  fields: $w("order_billing_first_name order_billing_last_name order_billing_phone_number " +
             "billing_address_address1 billing_address_address2 billing_address_country billing_address_city " + 
             "billing_address_state billing_address_state_province billing_address_postal_code"), 
  
  copy_shipping_to_billing: function() {
    if($("shipping_same_as_billing").checked){
      this.copyShipping();
      toggleStateAndProvince("billing_address");
    }
  },
  
  copyShipping: function(){
    this.fields.each(function(field){
      $(field).value = $F(field.gsub('billing', 'shipping'));
    });
  },
  
  enableBillingFields: function() {
    this.fields.each(function(field){ 
      $(field).enable();  
    });
  }
};