function test ()
{
}

function changeStates(form, item, state)
{
  switch(document.myForm.item.selected){
    case "1":
      document.myForm.state.options[0].value = 'AL';
      document.myForm.state.options[0].text = 'Alabama';
      break;
    default:
      document.myForm.state.options[0].value = 'N/A';
      document.myForm.state.options[0].text = 'Non Canada/U.S.';
      break;
   }
}
      
function fillSame(theForm)
{
  theForm.billStreet.value = theForm.street.value;
  theForm.billTown.value = theForm.town.value;
 theForm.billPostalCode.value = theForm.postalCode.value;
  i = theForm.country.selectedIndex;
  theForm.billCountry.options[i].selected = true; 
  i = theForm.state.selectedIndex;
  theForm.billState.options[i].selected = true;
  theForm.cardName.value = theForm.firstName.value + " " + theForm.lastName.value;
  theForm.billStreet2.value = theForm.street2.value;
} 

function selectState(theForm)
{
  theForm.state.options[2].selected = true;
  theForm.billState.options[2].selected = true;
}