<!--
function fnCheck()
{
	name=document.frmLandPage.TxtFirstName.value;
	
	Firstname=	document.frmLandPage.TxtFirstName.value;
	LastName=	document.frmLandPage.TxtlastName.value;
	Email	=	document.frmLandPage.Txtemail.value;
	Phone1  =	document.frmLandPage.Txtphone1.value;
	Address	=	document.frmLandPage.TxtAddress.value;
	City	=	document.frmLandPage.TxtCity.value;
	State	=	document.frmLandPage.cboState[document.frmLandPage.cboState.selectedIndex].value;
	Zip		=	document.frmLandPage.TxtZip.value;
	Country	=	document.frmLandPage.cboCountry[document.frmLandPage.cboCountry.selectedIndex].value;
	Age		=	document.frmLandPage.cboAge[document.frmLandPage.cboAge.selectedIndex].value;
	vBusiness=	document.frmLandPage.TxtBusiness.value;
	vHours	=	document.frmLandPage.cboHours[document.frmLandPage.cboHours.selectedIndex].value;
	GetStart=	document.frmLandPage.cboGetStart[document.frmLandPage.cboGetStart.selectedIndex].value;
	vMoney	=	document.frmLandPage.cboMoney[document.frmLandPage.cboMoney.selectedIndex].value;
	vTimeToReach=document.frmLandPage.cboTimeToReach[document.frmLandPage.cboTimeToReach.selectedIndex].value;
	vFindSiteBy=document.frmLandPage.cboFindSiteBy[document.frmLandPage.cboFindSiteBy.selectedIndex].value;

	if (name == '')
	{
		alert('Please enter the First Name');
		document.frmLandPage.TxtFirstName.focus();
		return false;
	}
	else if(LastName == '')
	{
		alert('Please enter the Last Name');
		document.frmLandPage.TxtlastName.focus();
		return false;
	}
	else if(Email == '')
	{
		alert('Please enter the Email');
		document.frmLandPage.Txtemail.focus();
		return false;
	}
	else if(ValidEmail()!=true)
	{
		errmsg = ValidEmail();
		alert(errmsg);
		document.frmLandPage.Txtemail.focus();
	}
	else if(Phone1 == '')
	{
		alert('The Phone Number is Incomplete');
		document.frmLandPage.Txtphone1.focus();
		return false;
	}
	else if ( !isCharsOk( Phone1, "0123456789 +-"))
	{
		alert("Phone number should not contain any special characters");
		document.frmLandPage.Txtphone1.focus();
	}
	else if(Address == '')
	{
		alert('Please enter the Address ');
		document.frmLandPage.TxtAddress.focus();
		return false;
	}
	else if(City == '')
	{
		alert('Please enter the City ');
		document.frmLandPage.TxtCity.focus();
		return false;
	}
	else if(State == '')
	{
		alert('Please select the State ');
		document.frmLandPage.cboState.focus();
		return false;
	}
	else if(Country == '')
	{
		alert('Please select the Country ');
		document.frmLandPage.cboCountry.focus();
		return false;
	}
	else if(Zip == '')
	{
		alert('Please enter valid zip ');
		document.frmLandPage.TxtZip.focus();
		return false;
	}
	else if(Age == '')
	{
		alert('Please select the Age ');
		document.frmLandPage.cboAge.focus();
		return false;
	}
	else if(vBusiness == '')
	{
		alert('Please enter your current bussiness');
		document.frmLandPage.TxtBusiness.focus();
		return false;
	}
	else if(vHours == '')
	{
		alert('Please select the Hours you are ready to spend to build the business');
		document.frmLandPage.cboHours.focus();
		return false;
	}
	else if(GetStart == '')
	{
		alert('Please select when you will get started');
		document.frmLandPage.cboGetStart.focus();
		return false;
	}
	else if(vMoney == '')
	{
		alert('Please select how much money you can invest');
		document.frmLandPage.cboMoney.focus();
		return false;
	}
	else if(vTimeToReach == '')
	{
		alert('Please select the best time to reach you');
		document.frmLandPage.cboTimeToReach.focus();
		return false;
	}
	else if(vFindSiteBy == '')
	{
		alert('Please tell us how did you find our site');
		document.frmLandPage.cboFindSiteBy.focus();
		return false;
	}	
	else
	{
		document.frmLandPage.action = "SaveLP-C.asp?qryFrom=LP14-c.asp";
		document.frmLandPage.submit();
		return false;
	}
}  
function ValidEmail()	// email validation
{
	var email1,atemail,atoccurance,splitter;
	email1 = document.frmLandPage.Txtemail.value;
	atemail=email1.indexOf("@");

	if (atemail==-1)
	{
		return "Your E-Mail id seems incorrect. Please check the '@' and '.' characters in your E-Mail id.";
	}
	else
	{
		atoccurence=email1.indexOf("@");
		dotcheck=email1.indexOf(".",atoccurence);
		if (dotcheck==-1)
		{
			return "Your E-Mail id seems incorrect. Please check";
		}
		splitter=email1.substring(atoccurence+1,2);
		if (splitter==".")
		{
			return "Your E-Mail id seems incorrect. Please check";
		}
		if(email1.indexOf("@.")!=-1)
		{
			return "Email should not have '@' immediately followed by '.'";
		}
		len=email1.length-1;
		if(email1.substr(len,1)==".")
		{
			return "Email should not have '.' as the last character";
		}
		checky = email1.substr(len,1);
		if ((checky=="~")||(checky=="!")||(checky=="#")||(checky=="$")||(checky=="$")||(checky=="%")||(checky=="^")||(checky=="&")||(checky=="*")||(checky=="(")||(checky==")")||(checky=="_")||(checky=="+")||(checky=="|")||(checky=="-")||(checky=="?")||(checky==">")||(checky=="<")||(checky=="/")||(checky=="{")||(checky=="}")||(checky=="[")||(checky=="]")||(checky=="'")||(checky==":")||(checky==";")||(checky==",")||(checky=="`"))
		{
			return "Your E-Mail id seems incorrect. Please check";
		}
		if(email1.substr(0,1)=="@")
		{
			return "Email should not have '@' as the first character";
		}
		if(email1.substr(0,1)==".")
		{
			return "Email should not have '.' as the first character";
		}
		var speChar=0;
		for(i=0;i<email1.length;i++)
		{
			if(email1.substr(i,1)=="@")
			{
				speChar+=1;
			}
		}
		if(speChar>1)
		{
			return "Email should not have more than one '@'";
		}
	}
	return true;
}
  
//-->