<!--
function Valid(theForm)
{


	//Verify First Name has a value
	if  (theForm.first_name.value.length==0)
	{
  		alert("First Name is required.");
		theForm.first_name.focus();
		return (false);
	}

	//Verify Last Name has a value
	if  (theForm.last_name.value.length==0)
	{
   		alert("Last Name is required.");
		theForm.last_name.focus();
		return (false);
	}


	//Verify Email has a value
	 if  (theForm.email.value.length == "" )
	{
   		alert("Email is required.");
		theForm.email.focus();
		return (false);
	}


	//Verify Email has a value
	 if  (theForm.email.value.length==0)
	{
   		alert("Email is required.");
		theForm.email.focus();
		return (false);
	}
	 else
	{
	//Verify valid email address
		if (!isEmailAddr(theForm.email.value))
		{
			alert("Please enter a valid email address.");
			theForm.email.focus();
			return (false);
		}
	} 

	//Verify State selected if Country is US/Canada
	  CountryChoice = theForm.country.selectedIndex
  	if ((theForm.country.options[CountryChoice].value == "Canada") || (theForm.country.options[CountryChoice].value == "USA"))
	{
	  	STChoice = theForm.state.selectedIndex
		  if (theForm.state.options[STChoice].value == "")
		  {
		     	alert("You must pick a State/Province");
			return (false);
		   } 
	}




function isEmailAddr(email)
{
  	var result = false;
	var theStr = new String(email);
  	var index = theStr.indexOf("@");
	if (index > 0) {
  		var pindex = theStr.indexOf(".",index);
  		if ((pindex > index+1) && (theStr.length > pindex+1)) {
			result = true;
  		}
	}
	return result;
}


	return(true);
}



function  Validtext(theForm)
{

	//Verify First Name has a value
	if  (theForm.first_name.value.length==0)
	{
  		alert("First Name is required.");
		theForm.first_name.focus();
		return (false);
	}

	//Verify Last Name has a value
	if  (theForm.last_name.value.length==0)
	{
   		alert("Last Name is required.");
		theForm.last_name.focus();
		return (false);
	}


	//Verify Phone has a value
	if  (theForm.phone.value.length==0)
	{
		alert("Phone is required.");
		theForm.phone.focus();
		return (false);
	}
	else
	{
	//Verify Phone Format
		if  (theForm.phone.value.length<=5)
		{
			alert("Phone Number is invalid.");
			theForm.phone.focus();
			return (false);
		}
	}


	//Verify State selected if Country is US/Canada
	  CountryChoice = theForm.country.selectedIndex
  	if ((theForm.country.options[CountryChoice].value == "Canada") || (theForm.country.options[CountryChoice].value == "USA"))
	{
	  	STChoice = theForm.state.selectedIndex
		  if (theForm.state.options[STChoice].value == 0)
		  {
		     	alert("You must pick a State/Province");
			return (false);
		   } 
	}




	//Verify State selected if Country is US/Canada
	  CountryChoice = theForm.country.selectedIndex
  	if ((theForm.country.options[CountryChoice].value == "Canada") || (theForm.country.options[CountryChoice].value == "USA"))
	{
	  	STChoice = theForm.state.selectedIndex
		  if (theForm.state.options[STChoice].value == "")
		  {
		     	alert("You must pick a State/Province");
			return (false);
		   } 
	}


	//Verify Email has a value
	 if  (theForm.email.value.length == "" )
	{
   		alert("Email is required.");
		theForm.email.focus();
		return (false);
	}


	//Verify Email has a value
	 if  (theForm.email.value.length==0)
	{
   		alert("Email is required.");
		theForm.email.focus();
		return (false);
	}
	 else
	{
	//Verify valid email address
		if (!isEmailAddr(theForm.email.value))
		{
			alert("Please enter a valid email address.");
			theForm.email.focus();
			return (false);
		}
	} 


	return(true);
}

function FrontPage_Form1_Validator(theForm)
{

	//Verify First Name has a value
	if  (theForm.first_name.value.length==0)
	{
  		alert("First Name is required.");
		theForm.first_name.focus();
		return (false);
	}

	//Verify Last Name has a value
	if  (theForm.last_name.value.length==0)
	{
   		alert("Last Name is required.");
		theForm.last_name.focus();
		return (false);
	}

	//Verify Title has a value
	if  (theForm.title.value.length==0)
	{
   		alert("Title is required.");
		theForm.title.focus();
		return (false);
	}


	//Verify Phone has a value
	if  (theForm.phone.value.length==0)
	{
		alert("Phone is required.");
		theForm.phone.focus();
		return (false);
	}
	else
	{
	//Verify Phone Format
		if  (theForm.phone.value.length<=5)
		{
			alert("Phone Number is invalid.");
			theForm.phone.focus();
			return (false);
		}
	}

	//Verify Company has a value
	if  (theForm.company.value.length==0)
	{
   		alert("Company is required.");
		theForm.company.focus();
		return (false);
	}

	//Verify Address has a value
	if  (theForm.street.value.length==0)
	{
   		alert("Address is required.");
		theForm.street.focus();
		return (false);
	}

	//Verify City has a value
	if  (theForm.city.value.length==0)
	{
   		alert("City is required.");
		theForm.city.focus();
		return (false);
	}

	//Verify State has a value
	if  (theForm.state.value.length==0)
	{
   		alert("State or Province is required.");
		theForm.state.focus();
		return (false);
	}

	//Verify Zip has a value
	if  (theForm.zip.value.length==0)
	{
   		alert("Zip or Postal Code is required.");
		theForm.zip.focus();
		return (false);
	}

	//Verify Country has a value
	if  (theForm.country.value.length==0)
	{
   		alert("Country is required.");
		theForm.country.focus();
		return (false);
	}

	//Verify Email has a value
	 if  (theForm.email.value.length==0)
	{
   		alert("Email is required.");
		theForm.email.focus();
		return (false);
	}
	 else
	{
	//Verify valid email address
		if (!isEmailAddr(theForm.email.value))
		{
			alert("Please enter a valid email address.");
			theForm.email.focus();
			return (false);
		}
	} 


	return(true);
}


//-->