function validate(txt)
{
x=document.memberForm
dental_office = x.dental_office.value
//memberID = x.memberID.value
email=x.email.value.search('@')
first_name=x.first_name.value
last_name=x.last_name.value
address=x.address.value
city=x.city.value
state=x.state.options
//country=x.country.options
zip=x.zip.value
phone=x.phone.value
//referred_by=x.referred_by.options
//contact_about=x.contact_about.options
if (txt == '') {
if (x.plan_question.checked!=1 && x.request_ID_card.checked!=1 && x.update_contact_info.checked!=1 && x.other.checked!=1 && x.change_provider.checked!=1)
 {
 alert("Please select one or more requests.")
 x.plan_question.focus()
 return false
 }
}
if (x.change_provider.checked==1 && dental_office.length <1)
 {
 alert("You selected to change providers. Please enter a provider number.")
 x.dental_office.focus()
 return false
 }

/*if (memberID.length<1)
 {
 alert("Please enter a member ID")
 x.memberID.focus();
 return false
 }*/
if (first_name.length<1)
 {
 alert("Please enter a first name")
 x.first_name.focus();
 return false
 }
if (last_name.length<1)
 {
 alert("Please enter a last name")
 x.last_name.focus();
 return false
 }
if (address.length<1)
 {
 alert("Please enter an address")
 x.address.focus()
 return false
 }
if (city.length<1)
 {
 alert("Please enter a city")
 x.city.focus()
 return false
 }
if (state.selectedIndex==0)
 {
 alert("Please select a state")
 x.state.focus()
 return false
 }
if (zip.length<5)
 {
 alert("Please enter a zip")
 x.zip.focus()
 return false
 }
 if (phone.length<10)
 {
 alert("Please enter a telephone number.")
 x.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
  }
 //if (referred_by.selectedIndex==0)
// {
//  alert("Please tell us how you found out about us.")
//  x.referred_by.focus()
//  return false
//  }
//  if (x.referred_by.selectedIndex==7)
// {
//	  if (x.referred_by_other.value.length<=0)
//	  {
//	  alert("Please fill out the \"referred by other\" field.")
//	  x.referred_by_other.focus()
//	  return false
//	  }
//  }
// if (contact_about.selectedIndex==0)
// {
//  alert("Please tell us what your are contacting us about.")
//  x.contact_about.focus()
//  return false
//  }
// if (x.contact_about.selectedIndex==3)
// {
//	  if (x.contact_about_other.value.length<=0)
//	  {
//	  alert("Please fill out the \"contact about other\" field.")
//	  x.contact_about_other.focus()
//	  return false
//	  }
//  }

else
 {
 return true
 } 

}