function optinCheck()
{

if (document.form.FirstName.value == "")
  {
  alert("Please enter your First Name.");
  document.form.FirstName.focus();
  return false;
  }
if (document.form.LastName.value == "")
  {
  alert("Please enter your Last Name.");
  document.form.LastName.focus();
  return false;
  }
if (document.form.Address.value == "")
  {
  alert("Please enter your Street Address.");
  document.form.Address.focus();
  return false;
  }
if (document.form.City.value == "")
  {
  alert("Please enter your City.");
  document.form.City.focus();
  return false;
  }
if (document.form.Phone.value == "")
  {
  alert("Please enter your Phone Number.");
  document.form.Phone.focus();
  return false;
  }

if (!document.form.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your Email or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.Email.focus();
	return false;
	}
}

function paymentCheck()
{

if (document.form.Name.value == "")
  {
  alert("Please enter your First and Last Name.");
  document.form.Name.focus();
  return false;
  }
if (!document.form.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your Email or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.Email.focus();
	return false;
	}
if (document.form.Phone.value == "")
  {
  alert("Please enter your Phone Number.");
  document.form.Phone.focus();
  return false;
  }
if (document.form.CardType.value == "")
  {
  alert("Please select your card type.");
  document.form.CardType.focus();
  return false;
  }
if (document.form.CardholderName.value == "")
  {
  alert("Please enter the name of the cardholder.");
  document.form.CardholderName.focus();
  return false;
  }
if (document.form.CardNumber.value == "")
  {
  alert("Please enter the card number without dashes or spaces.");
  document.form.CardNumber.focus();
  return false;
  }
if (document.form.CVVCode.value == "")
  {
  alert("Please enter the 3 or 4 digit CVV code located on the front of the card or back of card in the signature area.");
  document.form.CVVCode.focus();
  return false;
  }
if (document.form.CardExpirationMonth.value == "")
  {
  alert("Please select the month the card expires.");
  document.form.CardExpirationMonth.focus();
  return false;
  }
if (document.form.CardExpirationYear.value == "")
  {
  alert("Please select the year the card expires.");
  document.form.CardExpirationYear.focus();
  return false;
  }
if (document.form.CardBillingAddress.value == "")
  {
  alert("Please enter the billing address for your card.");
  document.form.CardBillingAddress.focus();
  return false;
  }
if (document.form.CardBillingCity.value == "")
  {
  alert("Please enter the billing city for your card.");
  document.form.CardBillingCity.focus();
  return false;
  }
if (document.form.CardBillingState.value == "")
  {
  alert("Please enter the billing state for your card.");
  document.form.CardBillingState.focus();
  return false;
  }
if (document.form.CardBillingCountry.value == "")
  {
  alert("Please enter the billing country for your card.");
  document.form.CardBillingCountry.focus();
  return false;
  }
if (document.form.CardBillingZip.value == "")
  {
  alert("Please enter the billing postal code for your card.");
  document.form.CardBillingZip.focus();
  return false;
  }

}

function ssCheck()
{

if (document.form.Name.value == "")
  {
  alert("Please enter your First and Last Name.");
  document.form.Name.focus();
  return false;
  }
if (!document.form.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your Email or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.Email.focus();
	return false;
	}
if (document.form.Phone.value == "")
  {
  alert("Please enter your Phone Number.");
  document.form.Phone.focus();
  return false;
  }
if (document.form.CardType.value == "")
  {
  alert("Please select your card type.");
  document.form.CardType.focus();
  return false;
  }
if (document.form.CardholderName.value == "")
  {
  alert("Please enter the name of the cardholder.");
  document.form.CardholderName.focus();
  return false;
  }
if (document.form.CardNumber.value == "")
  {
  alert("Please enter the card number without dashes or spaces.");
  document.form.CardNumber.focus();
  return false;
  }
if (document.form.CVVCode.value == "")
  {
  alert("Please enter the 3 or 4 digit CVV code located on the front of the card or back of card in the signature area.");
  document.form.CVVCode.focus();
  return false;
  }
if (document.form.CardExpirationMonth.value == "")
  {
  alert("Please select the month the card expires.");
  document.form.CardExpirationMonth.focus();
  return false;
  }
if (document.form.CardExpirationYear.value == "")
  {
  alert("Please select the year the card expires.");
  document.form.CardExpirationYear.focus();
  return false;
  }
if (document.form.CardBillingAddress.value == "")
  {
  alert("Please enter the billing address for your card.");
  document.form.CardBillingAddress.focus();
  return false;
  }
if (document.form.CardBillingCity.value == "")
  {
  alert("Please enter the billing city for your card.");
  document.form.CardBillingCity.focus();
  return false;
  }
if (document.form.CardBillingState.value == "")
  {
  alert("Please enter the billing state for your card.");
  document.form.CardBillingState.focus();
  return false;
  }
if (document.form.CardBillingCountry.value == "")
  {
  alert("Please enter the billing country for your card.");
  document.form.CardBillingCountry.focus();
  return false;
  }
if (document.form.CardBillingZip.value == "")
  {
  alert("Please enter the billing postal code for your card.");
  document.form.CardBillingZip.focus();
  return false;
  }
if (document.form.OwnRent.value == "")
  {
  alert("Please select your ownership status for the requested service location.");
  document.form.OwnRent.focus();
  return false;
  }
if (document.form.SSN.value == "")
  {
  alert("Please enter your social security number or tax id number.");
  document.form.SSN.focus();
  return false;
  }
if (document.form.DLN.value == "")
  {
  alert("Please enter your drivers license number.");
  document.form.DLN.focus();
  return false;
  }

}

function emailCheck()
{

if (document.form.Name.value == "")
  {
  alert("Please enter your First and Last Name.");
  document.form.Name.focus();
  return false;
  }
if (!document.form.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your E-Mail or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.Email.focus();
	return false;
	}
if (document.form.Phone.value == "")
  {
  alert("Please enter your Phone Number.");
  document.form.Phone.focus();
  return false;
  }
if (document.form.email1.value == "")
  {
  alert("Please enter the part before the @ symbol that you would like to use.");
  document.form.email1.focus();
  return false;
  }
if (document.form.pwd1.value == "")
  {
  alert("Please enter the password you would like to use for the requested e-mail address above.");
  document.form.pwd1.focus();
  return false;
  }

}

function sitesurveyCheck()
{

if (document.form.Name.value == "")
  {
  alert("Please enter the prospect's First and Last Name.");
  document.form.Name.focus();
  return false;
  }
if (!document.form.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter the prospect's E-Mail or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.\n\nIf you forgot to get the prospect's E-Mail Address, just\nenter sitesurvey@kywifi.com for their e-mail address.");
 document.form.Email.focus();
	return false;
	}
if (document.form.PhoneHome.value == "")
  {
  alert("Please enter the prospect's Home Phone Number.");
  document.form.PhoneHome.focus();
  return false;
  }
if (document.form.Address1.value == "")
  {
  alert("Please enter the prospect's Street Address.");
  document.form.Address1.focus();
  return false;
  }
if (document.form.City.value == "")
  {
  alert("Please select the prospect's City.");
  document.form.City.focus();
  return false;
  }
if (document.form.Zip.value == "")
  {
  alert("Please the prospect's Zip Code.");
  document.form.Zip.focus();
  return false;
  }

}

function contactformCheck()
{

if (document.form.Department.value == "")
  {
  alert("Please select the Department you would like your inquiry delivered to.");
  document.form.Department.focus();
  return false;
  }
if (document.form.Name.value == "")
  {
  alert("Please enter your First and Last Name.");
  document.form.Name.focus();
  return false;
  }
if (!document.form.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your E-Mail address or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.Email.focus();
	return false;
	}
if (document.form.Phone.value == "")
  {
  alert("Please enter your contact Phone Number.");
  document.form.Phone.focus();
  return false;
  }
if (document.form.Inquiry.value == "")
  {
  alert("Please enter your Inquiry.");
  document.form.Inquiry.focus();
  return false;
  }

}

function dnformCheck()
{

if (document.form.Package.value == "")
  {
  alert("Please select the Dish Network Programming Package you are interested in purchasing.");
  document.form.Package.focus();
  return false;
  }
if (document.form.Locals.value == "")
  {
  alert("Please select whether or not you want Local Channels with your Dish Network programming.");
  document.form.Locals.focus();
  return false;
  }
if (document.form.Name.value == "")
  {
  alert("Please enter your First and Last Name.");
  document.form.Name.focus();
  return false;
  }
if (!document.form.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your E-Mail address or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.Email.focus();
	return false;
	}
if (document.form.Phone.value == "")
  {
  alert("Please enter your contact Phone Number.");
  document.form.Phone.focus();
  return false;
  }

}