var selected;
function shippingMethod()
{  
document.getElementById('checkout_address').submit();
return true;

}

function selectRowEffect(object, buttonSelect) {

  if (!selected) {
    if (document.getElementById) {
	
      selected = document.getElementById('defaultSelected');
    } else {
	
      selected = document.all['defaultSelected'];
    }
  }

  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;

// one button is not an array
  if (document.checkout_address.shipping[0]) {
    document.checkout_address.shipping[buttonSelect].checked=true;
  } else {
    document.checkout_address.shipping.checked=true;
  }
}


function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}

var Bill_firstname = "";
var Bill_lastname ="";
var Bill_street_address="";
var Bill_postcode="";
var Bill_city="";
var Bill_state="";
var Bill_company="";
var Bill_country="";
var Bill_country_Index=0;
var Bill_state_Index=0;
 


function InitSaveVariables(form) {
Bill_firstname = form.Bill_firstname.value;
//Bill_lastname = form.Bill_lastname.value;
Bill_street_addresss = form.Bill_street_address.value;
Bill_street_addresss1 = form.Bill_street_address.value;
Bill_postcode=form.Bill_postcode.value;
Bill_city=form.Bill_city.value;
Bill_company=form.Bill_company.value;
Bill_country_Index=form.Bill_country.selectedIndex;
Bill_state_Index=form.Bill_state.selectedIndex;
//Bill_country=form.Bill_country[Bill_country_Index].value;
Bill_country=form.Bill_country.value;
Bill_state=form.Bill_state.value;
 }
function ShipToBillPerson(form) {
//AjaxFunctionBill(form.country.value);
if (form.copy.checked) {
InitSaveVariables(form);
form.Bill_firstname.value = form.firstname.value;
//form.Bill_lastname.value = form.lastname.value;
form.Bill_company.value=form.company.value;
form.Bill_street_address.value=form.street_address.value;
form.Bill_postcode.value=form.postcode.value;
form.Bill_city.value=form.city.value;
form.Bill_country.value=form.country.value;
form.Bill_state.value=form.state.value;
 }else
{
form.Bill_firstname.value = Bill_firstname;
//form.Bill_lastname.value=Bill_lastname;
form.Bill_company.value=Bill_company;
form.Bill_street_address.value=Bill_street_addresss1;
form.Bill_postcode.value=Bill_postcode;
form.Bill_city.value=Bill_city;
form.Bill_country.value=Bill_country;
form.Bill_state.value=Bill_state;
}
}

function check_terms()
{

return true;


}


 
function getCountryBill(form) {
form.Bill_country.value=form.country.value;
}


