function validate(txt)
{
x=document.forms[0]
company=x.company.value
contact_name=x.contact_name.value
address=x.address.value
city=x.city.value
//country=x.country.options
zip=x.zip.value
day_phone=x.day_phone.value
evening_phone=x.evening_phone.value
email=x.email.value.search('@')
if (contact_name.length<3)
 {
 alert("Please enter a contact name")
 x.contact_name.focus()
 return false
 }
if (address.length<4)
 {
 alert("Please enter an address")
 x.address.focus()
 return false
 }
if (city.length<2)
 {
 alert("Please enter a city")
 x.city.focus()
 return false
 }

if (zip.length<5)
 {
 alert("Please enter a zip")
 x.zip.focus()
 return false
 }
 if (day_phone.length<10)
 {
 alert("Please enter a daytime telephone number.")
 x.day_phone.focus()
 return false
 }
  if (evening_phone.length<10)
 {
 alert("Please enter a evening telephone number.")
 x.evening_phone.focus()
 return false
 }
 if (email == -1)
 {
  alert("Please enter a valid email address. Your email address \
should be in this format: xxx@xxx.com.")
  x.email.focus()
  return false
  }
else
 {
 return true
 } 
}