function verifyDetails(obj)
{

  if(obj.bill_name.value == "")
  {
    alert("Please enter the cardholder name.");
    obj.bill_name.focus();
	//obj.bill_name.bgcolor == #FFFFFF
	obj.bill_name.select();
    return (false);
  }
  
  
  if(obj.bill_addr_1.value == "")
  {
    alert("Please enter the first line of your address.");
    obj.bill_addr_1.focus();
	obj.bill_addr_1.select();
    return (false);
  }
  
  
      if(obj.bill_city.value == "")
  {
    alert("Please enter the town or city.");
    obj.bill_city.focus();
	obj.bill_city.select();
    return (false);
  }
  
        if(obj.bill_state.value == "")
  {
    alert("Please enter the county or state.");
    obj.bill_state.focus();
	obj.bill_state.select();
    return (false);
  }
  
        if(obj.bill_post_code.value == "")
  {
    alert("To ensure accurate delivery, we also require a postcode or zip code.");
    obj.bill_post_code.focus();
	obj.bill_post_code.select();
    return (false);
  }
  
/*     if(obj.bill_country.value == "")
  {
    alert("Please enter the country you live in.");
    obj.bill_country.focus();
	obj.bill_country.select();
    return (false);
  } 
  
 */
  
 
   if(obj.bill_email.value == "")
  {
    alert("Please enter an E-mail address to send your order confirmation to.");
    obj.bill_email.focus();
	obj.bill_email.select()
    return (false);
  }
  
  
/* if(obj.replyToCheck.value == "")
  {
    alert("Please enter your E-mail address a 2nd time for a comparison.");
    obj.replyToCheck.focus();
	obj.replyToCheck.select();
    return (false);
  }
  

  

if(obj.bill_email.value != obj.replyToCheck.value)
	{alert("The E-mail address you have entered does not match\n the confirmation, please check them carefully!")
	
	obj.replyToCheck.focus()
	obj.replyToCheck.select()
	 return(false)
	 }
 
*/
   
   
 if(obj.bill_tel.value == "")
  {
    alert("Please enter a contact telephone number.");
    obj.bill_tel.focus();
	obj.bill_tel.select();
    return (false);
  }



  var checkOK = "0123456789-+()#{}[] \t\r\n\f";
  var checkStr = obj.bill_tel.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("This field accepts only digits and the characters  + - ( ) # { } [ ] ");
    obj.bill_tel.focus()
	obj.bill_tel.select()
    return (false);
  }

 
 /*
  	if(obj.marketing_source.options[obj.marketing_source.selectedIndex].value == "0")
	{
	alert("Please tell us how you heard about Avion.");
    obj.marketing_source.focus();
    return (false);
	}
	
*/

return (true);

}




function fillDelivery(fieldName)

{

	var newFormField

	newFormField = fieldName.name.replace("bill_", "ship_")
	
	document.forms[0].elements[newFormField].value = fieldName.value
}
