<!--
function fnCheck()
{
	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;
	IReason	=	document.frmLandPage.cboInReason[document.frmLandPage.cboInReason.selectedIndex].value;
	GetStart=	document.frmLandPage.cboGetStart[document.frmLandPage.cboGetStart.selectedIndex].value;
	ImpNeed	=	document.frmLandPage.cboImpNeed[document.frmLandPage.cboImpNeed.selectedIndex].value;
	MoneyNeed=	document.frmLandPage.cboMoneyNeed[document.frmLandPage.cboMoneyNeed.selectedIndex].value;
	
	
	if (Firstname == '')
	{
		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( !isCharsOk( Zip, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+- "))
		{
			alert("Zip code should not contain any special characters");
			document.frmLandPage.TxtZip.focus();
			return false;
		}
	else if(Age == '')
	{
		alert('Please select the Age ');
		document.frmLandPage.cboAge.focus();
		return false;
	}
	else if(IReason == '')
	{
		alert('Please select the reason');
		document.frmLandPage.cboIncomeReason.focus();
		return false;
	}
	else if(GetStart == '')
	{
		alert('Please select when you will get started');
		document.frmLandPage.cboGetStart.focus();
		return false;
	}
	else if(ImpNeed == '')
	{
		alert('Please select the thing which is important in business ');
		document.frmLandPage.cboImpNeed.focus();
		return false;
	}	
	else if(MoneyNeed == '')
	{
		alert('Please select the Money needed');
		document.frmLandPage.cboMoneyNeed.focus();
		return false;
	}		
	else
	{
		document.frmLandPage.action = "SaveLP-B.asp?qryFrom=LP14-b.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;
}
function isCharsOk(sFirstName, sList)
	 {
		var i,c;
		for (i = 0; i < sFirstName.length; i++)
		{
		      c = sFirstName.charAt(i);
		      	if (sList.indexOf(c) == -1)
				  return false; 
		}
		return true;
     }
//-->