

function __CheckLandingForm()
{
	var theform;
	var postback = true;
		
	if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
	{
		theform = document.forms["frm"];
	}
	else
	{
		theform = document.frm;
	}
					
	
	if (theform.txt_mobilenumber.value == "")
	{
		alert('Please Enter Mobile Number(State Code)')
		theform.txt_mobilenumber.focus();
		postback = false; 
		return false;
	}	
	if (!isPhone(theform.txt_mobilenumber.value))
	{	
		theform.txt_mobilenumber.focus();
		return false;
	}
	
	if (theform.txt_mobilenumber2.value == "")
	{
		alert('Please Enter Mobile Number(Exchange Code)')
		theform.txt_mobilenumber2.focus();
		postback = false; 
		return false;
	}	
	if (!isPhone(theform.txt_mobilenumber2.value))
	{	
		theform.txt_mobilenumber2.focus();
		return false;
	}
	
	if (theform.txt_mobilenumber3.value == "")
	{
		alert('Please Enter Mobile Number')
		theform.txt_mobilenumber3.focus();
		postback = false; 
		return false;
	}
	if (!isPhone(theform.txt_mobilenumber3.value))
	{	
		theform.txt_mobilenumber3.focus();
		return false;
	}	
	if(theform.drp_carrier.value == 0)
	{
		alert("Please select mobile carrier");
		theform.drp_carrier.focus();
		postback = false; 
		return false;
	}	
	if (theform.txt_Email.value == "")
	{
		alert('Please Enter Email Address.')
		theform.txt_Email.focus();
		postback = false; 
		return false;
	}		
	if (theform.txt_VerifyEmail.value == "")
	{
		alert('Please Enter Verify Email Address')
		theform.txt_VerifyEmail.focus();
		postback = false; 
		return false;
	}	
	/*
	if (!checkEmail(theform.txt_Email.value))
	{
		theform.txt_Email.focus();
		return false;
	}
	if (!checkEmail(theform.txt_VerifyEmail.value))
	{
		theform.txt_VerifyEmail.focus();
		return false;
	}
	*/	
	if(alltrim(theform.txt_VerifyEmail.value)!= alltrim(theform.txt_Email.value))
	{
		alert("Email Address MisMatch");
		theform.txt_VerifyEmail.focus();
		postback = false; 
		return false;
	}		
	
	if (theform.txt_bofMonth.value == "")
	{
		alert('Please Enter Month ')
		theform.txt_bofMonth.focus();
		postback = false; 
		return false;
	}	
	if (!isDigit(theform.txt_bofMonth.value))
	{	
		theform.txt_bofMonth.focus();
		return false;
	}
	
	if (theform.txt_bofDay.value == "")
	{
		alert('Please Enter Date ')
		theform.txt_bofDay.focus();
		postback = false; 
		return false;
	}	
	if (!isDigit(theform.txt_bofDay.value))
	{	
		theform.txt_bofDay.focus();
		return false;
	}	
	if (theform.txt_bofYear.value == "")
	{
		alert('Please Enter Year ')
		theform.txt_bofYear.focus();
		postback = false; 
		return false;
	}	
	if (!isDigit(theform.txt_bofYear.value))
	{	
		theform.txt_bofYear.focus();
		return false;
	}
	
	theform.txtRegDate.value = theform.txt_bofMonth.value + "/" + theform.txt_bofDay.value + "/" + theform.txt_bofYear.value;
	
	if (!dateCheck(theform.txtRegDate))
	{	
		theform.txt_bofMonth.focus();
		return false;
	}
	
	if ((postback == true))
	{	
		theform._submittype.value=true;
		theform.submit();
	}
}
