function Validator(theForm)
{
if (theForm.CO_NAME.value == "")
{
alert("Please enter your name or the name of the business.");
theForm.CO_NAME.focus();
return (false);
}
if (theForm.NAME.value == "")
{
alert("Please enter a Contact Name.");
theForm.NAME.focus();
return (false);
}
if (theForm.PHONE_NUMBER.value.length < 10)
{
alert("Please enter a valid Phone Number including area code.");
theForm.PHONE_NUMBER.focus();
return (false);
}
if (theForm.EMAIL.value.length < 6)
{
alert("Please enter a valid Email Address.");
theForm.EMAIL.focus();
return (false);
}
if (theForm.ADDRESS_1.value == "")
{
alert("Please enter your Address.");
theForm.ADDRESS_1.focus();
return (false);
}
if (theForm.CITY.value == "")
{
alert("Please enter your City.");
theForm.CITY.focus();
return (false);
}
if (theForm.STATE.value == "")
{
alert("Please select your State.");
theForm.STATE.focus();
return (false);
}
if (theForm.ZIP.value == "")
{
alert("Please enter your Zip Code.");
theForm.ZIP.focus();
return (false);
}

if (theForm.BILL_CO_NAME.value == "")
{
alert("Please enter your name or the name of the business.");
theForm.BILL_CO_NAME.focus();
return (false);
}
if (theForm.BILL_NAME.value == "")
{
alert("Please enter Billing Contact Name.");
theForm.BILL_CO_NAME.focus();
return (false);
}
if (theForm.BILL_PHONE_NUMBER.value.length < 10)
{
alert("Please enter a valid Billing Phone Number including area code.");
theForm.BILL_PHONE_NUMBER.focus();
return (false);
}
if (theForm.BILL_EMAIL.value.length < 6)
{
alert("Please enter a Billing Email Address.");
theForm.BILL_EMAIL.focus();
return (false);
}
if (theForm.BILL_ADDRESS_1.value == "")
{
alert("Please enter your Billing Address.");
theForm.BILL_ADDRESS_1.focus();
return (false);
}
if (theForm.BILL_CITY.value == "")
{
alert("Please enter your Billing City.");
theForm.BILL_CITY.focus();
return (false);
}
if (theForm.BILL_STATE.value == "")
{
alert("Please select your Billing State.");
theForm.BILL_STATE.focus();
return (false);
}
if (theForm.BILL_ZIP.value == "")
{
alert("Please enter your Billing Zip Code.");
theForm.BILL_ZIP.focus();
return (false);
}

if (theForm.ATTENDEE_1_NAME.value == "")
{
alert("Please enter the Attendee's Name.");
theForm.ATTENDEE_1_NAME.focus();
return (false);
}
if (theForm.ATTENDEE_1_TITLE.value == "")
{
alert("Please enter the Attendee's Title.");
theForm.ATTENDEE_1_TITLE.focus();
return (false);
}
if (theForm.ATTENDEE_1_EMAIL.value == "")
{
alert("Please enter the Attendee's Email Address.");
theForm.ATTENDEE_1_EMAIL.focus();
return (false);
}
if (theForm.ATTENDEE_1_DATE.value == "")
{
alert("Please select the Symposium Date you would like to attend.");
theForm.ATTENDEE_1_DATE.focus();
return (false);
}
if (theForm.TES_OWNER.value == "")
{
alert("Are you a TES Owner?");
theForm.TES_OWNER.focus();
return (false);
}
if (theForm.referredby.value == "")
{
alert("Please tell us how you heard about Planning to Win.");
theForm.ILS_DIST_NAME.focus();
return (false);
}

if (theForm.referredby.value == "ILS Distributor")
{
  if (theForm.ILS_DIST_NAME.value == "")
  {
  alert("Please enter the Name of the Interlink Supply Distributor that referred you.");
  theForm.ILS_DIST_NAME.focus();
  return (false);
  }
  if (theForm.ILS_SALESPERSON_NAME.value == "")
  {
  alert("Please enter the Name of the Salesperson that referred you.");
  theForm.ILS_SALESPERSON_NAME.focus();
  return (false);
  }
  if (theForm.ILS_CITY_STATE.value == "")
  {
  alert("Please enter the City & State of the Interlink Supply Distributor that referred you.");
  theForm.ILS_CITY_STATE.focus();
  return (false);
  }
}

if (theForm.referredby.value == "Magazine Advertisement")
{
  if (theForm.REF_MAG.value == "")
  {
  alert("Please enter the Name of the magazine.");
  theForm.REF_MAG.focus();
  return (false);
  }
}

if (theForm.referredby.value == "Internet Search")
{
  if (theForm.referredbynet.value == "")
  {
  alert("Please select the Search Engine you used to find us.");
  theForm.REF_NET_OTHER.focus();
  return (false);
  }
  if (theForm.referredbynet.value == "Other Search Engine")
  {
    if (theForm.REF_NET_OTHER.value == "")
	{
	alert("Please enter the Name of the Search Engine you used to find us.");
	theForm.REF_NET_OTHER.focus();
	return (false);
	}
  }
}

if (theForm.referredby.value == "Other")
{
  if (theForm.REF_OTH.value == "")
  {
  alert("Please tell us how you heard about Planning to Win.");
  theForm.REF_OTH.focus();
  return (false);
  }
}

if (theForm.moreattendee2.value == "Yes")
{
  if (theForm.ATTENDEE_2_NAME.value == "")
  {
  alert("Please enter the Attendee's Name.");
  theForm.ATTENDEE_2_NAME.focus();
  return (false);
  }
  if (theForm.ATTENDEE_2_TITLE.value == "")
  {
  alert("Please enter the Attendee's Title.");
  theForm.ATTENDEE_2_TITLE.focus();
  return (false);
  }
  if (theForm.ATTENDEE_2_EMAIL.value == "")
  {
  alert("Please enter the Attendee's Email Address.");
  theForm.ATTENDEE_2_EMAIL.focus();
  return (false);
  }
}

if (theForm.moreattendee3.value == "Yes")
{
  if (theForm.ATTENDEE_3_NAME.value == "")
  {
  alert("Please enter the Attendee's Name.");
  theForm.ATTENDEE_3_NAME.focus();
  return (false);
  }
  if (theForm.ATTENDEE_3_TITLE.value == "")
  {
  alert("Please enter the Attendee's Title.");
  theForm.ATTENDEE_3_TITLE.focus();
  return (false);
  }
  if (theForm.ATTENDEE_3_EMAIL.value == "")
  {
  alert("Please enter the Attendee's Email Address.");
  theForm.ATTENDEE_3_EMAIL.focus();
  return (false);
  }
}

if (theForm.moreattendee4.value == "Yes")
{
  if (theForm.ATTENDEE_4_NAME.value == "")
  {
  alert("Please enter the Attendee's Name.");
  theForm.ATTENDEE_4_NAME.focus();
  return (false);
  }
  if (theForm.ATTENDEE_4_TITLE.value == "")
  {
  alert("Please enter the Attendee's Title.");
  theForm.ATTENDEE_4_TITLE.focus();
  return (false);
  }
  if (theForm.ATTENDEE_4_EMAIL.value == "")
  {
  alert("Please enter the Attendee's Email Address.");
  theForm.ATTENDEE_4_EMAIL.focus();
  return (false);
  }
}

if (theForm.moreattendee5.value == "Yes")
{
  if (theForm.ATTENDEE_5_NAME.value == "")
  {
  alert("Please enter the Attendee's Name.");
  theForm.ATTENDEE_5_NAME.focus();
  return (false);
  }
  if (theForm.ATTENDEE_5_TITLE.value == "")
  {
  alert("Please enter the Attendee's Title.");
  theForm.ATTENDEE_5_TITLE.focus();
  return (false);
  }
  if (theForm.ATTENDEE_5_EMAIL.value == "")
  {
  alert("Please enter the Attendee's Email Address.");
  theForm.ATTENDEE_5_EMAIL.focus();
  return (false);
  }
}

if (theForm.hotelstay.value == "")
{
alert("Please complete the hotel information. If you do not need a hotel during the symposium, please check the 'I do not need hotel.' radio button.");
return(false);
}

if (theForm.PAYMENT_METHOD.value == "select")
{
alert("Please select a Credit Card Type.");
theForm.PAYMENT_METHOD.focus();
return(false);
}
if (theForm.CARD_NUMBER.value == "")
{
alert("Please enter a valid credit card number.");
theForm.CARD_NUMBER.focus();
return(false);
}
if (theForm.EXPIRES_MONTH.value == "--")
{
alert("Please select a Valid Expiration Month.");
theForm.EXPIRES_MONTH.focus();
return(false);
}
if (theForm.EXPIRES_YEAR.value == "------")
{
alert("Please select a Valid Expiration Year.");
theForm.EXPIRES_YEAR.focus();
return(false);
}
if (theForm.NAME_ON_CREDIT_CARD.value == "")
{
alert("Please enter the card holder's name.");
theForm.NAME_ON_CREDIT_CARD.focus();
return(false);
}

return (true);
}

