// JavaScript Document

function isEmail(val)
{
	if (!(val.indexOf('\@') > -1))
	{
		alert("Mailaddress must contain a \@");
		return false;
	}
	else if (!(val.indexOf('.') > -1))
	{
		alert("Mailaddress must contain a '.' (dot)");
		return false;
	}
	else if (val.indexOf('\@') == 0)
	{
		alert("Mailaddress can't contain a \@ at the start");
		return false;
	}
	else if (val.indexOf('\@') == (val.indexOf('.')-1))
	{
		alert("Mailaddress can't contain a \@ and '.' side by side");
		return false;
	}
	else if (val.indexOf('.') == 0)
	{
		alert("Mailaddress can't contain a '.' (dot) at the start");
		return false;
	}
	else if (val.indexOf('.') == (val.length-1))
	{
		alert("Mailaddress can't contain a '.' (dot) at the end");
		return false;
	}
	return true;
}

function Trim(inputString, removeChar) 
{
	var returnString = inputString;
	if (removeChar.length)
	{
	  while(''+returnString.charAt(0)==removeChar)
		{
		  returnString=returnString.substring(1,returnString.length);
		}
		while(''+returnString.charAt(returnString.length-1)==removeChar)
	  {
	    returnString=returnString.substring(0,returnString.length-1);
	  }
	}
	return returnString;
}

function isValidData(val,valid,minl,maxl,fieldname,msg)
{
	if(Trim(val,' ')=="")
	{
		alert(fieldname + " is empty.");
		return false;
	}
	else if(val.length<minl || val.length>maxl)
	{
		alert(fieldname + " must be " + minl + " to " + maxl + " character long")
		return false;
	}
	else
	{
		for (var i=0, len=val.length; i<len ; i++) 
		{
			if (valid.indexOf(val.substring(i,i+1)) == -1) 
			{
				var wrong = i*1+1;
				alert(msg + ' ' + fieldname + '. Check character no ' + wrong + '.');
				return false;
			}
		}
	}
	return true;
}

function isValidData1(val,valid,minl,maxl,fieldname,msg)
{
	if(Trim(val,' ')=="")
	{
		alert(fieldname + " is empty.");
		return false;
	}
	else if(val.length<minl || val.length>maxl)
	{
		alert(fieldname + " must be entered with proper area code.")
		return false;
	}
	else
	{
		for (var i=0, len=val.length; i<len ; i++) 
		{
			if (valid.indexOf(val.substring(i,i+1)) == -1) 
			{
				var wrong = i*1+1;
				alert(msg + ' ' + fieldname + '. Check character no ' + wrong + '.');
				return false;
			}
		}
	}
	return true;
}

function ValidateNo( NumStr, String )
{
	for( var Idx = 0; Idx < NumStr.length; Idx ++ )
	{
		var Char = NumStr.charAt( Idx );
		var Match = false;

		for( var Idx1 = 0; Idx1 < String.length; Idx1 ++)
		{
			if( Char == String.charAt( Idx1 ) )
			Match = true;
		}

		if ( !Match )
		return false;
	}
	return true;
}

function isForm1Ok(frm)
{
	if(Trim(frm.email.value," ") == "" )
	{
		alert("Please specify email.");
		frm.email.focus();
		return false;
	}
	else if(!isEmail(frm.email.value))
	{
			frm.email.focus();
			return false;
	}
	/*else if(frm.email.value!="")
	 {
		        pass1=frm.email.value.indexOf('@');
		        pass2=frm.email.value.indexOf('.');
				 
                 len=frm.email.value;
				 l=len.length-1;
				 
                 check1=Math.abs(pass1-pass2);
		if((pass1==-1)||(pass2==-1)||(pass1==0)||(pass2==0)||(pass2==l)||(check1==1)||(pass2<pass1))
		        {    
		           alert("Invalid Email address");
				   
                   frm.email.value="";
			       frm.email.focus();
				   return false;
                }
					
	}*/
	if(Trim(frm.confirmemail.value," ") == "" )
	{
		alert("Please specify confirm email.");
		frm.confirmemail.focus();
		return false;
	}
	else if(!isEmail(frm.confirmemail.value))
	{
		frm.confirmemail.focus();
		return false;
	}
	/*else if(frm.confirmemail.value!="")
	{
		        pass1=frm.confirmemail.value.indexOf('@');
		        pass2=frm.confirmemail.value.indexOf('.');
				 
                 len=frm.confirmemail.value;
				 l=len.length-1;
				 
                 check1=Math.abs(pass1-pass2);
		if((pass1==-1)||(pass2==-1)||(pass1==0)||(pass2==0)||(pass2==l)||(check1==1)||(pass2<pass1))
		        {    
		           alert("Invalid Confirm Email address");
				   
                   frm.confirmemail.value="";
			       frm.confirmemail.focus();
				   return false;
                }
					
	}*/
	return true;
}

function valfrm()
{
	var flag=1;
	for (i=0; i<document.regform.elements.length; i++)
	{		
		if(document.regform.elements[i].selectedIndex==-1)
		flag=0;
	}
	if (flag==0)
	{
		alert("Please select at least Does Not Matter.");
		//document.regform.elements[i].focus();
		return false;
	}
	return true;
}

function isForm2Ok(frm)
{
	if (window.document.regform["age"].options[0].selected)
	{
		alert("Please Select Your Age (Part-1)");
		window.document.regform["age"].focus();
		return false;
	}
	
	if (window.document.regform["complexion"].options[0].selected)
	{
		alert("Please Select Your Complexion (Part-1)");
		window.document.regform["complexion"].focus();
		return false;
	}
	
	if (window.document.regform["ft"].options[0].selected)
	{
		alert("Please Select Your Height in Feet (Part-1)");
		window.document.regform["ft"].focus();
		return false;
	}
	
	if (window.document.regform["inch"].options[0].selected)
	{
		alert("Please Select Your Height in Inche (Part-1)");
		window.document.regform["inch"].focus();
		return false;
	}
	
	/*if (regform.height.value=="")
	{
		alert("Please Enter Your Height (Part-1)");
	 	regform.height.focus();
		return false;
	}
	
	if (window.document.regform["height"].options[0].selected)
	{
		alert("Please Select Your Height (Part-1)")
		window.document.regform["height"].focus()
		return false
	}*/
	
	if (window.document.regform["blood_group"].options[0].selected)
	{
		alert("Please Select Your Blood Group (Part-1)")
		window.document.regform["blood_group"].focus();
		return false;
	}
	
	if (window.document.regform["brother"].options[0].selected)
	{
		alert("Please Select Your No Of Brothers (Part-1)");
		window.document.regform["brother"].focus();
		return false;
	}
	
	if (window.document.regform["sister"].options[0].selected)
	{
		alert("Please Select Your No Of Sisters (Part-1)");
		window.document.regform["sister"].focus();
		return false;
	}
	
	if (window.document.regform["position"].options[0].selected)
	{
		alert("Please Select Your Position (Part-1)");
		window.document.regform["position"].focus();
		return false;
	}

	if (window.document.regform["msiblings"].options[0].selected)
	{
		alert("Please Select No Of Married Sibblings (Part-1)");
		window.document.regform["msiblings"].focus();
		return false;
	}
	
	if (window.document.regform["pstatus"].options[0].selected)
	{
		alert("Please Select Your Parent Status (Part-1)");
		window.document.regform["pstatus"].focus();
		return false
	}
	if (frm.musurname.value=="")
	{
		alert("Please Enter Your Maternal Uncle's Surname (Part-1)");
	 	frm.musurname.focus();
		return false;
	}
	var nm=frm.musurname.value;
	
	/*if ((nm.indexOf("1")!=-1)||
	   (nm.indexOf("2")!=-1)||
	   (nm.indexOf("3")!=-1)||
	   (nm.indexOf("4")!=-1)||
	   (nm.indexOf("5")!=-1)||
	   (nm.indexOf("6")!=-1)||
	   (nm.indexOf("7")!=-1)||
	   (nm.indexOf("8")!=-1)||
	   (nm.indexOf("9")!=-1)||
	   (nm.indexOf("0")!=-1)||
	   (nm.indexOf("@")!=-1)||
	   (nm.indexOf("#")!=-1)||
	   (nm.indexOf("%")!=-1)||
	   (nm.indexOf("&")!=-1)||
	   (nm.indexOf("*")!=-1)||
	   (nm.indexOf("/")!=-1)||
	   (nm.indexOf("-")!=-1))
	
	{alert("Sorry! No Character In Surname");frm.musurname.focus();return false;}*/
	
	var mn=frm.residentstatus.value;
	
	if ((mn.indexOf("1")!=-1)||
	   (mn.indexOf("2")!=-1)||
	   (mn.indexOf("3")!=-1)||
	   (mn.indexOf("4")!=-1)||
	   (mn.indexOf("5")!=-1)||
	   (mn.indexOf("6")!=-1)||
	   (mn.indexOf("7")!=-1)||
	   (mn.indexOf("8")!=-1)||
	   (mn.indexOf("9")!=-1)||
	   (mn.indexOf("0")!=-1)||
	   (mn.indexOf("@")!=-1)||
	   (mn.indexOf("#")!=-1)||
	   (mn.indexOf("%")!=-1)||
	   (mn.indexOf("&")!=-1)||
	   (mn.indexOf("*")!=-1)||
	   (mn.indexOf("/")!=-1)||
	   (mn.indexOf("-")!=-1))
	
	{alert("Please Mention Resident Place Properly");frm.residentstatus.focus();return false;}
	
	if (window.document.regform["origin"].options[0].selected)
	{
		alert("Please Select Your Original State (Part-1)");
		window.document.regform["origin"].focus();
		return false;
	}
	
	if (window.document.regform["religion"].options[0].selected)
	{
		alert("Please Select Your Religion (Part-1)");
		window.document.regform["religion"].focus();
		return false;
	}

	if (window.document.regform["caste"].options[0].selected)
	{
		alert("Please Select Your Caste (Part-1)");
		window.document.regform["caste"].focus();
		return false;
	}
	
	if (window.document.regform["sign"].options[0].selected)
	{
		alert("Please Select Your Sun sign (Part-1)");
		window.document.regform["sign"].focus();
		return false;
	}
	
	
	if (window.document.regform["marital_status"].options[0].selected)
	{
		alert("Please Select Your Marital Status (Part-1)");
		window.document.regform["marital_status"].focus();
		return false;
	}
	
	if (window.document.regform["haschildren"].options[0].selected)
	{
		alert("Please Select Children if you have any (Part-1)");
		window.document.regform["haschildren"].focus();
		return false;
	}
	
	if (window.document.regform["education"].options[0].selected)
	{
		alert("Please Select Your Qualification (Part-1)");
		window.document.regform["education"].focus();
		return false;
	}

	if (window.document.regform["occupation"].options[0].selected)
	{
		alert("Please Select Your Profession (Part-1)");
		window.document.regform["occupation"].focus();
		return false;
	}
	
	/*if (frm.income.value=="")
	{
		alert("Please Enter Your Annual Income (Part-1)");
	 	frm.income.focus();
		return false;
	}
	else if(!isValidData(frm.income.value,"0123456789",5,12,"Annual Income","Only numbers in"))
	{
		frm.income.focus();
		return false;
	}*/
	if (window.document.regform["income"].options[0].selected)
	{
		alert("Please Select Your Annual Income (Part-1)");
		window.document.regform["income"].focus();
		return false;
	}
	
	if (window.document.regform["fatheroccupation"].options[0].selected)
	{
		alert("Please Select Occupation of Your Father (Part-1)");
		window.document.regform["fatheroccupation"].focus();
		return false;
	}
	
	if (window.document.regform["motheroccupation"].options[0].selected)
	{
		alert("Please Select Occupation of Your Mother (Part-1)");
		window.document.regform["motheroccupation"].focus();
		return false;
	}

	/*if (frm.remark.value.length > 250)
	{
		alert("Describe Your Special Remarks in Short (within 250 characters)");
	 	frm.remark.focus();
		return false;
	}*/
	
	//groom looking for
	
	if (window.document.regform["lage"].options[0].selected)
	{
		alert("Please Select Age Limit of Looking for (Part-2)");
		window.document.regform["lage"].focus();
		return false;
	}

	if (window.document.regform["lft"].options[0].selected)
	{
		alert("Please Select Min Height of Looking for in Feet (Part-2)");
		window.document.regform["lft"].focus();
		return false;
	}
	
	if (window.document.regform["linch"].options[0].selected)
	{
		alert("Please Select Min Height of Looking for in Inche (Part-2)");
		window.document.regform["linch"].focus();
		return false;
	}
	
	if(!valfrm())
	{
		return false;
	}
	/*if (window.document.regform["lcomplexion"].options[0].selected)
	{
		alert("Please Select Complexion of Looking for (Part-2)");
		window.document.regform["lcomplexion"].focus();
		return false;
	}
	
	if (regform.lheight.value=="")
	{
		alert("Please Select Min Height of Looking for (Part-2)");
	 	regform.lheight.focus();
		return false;
	}*/
	
	/*if (window.document.regform["lheight"].options[0].selected)
	{
		alert("Please Select Min Height of Looking for (Part-2)");
		window.document.regform["lheight"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["lstate"].options[0].selected)
	{
		alert("Please Select Original State of Looking for (Part-2)");
		window.document.regform["lstate"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrgprabasi"].options[0].selected)
	{
		alert("Please Select Whether Prabasi Looking for is OK (Part-2)")
		window.document.regform["strrgprabasi"].focus()
		return false
	}

	if (window.document.regform["strrgforiegn"].options[0].selected)
	{
		alert("Please Select Foreign Status of Looking for (Part-2)")
		window.document.regform["strrgforiegn"].focus()
		return false
	}

	if (window.document.regform["leducation"].options[0].selected)
	{
		alert("Please Select Qualification Of Looking for (Part-2)");
		window.document.regform["leducation"].focus();
		return false;
	}
	
	if (window.document.regform["lprofession"].options[0].selected)
	{
		alert("Please Select Profession Of Looking for (Part-2)");
		window.document.regform["lprofession"].focus();
		return false;
	}*/
	
	if (window.document.regform["lbusiness"].options[0].selected)
	{
		alert("Please Select Business Status of Looking for (Part-2)");
		window.document.regform["lbusiness"].focus();
		return false;
	}
	
	if (window.document.regform["ldiv"].options[0].selected)
	{
		alert("Please Select Divrocee/Widower Status of Looking for (Part-2)");
		window.document.regform["ldiv"].focus();
		return false;
	}
	
	/*if (window.document.regform["strrghor"].options[0].selected)
	{
		alert("Please Select Horoscope Requirement of Looking for (Part-2)")
		window.document.regform["strrghor"].focus()
		return false
	}
	
	
	if (frm.lcaste.value=="")
	{
		alert("Please Enter Caste Of Looking for (Part-2)");
	 	frm.lcaste.focus();
		return false;
	}*/
	 
	/*if (regform.strrgcaste.value.length > 10)
	{
		alert("Enter Caste of Looking for in Short (within 10 characters)");
	 	regform.strrgcaste.focus();
		return false;
	} 
	 
	if (frm.lremark.value.length > 250)
	{
		alert("Describe Special Remarks in Short (within 250 characters)");
	 	regform.lremark.focus();
		return false;
	} */
	 
	if (frm.name.value=="")
	{
		alert("Please Enter Your Name (Part-3)");
	 	frm.name.focus();
		return false;
	}
	 
	if (frm.gname.value=="")
	{
		alert("Please Enter Guardian's Name (Part-3)");
	 	frm.gname.focus();
		return false;
	}
	 
	if (frm.contactaddress.value=="")
	{
		alert("Please EnterContact Address (Part-3)");
	 	frm.contactaddress.focus();
		return false;
	}
	 
	if (frm.pincode.value=="")
	{
		alert("Please Enter Pincode (Part-3)");
	 	frm.pincode.focus();
		return false;
	}
	/*else if(!isValidData(frm.pincode.value,"0123456789",5,7,"Pincode","Only numbers in"))
	{
		frm.pincode.focus();
		return false;
	}*/
	 
	if (frm.phoneno.value=="")
	{
		alert("Please Enter Telephone No (Part-3)");
	 	frm.phoneno.focus();
		return false;
	}
	/*else if(!isValidData1(frm.phoneno.value,"0123456789",10,12,"Phone","Only numbers in"))
	{
		frm.phoneno.focus();
		return false;
	}*/
	 
	 /*if (window.document.regform["adoption"].options[0].selected)
	 {
		alert("Please Select Your Ad Option (Part-3)");
		window.document.regform["adoption"].focus();
		return false;
	 }*/
	 
	 
	 if (frm.uname.value=="")
	 {
		 alert("Please Enter User ID (Part-3)");
	 	 frm.uname.focus();
		 return false;
	 }
	 else if(!isValidData(frm.uname.value,"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_",3,15,"User ID","Only numbers, letters and underscore in"))
	 {
		 frm.uname.focus();
	  	 return false;
	 }
	 
	 if (frm.pwd.value=="")
	 {
		 alert("Please Enter Password (Part-3)");
	 	 frm.pwd.focus();
		 return false;
	 }
	 
	 if (frm.confpwd.value!=frm.pwd.value)
	 {
		 alert("Please Enter Confirm Password Correctly (Part-3)");
	 	 frm.confpwd.focus();
		 return false;
	 }
	return true;
}

function trim(str)
{
   if (str.length==0) return "" ;
   while(str.charAt(0)== " " )
   {
      str= str.substr(1,str.length-1);
   }
   while(str.charAt(str.length-1)== " " )
   {
       str= str.substr(0,str.length-1);
   }
   return str;
}
function isReady(frm)
{
    if (trim(frm.uname.value)== "" )
	{
	    alert( " Please, specify username ");
		frm.uname.focus();
		return false; 
	}
	else if (trim(frm.pwd.value)== "" )
	    {
		   alert( " Please, specify your password ");
		   frm.pwd.focus();
		   return false; 
		}
		return true ;
}

function isProfileFormOk(frm)
{
	/*if (regform.age.value=="")
	{
		alert("Please Enter Your Age (Part-1)");
	 	regform.age.focus();
		return false;
	}
	
	if (window.document.regform["complexion"].options[0].selected)
	{
		alert("Please Select Your Complexion (Part-1)");
		window.document.regform["complexion"].focus();
		return false;
	}
	
	if (regform.height.value=="")
	{
		alert("Please Enter Your Height (Part-1)");
	 	regform.height.focus();
		return false;
	}*/
	
	/*if (window.document.regform["height"].options[0].selected)
	{
		alert("Please Select Your Height (Part-1)")
		window.document.regform["height"].focus()
		return false
	}
	
	if (window.document.regform["blood_group"].options[0].selected)
	{
		alert("Please Select Your Blood Group (Part-1)")
		window.document.regform["blood_group"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["brotherno"].options[0].selected)
	{
		alert("Please Select Your No Of Brothers (Part-1)");
		window.document.regform["brotherno"].focus();
		return false;
	}
	
	if (window.document.regform["sisterno"].options[0].selected)
	{
		alert("Please Select Your No Of Sisters (Part-1)");
		window.document.regform["sisterno"].focus();
		return false;
	}
	
	if (window.document.regform["positioninfamily"].options[0].selected)
	{
		alert("Please Select Your Position (Part-1)");
		window.document.regform["positioninfamily"].focus();
		return false;
	}

	if (window.document.regform["msibling"].options[0].selected)
	{
		alert("Please Select No Of Married Sibblings (Part-1)");
		window.document.regform["msibling"].focus();
		return false;
	}
	
	if (window.document.regform["pstatus"].options[0].selected)
	{
		alert("Please Select Your Parent Status (Part-1)");
		window.document.regform["pstatus"].focus();
		return false
	}*/
	if (regform.musurname.value=="")
	{
		alert("Please Enter Your Maternal Uncle's Surname (Part-1)");
	 	regform.musurname.focus();
		return false;
	}
	
	var nm=regform.musurname.value;
	
	/*if ((nm.indexOf("1")!=-1)||
	   (nm.indexOf("2")!=-1)||
	   (nm.indexOf("3")!=-1)||
	   (nm.indexOf("4")!=-1)||
	   (nm.indexOf("5")!=-1)||
	   (nm.indexOf("6")!=-1)||
	   (nm.indexOf("7")!=-1)||
	   (nm.indexOf("8")!=-1)||
	   (nm.indexOf("9")!=-1)||
	   (nm.indexOf("0")!=-1)||
	   (nm.indexOf("@")!=-1)||
	   (nm.indexOf("#")!=-1)||
	   (nm.indexOf("%")!=-1)||
	   (nm.indexOf("&")!=-1)||
	   (nm.indexOf("*")!=-1)||
	   (nm.indexOf("/")!=-1)||
	   (nm.indexOf("-")!=-1))
	
	{alert("Sorry! No Character In Surname");regform.musurname.focus();return false;}*/
	
	var mn=regform.residentstatus.value;
	
	if ((mn.indexOf("1")!=-1)||
	   (mn.indexOf("2")!=-1)||
	   (mn.indexOf("3")!=-1)||
	   (mn.indexOf("4")!=-1)||
	   (mn.indexOf("5")!=-1)||
	   (mn.indexOf("6")!=-1)||
	   (mn.indexOf("7")!=-1)||
	   (mn.indexOf("8")!=-1)||
	   (mn.indexOf("9")!=-1)||
	   (mn.indexOf("0")!=-1)||
	   (mn.indexOf("@")!=-1)||
	   (mn.indexOf("#")!=-1)||
	   (mn.indexOf("%")!=-1)||
	   (mn.indexOf("&")!=-1)||
	   (mn.indexOf("*")!=-1)||
	   (mn.indexOf("/")!=-1)||
	   (mn.indexOf("-")!=-1))
	
	{alert("Please Mention Resident Place Properly");regform.residentstatus.focus();return false;}
	
	/*if (window.document.regform["origin"].options[0].selected)
	{
		alert("Please Select Your Original State (Part-1)");
		window.document.regform["origin"].focus();
		return false;
	}
	
	if (window.document.regform["religion"].options[0].selected)
	{
		alert("Please Select Your Religion (Part-1)");
		window.document.regform["religion"].focus();
		return false;
	}
	
	
	if (regform.caste.value=="")
	{
		alert("Please Enter Your Caste (Part-1)");
	 	regform.caste.focus();
		return false;
	}*/
	
	/*if (window.document.regform["sign"].options[0].selected)
	{
		alert("Please Select Your Sun sign (Part-1)");
		window.document.regform["sign"].focus();
		return false;
	}
	
	
	if (window.document.regform["marital_status"].options[0].selected)
	{
		alert("Please Select Your Marital Status (Part-1)");
		window.document.regform["marital_status"].focus();
		return false;
	}
	
	if (window.document.regform["haschildren"].options[0].selected)
	{
		alert("Please Select Children if you have any (Part-1)");
		window.document.regform["haschildren"].focus();
		return false;
	}
	
	if (window.document.regform["education"].options[0].selected)
	{
		alert("Please Select Your Qualification (Part-1)");
		window.document.regform["education"].focus();
		return false;
	}

	if (window.document.regform["occupation"].options[0].selected)
	{
		alert("Please Select Your Profession (Part-1)");
		window.document.regform["occupation"].focus();
		return false;
	}
	
	if (frm.income.value=="")
	{
		alert("Please Enter Your Annual Income (Part-1)");
	 	frm.income.focus();
		return false;
	}
	else if(!isValidData(frm.income.value,"0123456789",5,12,"Annual Income","Only numbers in"))
	{
		frm.income.focus();
		return false;
	}*/
	
	/*if (window.document.regform["fatheroccupation"].options[0].selected)
	{
		alert("Please Select Occupation of Your Father (Part-1)");
		window.document.regform["fatheroccupation"].focus();
		return false;
	}
	
	if (window.document.regform["motheroccupation"].options[0].selected)
	{
		alert("Please Select Occupation of Your Mother (Part-1)");
		window.document.regform["motheroccupation"].focus();
		return false;
	}

	if (regform.description.value.length > 250)
	{
		alert("Describe Your Special Remarks in Short (within 250 characters)");
	 	regform.description.focus();
		return false;
	}*/
	
	//groom looking for
	
	/*if (regform.lage.value=="")
	{
		alert("Please Select Min Age Limit of Looking for (Part-2)");
	 	regform.lage.focus();
		return false;
	}

	if (window.document.regform["lcomplexion"].options[0].selected)
	{
		alert("Please Select Complexion of Looking for (Part-2)");
		window.document.regform["lcomplexion"].focus();
		return false;
	}
	
	if (regform.lheight.value=="")
	{
		alert("Please Select Min Height of Looking for (Part-2)");
	 	regform.lheight.focus();
		return false;
	}*/
	
	/*if (window.document.regform["lheight"].options[0].selected)
	{
		alert("Please Select Min Height of Looking for (Part-2)");
		window.document.regform["lheight"].focus();
		return false;
	}
	
	if (window.document.regform["lstate"].options[0].selected)
	{
		alert("Please Select Original State of Looking for (Part-2)");
		window.document.regform["lstate"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrgprabasi"].options[0].selected)
	{
		alert("Please Select Whether Prabasi Looking for is OK (Part-2)")
		window.document.regform["strrgprabasi"].focus()
		return false
	}

	if (window.document.regform["strrgforiegn"].options[0].selected)
	{
		alert("Please Select Foreign Status of Looking for (Part-2)")
		window.document.regform["strrgforiegn"].focus()
		return false
	}

	if (window.document.regform["leducation"].options[0].selected)
	{
		alert("Please Select Qualification Of Looking for (Part-2)");
		window.document.regform["leducation"].focus();
		return false;
	}
	
	if (window.document.regform["lprofession"].options[0].selected)
	{
		alert("Please Select Profession Of Looking for (Part-2)");
		window.document.regform["lprofession"].focus();
		return false;
	}
	
	if (window.document.regform["lbusiness"].options[0].selected)
	{
		alert("Please Select Business Status of Looking for (Part-2)");
		window.document.regform["lbusiness"].focus();
		return false;
	}
	
	if (window.document.regform["ldiv"].options[0].selected)
	{
		alert("Please Select Divrocee/Widower Status of Looking for (Part-2)");
		window.document.regform["ldiv"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrghor"].options[0].selected)
	{
		alert("Please Select Horoscope Requirement of Looking for (Part-2)")
		window.document.regform["strrghor"].focus()
		return false
	}
	
	
	if (regform.lcaste.value=="")
	{
		alert("Please Enter Caste Of Looking for (Part-2)");
	 	regform.lcaste.focus();
		return false;
	}*/
	 
	/*if (regform.strrgcaste.value.length > 10)
	{
		alert("Enter Caste of Looking for in Short (within 10 characters)");
	 	regform.strrgcaste.focus();
		return false;
	} 
	 
	if (regform.lremark.value.length > 250)
	{
		alert("Describe Special Remarks in Short (within 250 characters)");
	 	regform.lremark.focus();
		return false;
	} */
	 
 
	if (regform.guardianname.value=="")
	{
		alert("Please Enter Guardian's Name (Part-3)");
	 	regform.guardianname.focus();
		return false;
	}
	 
	if (regform.contactaddress.value=="")
	{
		alert("Please EnterContact Address (Part-3)");
	 	regform.contactaddress.focus();
		return false;
	}
	 
	if (frm.pincode.value=="")
	{
		alert("Please Enter Pincode (Part-3)");
	 	frm.pincode.focus();
		return false;
	}
   /*else if(!isValidData(frm.pincode.value,"0123456789",5,7,"Pincode","Only numbers in"))
	{
		frm.pincode.focus();
		return false;
	}*/
	 
	if (frm.phoneno.value=="")
	{
		alert("Please Enter Telephone No (Part-3)");
	 	frm.phoneno.focus();
		return false;
	}
	/*else if(!isValidData1(frm.phoneno.value,"0123456789",10,12,"Phone","Only numbers in"))
	{
		frm.phoneno.focus();
		return false;
	}*/
	 
	/* if (window.document.regform["adoption"].options[0].selected)
	 {
		alert("Please Select Your Ad Option (Part-3)");
		window.document.regform["adoption"].focus();
		return false;
	 }*/
	return true;
}

function isProfileFormOk1(frm)
{
	/*if (regform.age.value=="")
	{
		alert("Please Enter Your Age (Part-1)");
	 	regform.age.focus();
		return false;
	}
	
	if (window.document.regform["complexion"].options[0].selected)
	{
		alert("Please Select Your Complexion (Part-1)");
		window.document.regform["complexion"].focus();
		return false;
	}
	
	if (regform.height.value=="")
	{
		alert("Please Enter Your Height (Part-1)");
	 	regform.height.focus();
		return false;
	}*/
	
	/*if (window.document.regform["height"].options[0].selected)
	{
		alert("Please Select Your Height (Part-1)")
		window.document.regform["height"].focus()
		return false
	}
	
	if (window.document.regform["blood_group"].options[0].selected)
	{
		alert("Please Select Your Blood Group (Part-1)")
		window.document.regform["blood_group"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["brotherno"].options[0].selected)
	{
		alert("Please Select Your No Of Brothers (Part-1)");
		window.document.regform["brotherno"].focus();
		return false;
	}
	
	if (window.document.regform["sisterno"].options[0].selected)
	{
		alert("Please Select Your No Of Sisters (Part-1)");
		window.document.regform["sisterno"].focus();
		return false;
	}
	
	if (window.document.regform["positioninfamily"].options[0].selected)
	{
		alert("Please Select Your Position (Part-1)");
		window.document.regform["positioninfamily"].focus();
		return false;
	}

	if (window.document.regform["msibling"].options[0].selected)
	{
		alert("Please Select No Of Married Sibblings (Part-1)");
		window.document.regform["msibling"].focus();
		return false;
	}
	
	if (window.document.regform["pstatus"].options[0].selected)
	{
		alert("Please Select Your Parent Status (Part-1)");
		window.document.regform["pstatus"].focus();
		return false
	}*/
	if (regform.musurname.value=="")
	{
		alert("Please Enter Your Maternal Uncle's Surname (Part-1)");
	 	regform.musurname.focus();
		return false;
	}
	
	var nm=regform.musurname.value;
	
	/*if ((nm.indexOf("1")!=-1)||
	   (nm.indexOf("2")!=-1)||
	   (nm.indexOf("3")!=-1)||
	   (nm.indexOf("4")!=-1)||
	   (nm.indexOf("5")!=-1)||
	   (nm.indexOf("6")!=-1)||
	   (nm.indexOf("7")!=-1)||
	   (nm.indexOf("8")!=-1)||
	   (nm.indexOf("9")!=-1)||
	   (nm.indexOf("0")!=-1)||
	   (nm.indexOf("@")!=-1)||
	   (nm.indexOf("#")!=-1)||
	   (nm.indexOf("%")!=-1)||
	   (nm.indexOf("&")!=-1)||
	   (nm.indexOf("*")!=-1)||
	   (nm.indexOf("/")!=-1)||
	   (nm.indexOf("-")!=-1))
	
	{alert("Sorry! No Character In Surname");regform.musurname.focus();return false;}*/
	
	var mn=regform.residentstatus.value;
	
	if ((mn.indexOf("1")!=-1)||
	   (mn.indexOf("2")!=-1)||
	   (mn.indexOf("3")!=-1)||
	   (mn.indexOf("4")!=-1)||
	   (mn.indexOf("5")!=-1)||
	   (mn.indexOf("6")!=-1)||
	   (mn.indexOf("7")!=-1)||
	   (mn.indexOf("8")!=-1)||
	   (mn.indexOf("9")!=-1)||
	   (mn.indexOf("0")!=-1)||
	   (mn.indexOf("@")!=-1)||
	   (mn.indexOf("#")!=-1)||
	   (mn.indexOf("%")!=-1)||
	   (mn.indexOf("&")!=-1)||
	   (mn.indexOf("*")!=-1)||
	   (mn.indexOf("/")!=-1)||
	   (mn.indexOf("-")!=-1))
	
	{alert("Please Mention Resident Place Properly");regform.residentstatus.focus();return false;}
	
	/*if (window.document.regform["origin"].options[0].selected)
	{
		alert("Please Select Your Original State (Part-1)");
		window.document.regform["origin"].focus();
		return false;
	}
	
	if (window.document.regform["religion"].options[0].selected)
	{
		alert("Please Select Your Religion (Part-1)");
		window.document.regform["religion"].focus();
		return false;
	}
	
	
	if (regform.caste.value=="")
	{
		alert("Please Enter Your Caste (Part-1)");
	 	regform.caste.focus();
		return false;
	}*/
	
	/*if (window.document.regform["sign"].options[0].selected)
	{
		alert("Please Select Your Sun sign (Part-1)");
		window.document.regform["sign"].focus();
		return false;
	}
	
	
	if (window.document.regform["marital_status"].options[0].selected)
	{
		alert("Please Select Your Marital Status (Part-1)");
		window.document.regform["marital_status"].focus();
		return false;
	}
	
	if (window.document.regform["haschildren"].options[0].selected)
	{
		alert("Please Select Children if you have any (Part-1)");
		window.document.regform["haschildren"].focus();
		return false;
	}
	
	if (window.document.regform["education"].options[0].selected)
	{
		alert("Please Select Your Qualification (Part-1)");
		window.document.regform["education"].focus();
		return false;
	}

	if (window.document.regform["occupation"].options[0].selected)
	{
		alert("Please Select Your Profession (Part-1)");
		window.document.regform["occupation"].focus();
		return false;
	}
	
	if (frm.income.value=="")
	{
		alert("Please Enter Your Annual Income (Part-1)");
	 	frm.income.focus();
		return false;
	}
	else if(!isValidData(frm.income.value,"0123456789",5,12,"Annual Income","Only numbers in"))
	{
		frm.income.focus();
		return false;
	}*/
	
	/*if (window.document.regform["fatheroccupation"].options[0].selected)
	{
		alert("Please Select Occupation of Your Father (Part-1)");
		window.document.regform["fatheroccupation"].focus();
		return false;
	}
	
	if (window.document.regform["motheroccupation"].options[0].selected)
	{
		alert("Please Select Occupation of Your Mother (Part-1)");
		window.document.regform["motheroccupation"].focus();
		return false;
	}

	if (regform.description.value.length > 250)
	{
		alert("Describe Your Special Remarks in Short (within 250 characters)");
	 	regform.description.focus();
		return false;
	}*/
	
	//groom looking for
	
	/*if (regform.lage.value=="")
	{
		alert("Please Select Min Age Limit of Looking for (Part-2)");
	 	regform.lage.focus();
		return false;
	}

	if (window.document.regform["lcomplexion"].options[0].selected)
	{
		alert("Please Select Complexion of Looking for (Part-2)");
		window.document.regform["lcomplexion"].focus();
		return false;
	}
	
	if (regform.lheight.value=="")
	{
		alert("Please Select Min Height of Looking for (Part-2)");
	 	regform.lheight.focus();
		return false;
	}*/
	
	/*if (window.document.regform["lheight"].options[0].selected)
	{
		alert("Please Select Min Height of Looking for (Part-2)");
		window.document.regform["lheight"].focus();
		return false;
	}
	
	if (window.document.regform["lstate"].options[0].selected)
	{
		alert("Please Select Original State of Looking for (Part-2)");
		window.document.regform["lstate"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrgprabasi"].options[0].selected)
	{
		alert("Please Select Whether Prabasi Looking for is OK (Part-2)")
		window.document.regform["strrgprabasi"].focus()
		return false
	}

	if (window.document.regform["strrgforiegn"].options[0].selected)
	{
		alert("Please Select Foreign Status of Looking for (Part-2)")
		window.document.regform["strrgforiegn"].focus()
		return false
	}

	if (window.document.regform["leducation"].options[0].selected)
	{
		alert("Please Select Qualification Of Looking for (Part-2)");
		window.document.regform["leducation"].focus();
		return false;
	}
	
	if (window.document.regform["lprofession"].options[0].selected)
	{
		alert("Please Select Profession Of Looking for (Part-2)");
		window.document.regform["lprofession"].focus();
		return false;
	}
	
	if (window.document.regform["lbusiness"].options[0].selected)
	{
		alert("Please Select Business Status of Looking for (Part-2)");
		window.document.regform["lbusiness"].focus();
		return false;
	}
	
	if (window.document.regform["ldiv"].options[0].selected)
	{
		alert("Please Select Divrocee/Widower Status of Looking for (Part-2)");
		window.document.regform["ldiv"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrghor"].options[0].selected)
	{
		alert("Please Select Horoscope Requirement of Looking for (Part-2)")
		window.document.regform["strrghor"].focus()
		return false
	}
	
	
	if (regform.lcaste.value=="")
	{
		alert("Please Enter Caste Of Looking for (Part-2)");
	 	regform.lcaste.focus();
		return false;
	}*/
	 
	/*if (regform.strrgcaste.value.length > 10)
	{
		alert("Enter Caste of Looking for in Short (within 10 characters)");
	 	regform.strrgcaste.focus();
		return false;
	} 
	 
	if (regform.lremark.value.length > 250)
	{
		alert("Describe Special Remarks in Short (within 250 characters)");
	 	regform.lremark.focus();
		return false;
	}*/ 
	 
 
	if (regform.guardianname.value=="")
	{
		alert("Please Enter Guardian's Name (Part-3)");
	 	regform.guardianname.focus();
		return false;
	}
	 
	if (regform.contactaddress.value=="")
	{
		alert("Please EnterContact Address (Part-3)");
	 	regform.contactaddress.focus();
		return false;
	}
	 
	if (frm.pincode.value=="")
	{
		alert("Please Enter Pincode (Part-3)");
	 	frm.pincode.focus();
		return false;
	}
   /*else if(!isValidData(frm.pincode.value,"0123456789",5,7,"Pincode","Only numbers in"))
	{
		frm.pincode.focus();
		return false;
	}*/
	 
	/*if (frm.phoneno.value=="")
	{
		alert("Please Enter Telephone No (Part-3)");
	 	frm.phoneno.focus();
		return false;
	}
	else if(!isValidData1(frm.phoneno.value,"0123456789",10,12,"Phone","Only numbers in"))
	{
		frm.phoneno.focus();
		return false;
	}*/
	if(Trim(frm.email.value," ") == "" )
	{
		alert("Please Enter Email (Part-3)");
		frm.email.focus();
		return false;
	}
	else if(!isEmail(frm.email.value))
	{
			alert("Please Enter Valid Email (Part-3)");
			frm.email.focus();
			return false;
	}
	/* if (window.document.regform["adoption"].options[0].selected)
	 {
		alert("Please Select Your Ad Option (Part-3)");
		window.document.regform["adoption"].focus();
		return false;
	 }*/
	return true;
}

function trim(str)
{
   if (str.length==0) return "" ;
   while(str.charAt(0)== " " )
   {
      str= str.substr(1,str.length-1);
   }
   while(str.charAt(str.length-1)== " " )
   {
       str= str.substr(0,str.length-1);
   }
   return str;
}
function isReady(frm)
{
    if (trim(frm.uname.value)== "" )
	{
	    alert( " Please, specify username/email ");
		frm.uname.focus();
		return false; 
	}
	else if (trim(frm.pwd.value)== "" )
	    {
		   alert( " Please, specify your password ");
		   frm.pwd.focus();
		   return false; 
		}
		return true ;
}
function isReady1(frm)
{
    if (trim(frm.uname.value)== "" )
	{
	    alert( " Please, specify username/email ");
		frm.uname.focus();
		return false; 
	}
	else if (trim(frm.pwd.value)== "" )
	    {
		   alert( " Please, specify your password ");
		   frm.pwd.focus();
		   return false; 
		}
		return true ;
}

function isSendPwdFormOk(frm)
{
	if(!isEmail(frm.email.value))
	{
		frm.email.focus();
		return false;
	}
	return true;
}

function isChPasswdFormOk(frm)
{
	if(Trim(frm.ppwd.value,' ')=="")
	{
		alert("Please provide your current password.");
		frm.ppwd.focus();
		return false;
	}
	else if(Trim(frm.pwd.value,' ')=="")
	{
		alert("Please provide your new password.");
		frm.pwd.focus();
		return false;
	}
	else if(Trim(frm.pwd.value,' ')!="")
	{
		
		if(!isValidData(frm.pwd.value,"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",3,15,"Password","Only numbers and letters in"))
		{
			frm.pwd.focus();
			return false;
		}
		else if(frm.pwd.value!=frm.cpwd.value)
		{
			alert("Password mismatch.");
			frm.cpwd.focus();
			return false;
		}
	}
	
	return true;
}

function isInt(elm) 
{
	var elmstr = elm.value + "";
	var pattern="^([0-9])+$";
	if (elmstr == "") return false;
	if(!elmstr.match(pattern)) return false;
	return true;
}

function isContactFormOk(frm)
{
	if(Trim(frm.name.value,' ')=="")
	{
		alert("Please specify name.");
		frm.name.focus();
		return false;
	}
	else if(!isEmail(frm.email.value))
	{
		frm.email.focus();
		return false;
	}
	else if(frm.other.disabled == false)
	{
		if(Trim(frm.other.value,' ')=="")
		{
			alert("Other field is empty.");
			frm.other.focus();
			return false;
		}
	}
	if(Trim(frm.comment.value,' ')=="")
	{
		alert("Please specify your mesage.");
		frm.comment.focus();
		return false;
	}
	return true;
}

function isadFormOk(frm)
{
	if(Trim(frm.name.value,' ')=="")
	{
		alert("Please specify name.");
		frm.name.focus();
		return false;
	}
	if(Trim(frm.email.value,' ')=="")
	{
		alert("Please specify email.");
		frm.email.focus();
		return false;
	}
	else if(!isEmail(frm.email.value))
	{
		frm.email.focus();
		return false;
	}
	if(Trim(frm.address.value,' ')=="")
	{
		alert("Please specify address.");
		frm.address.focus();
		return false;
	}
	if(Trim(frm.phone.value,' ')=="")
	{
		alert("Please specify phone number.");
		frm.phone.focus();
		return false;
	}
	if(frm.phone.value!="")
	{
		if(!isValidData1(frm.phone.value,"0123456789",10,12,"Phone","Only numbers in"))
		{
			frm.phone.focus();
			return false;
		}
	}
	if(Trim(frm.title.value,' ')=="")
	{
		alert("Please specify your ad title.");
		frm.title.focus();
		return false;
	}
    if(Trim(frm.comment.value,' ')=="")
	{
		alert("Please specify your ad matter.");
		frm.comment.focus();
		return false;
	}
	if (window.document.adform["pay_opt"].options[0].selected)
	{
		alert("Please Select any one payment option.")
		window.document.adform["pay_opt"].focus();
		return false;
	}
	
	return true;
}

function isUnsubscribeFormOk(frm)
{
	if(Trim(frm.name.value,' ')=="")
	{
		alert("Please specify name.");
		frm.name.focus();
		return false;
	}
	else if(!isEmail(frm.email.value))
	{
		frm.email.focus();
		return false;
	}
	else if(Trim(frm.comment.value,' ')=="")
	{
		alert("Please specify your reason.");
		frm.comment.focus();
		return false;
	}
	return true;
}

function isRenewFormOk(frm)
{
	/*if(Trim(frm.FirstName.value,' ')=="")
	{
		alert("Please specify first name.");
		frm.FirstName.focus();
		return false;
	}
	else if(Trim(frm.LastName.value,' ')=="")
	{
		alert("Please specify last name.");
		frm.LastName.focus();
		return false;
	}
	if(Trim(frm.email.value,' ')=="")
	{
		alert("Please specify email.");
		frm.email.focus();
		return false;
	}
	else if(!isEmail(frm.email.value))
	{
		frm.email.focus();
		return false;
	}
	else if(Trim(frm.Addr1.value,' ')=="")
	{
		alert("Please specify your address.");
		frm.Addr1.focus();
		return false;
	}
	else if(Trim(frm.City.value,' ')=="")
	{
		alert("Please specify your city.");
		frm.City.focus();
		return false;
	}
	else if(Trim(frm.State.value,' ')=="")
	{
		alert("Please specify your state.");
		frm.State.focus();
		return false;
	}
	if(Trim(frm.pincode.value,' ')=="")
	{
		alert("Please specify pincode.");
		frm.pincode.focus();
		return false;
	}
	if(frm.pincode.value!="")
	{
		if(!isValidData(frm.pincode.value,"0123456789",5,7,"Pincode","Only numbers in"))
		{
			frm.pincode.focus();
			return false;
		}
	}
	if(Trim(frm.phoneno.value,' ')=="")
	{
		alert("Please specify phone number.");
		frm.phoneno.focus();
		return false;
	}
	if(frm.phoneno.value!="")
	{
		if(!isValidData1(frm.phoneno.value,"0123456789",10,12,"Phone","Only numbers in"))
		{
			frm.phoneno.focus();
			return false;
		}
	}*/
	if(Trim(frm.adoption.value,' ')=="")
	{
		alert("Please select your package.");
		frm.adoption.focus();
		return false;
	}
	return true;
}

function isEditFormOk1(frm)
{
	/*if (regform.age.value=="")
	{
		alert("Please Enter Your Age (Part-1)");
	 	regform.age.focus();
		return false;
	}
	
	if (window.document.regform["complexion"].options[0].selected)
	{
		alert("Please Select Your Complexion (Part-1)");
		window.document.regform["complexion"].focus();
		return false;
	}
	
	if (regform.height.value=="")
	{
		alert("Please Enter Your Height (Part-1)");
	 	regform.height.focus();
		return false;
	}*/
	
	/*if (window.document.regform["height"].options[0].selected)
	{
		alert("Please Select Your Height (Part-1)")
		window.document.regform["height"].focus()
		return false
	}
	
	if (window.document.regform["blood_group"].options[0].selected)
	{
		alert("Please Select Your Blood Group (Part-1)")
		window.document.regform["blood_group"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["brotherno"].options[0].selected)
	{
		alert("Please Select Your No Of Brothers (Part-1)");
		window.document.regform["brotherno"].focus();
		return false;
	}
	
	if (window.document.regform["sisterno"].options[0].selected)
	{
		alert("Please Select Your No Of Sisters (Part-1)");
		window.document.regform["sisterno"].focus();
		return false;
	}
	
	if (window.document.regform["positioninfamily"].options[0].selected)
	{
		alert("Please Select Your Position (Part-1)");
		window.document.regform["positioninfamily"].focus();
		return false;
	}

	if (window.document.regform["msibling"].options[0].selected)
	{
		alert("Please Select No Of Married Sibblings (Part-1)");
		window.document.regform["msibling"].focus();
		return false;
	}
	
	if (window.document.regform["pstatus"].options[0].selected)
	{
		alert("Please Select Your Parent Status (Part-1)");
		window.document.regform["pstatus"].focus();
		return false
	}*/
	if (regform.musurname.value=="")
	{
		alert("Please Enter Your Maternal Uncle's Surname (Part-1)");
	 	regform.musurname.focus();
		return false;
	}
	
	var nm=regform.musurname.value;
	
	/*if ((nm.indexOf("1")!=-1)||
	   (nm.indexOf("2")!=-1)||
	   (nm.indexOf("3")!=-1)||
	   (nm.indexOf("4")!=-1)||
	   (nm.indexOf("5")!=-1)||
	   (nm.indexOf("6")!=-1)||
	   (nm.indexOf("7")!=-1)||
	   (nm.indexOf("8")!=-1)||
	   (nm.indexOf("9")!=-1)||
	   (nm.indexOf("0")!=-1)||
	   (nm.indexOf("@")!=-1)||
	   (nm.indexOf("#")!=-1)||
	   (nm.indexOf("%")!=-1)||
	   (nm.indexOf("&")!=-1)||
	   (nm.indexOf("*")!=-1)||
	   (nm.indexOf("/")!=-1)||
	   (nm.indexOf("-")!=-1))
	
	{alert("Sorry! No Character In Surname");regform.musurname.focus();return false;}*/
	
	var mn=regform.residentstatus.value;
	
	if ((mn.indexOf("1")!=-1)||
	   (mn.indexOf("2")!=-1)||
	   (mn.indexOf("3")!=-1)||
	   (mn.indexOf("4")!=-1)||
	   (mn.indexOf("5")!=-1)||
	   (mn.indexOf("6")!=-1)||
	   (mn.indexOf("7")!=-1)||
	   (mn.indexOf("8")!=-1)||
	   (mn.indexOf("9")!=-1)||
	   (mn.indexOf("0")!=-1)||
	   (mn.indexOf("@")!=-1)||
	   (mn.indexOf("#")!=-1)||
	   (mn.indexOf("%")!=-1)||
	   (mn.indexOf("&")!=-1)||
	   (mn.indexOf("*")!=-1)||
	   (mn.indexOf("/")!=-1)||
	   (mn.indexOf("-")!=-1))
	
	{alert("Please Mention Resident Place Properly");regform.residentstatus.focus();return false;}
	
	/*if (window.document.regform["origin"].options[0].selected)
	{
		alert("Please Select Your Original State (Part-1)");
		window.document.regform["origin"].focus();
		return false;
	}
	
	if (window.document.regform["religion"].options[0].selected)
	{
		alert("Please Select Your Religion (Part-1)");
		window.document.regform["religion"].focus();
		return false;
	}
	
	
	if (regform.caste.value=="")
	{
		alert("Please Enter Your Caste (Part-1)");
	 	regform.caste.focus();
		return false;
	}*/
	
	/*if (window.document.regform["sign"].options[0].selected)
	{
		alert("Please Select Your Sun sign (Part-1)");
		window.document.regform["sign"].focus();
		return false;
	}
	
	
	if (window.document.regform["marital_status"].options[0].selected)
	{
		alert("Please Select Your Marital Status (Part-1)");
		window.document.regform["marital_status"].focus();
		return false;
	}
	
	if (window.document.regform["haschildren"].options[0].selected)
	{
		alert("Please Select Children if you have any (Part-1)");
		window.document.regform["haschildren"].focus();
		return false;
	}
	
	if (window.document.regform["education"].options[0].selected)
	{
		alert("Please Select Your Qualification (Part-1)");
		window.document.regform["education"].focus();
		return false;
	}

	if (window.document.regform["occupation"].options[0].selected)
	{
		alert("Please Select Your Profession (Part-1)");
		window.document.regform["occupation"].focus();
		return false;
	}
	
	if (frm.income.value=="")
	{
		alert("Please Enter Your Annual Income (Part-1)");
	 	frm.income.focus();
		return false;
	}
	else if(!isValidData(frm.income.value,"0123456789",5,12,"Annual Income","Only numbers in"))
	{
		frm.income.focus();
		return false;
	}*/
	
	/*if (window.document.regform["fatheroccupation"].options[0].selected)
	{
		alert("Please Select Occupation of Your Father (Part-1)");
		window.document.regform["fatheroccupation"].focus();
		return false;
	}
	
	if (window.document.regform["motheroccupation"].options[0].selected)
	{
		alert("Please Select Occupation of Your Mother (Part-1)");
		window.document.regform["motheroccupation"].focus();
		return false;
	}

	if (regform.description.value.length > 250)
	{
		alert("Describe Your Special Remarks in Short (within 250 characters)");
	 	regform.description.focus();
		return false;
	}*/
	
	//groom looking for
	
	/*if (regform.lage.value=="")
	{
		alert("Please Select Min Age Limit of Looking for (Part-2)");
	 	regform.lage.focus();
		return false;
	}

	if (window.document.regform["lcomplexion"].options[0].selected)
	{
		alert("Please Select Complexion of Looking for (Part-2)");
		window.document.regform["lcomplexion"].focus();
		return false;
	}
	
	if (regform.lheight.value=="")
	{
		alert("Please Select Min Height of Looking for (Part-2)");
	 	regform.lheight.focus();
		return false;
	}*/
	
	/*if (window.document.regform["lheight"].options[0].selected)
	{
		alert("Please Select Min Height of Looking for (Part-2)");
		window.document.regform["lheight"].focus();
		return false;
	}
	
	if (window.document.regform["lstate"].options[0].selected)
	{
		alert("Please Select Original State of Looking for (Part-2)");
		window.document.regform["lstate"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrgprabasi"].options[0].selected)
	{
		alert("Please Select Whether Prabasi Looking for is OK (Part-2)")
		window.document.regform["strrgprabasi"].focus()
		return false
	}

	if (window.document.regform["strrgforiegn"].options[0].selected)
	{
		alert("Please Select Foreign Status of Looking for (Part-2)")
		window.document.regform["strrgforiegn"].focus()
		return false
	}

	if (window.document.regform["leducation"].options[0].selected)
	{
		alert("Please Select Qualification Of Looking for (Part-2)");
		window.document.regform["leducation"].focus();
		return false;
	}
	
	if (window.document.regform["lprofession"].options[0].selected)
	{
		alert("Please Select Profession Of Looking for (Part-2)");
		window.document.regform["lprofession"].focus();
		return false;
	}
	
	if (window.document.regform["lbusiness"].options[0].selected)
	{
		alert("Please Select Business Status of Looking for (Part-2)");
		window.document.regform["lbusiness"].focus();
		return false;
	}
	
	if (window.document.regform["ldiv"].options[0].selected)
	{
		alert("Please Select Divrocee/Widower Status of Looking for (Part-2)");
		window.document.regform["ldiv"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrghor"].options[0].selected)
	{
		alert("Please Select Horoscope Requirement of Looking for (Part-2)")
		window.document.regform["strrghor"].focus()
		return false
	}
	
	
	if (regform.lcaste.value=="")
	{
		alert("Please Enter Caste Of Looking for (Part-2)");
	 	regform.lcaste.focus();
		return false;
	}*/
	 
	/*if (regform.strrgcaste.value.length > 10)
	{
		alert("Enter Caste of Looking for in Short (within 10 characters)");
	 	regform.strrgcaste.focus();
		return false;
	} */
	 
	/* if (regform.lremark.value.length > 250)
	{
		alert("Describe Special Remarks in Short (within 250 characters)");
	 	regform.lremark.focus();
		return false;
	} 
	 
 
	if (regform.guardianname.value=="")
	{
		alert("Please Enter Guardian's Name (Part-3)");
	 	regform.guardianname.focus();
		return false;
	}
	 
	if (regform.contactaddress.value=="")
	{
		alert("Please EnterContact Address (Part-3)");
	 	regform.contactaddress.focus();
		return false;
	}
	 
	if (frm.pincode.value=="")
	{
		alert("Please Enter Pincode (Part-3)");
	 	frm.pincode.focus();
		return false;
	}
   else if(!isValidData(frm.pincode.value,"0123456789",5,7,"Pincode","Only numbers in"))
	{
		frm.pincode.focus();
		return false;
	}
	 
	if (frm.phoneno.value=="")
	{
		alert("Please Enter Telephone No (Part-3)");
	 	frm.phoneno.focus();
		return false;
	}
	else if(!isValidData1(frm.phoneno.value,"0123456789",10,12,"Phone","Only numbers in"))
	{
		frm.phoneno.focus();
		return false;
	}
	 
	if (window.document.regform["adoption"].options[0].selected)
	 {
		alert("Please Select Your Ad Option (Part-3)");
		window.document.regform["adoption"].focus();
		return false;
	 }*/
	return true;
}

function isEditFormOk2(frm)
{
	
	//groom looking for
	
	/*if (regform.lage.value=="")
	{
		alert("Please Select Min Age Limit of Looking for (Part-2)");
	 	regform.lage.focus();
		return false;
	}

	if (window.document.regform["lcomplexion"].options[0].selected)
	{
		alert("Please Select Complexion of Looking for (Part-2)");
		window.document.regform["lcomplexion"].focus();
		return false;
	}
	
	if (regform.lheight.value=="")
	{
		alert("Please Select Min Height of Looking for (Part-2)");
	 	regform.lheight.focus();
		return false;
	}*/
	
	/*if (window.document.regform["lheight"].options[0].selected)
	{
		alert("Please Select Min Height of Looking for (Part-2)");
		window.document.regform["lheight"].focus();
		return false;
	}
	
	if (window.document.regform["lstate"].options[0].selected)
	{
		alert("Please Select Original State of Looking for (Part-2)");
		window.document.regform["lstate"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrgprabasi"].options[0].selected)
	{
		alert("Please Select Whether Prabasi Looking for is OK (Part-2)")
		window.document.regform["strrgprabasi"].focus()
		return false
	}

	if (window.document.regform["strrgforiegn"].options[0].selected)
	{
		alert("Please Select Foreign Status of Looking for (Part-2)")
		window.document.regform["strrgforiegn"].focus()
		return false
	}

	if (window.document.regform["leducation"].options[0].selected)
	{
		alert("Please Select Qualification Of Looking for (Part-2)");
		window.document.regform["leducation"].focus();
		return false;
	}
	
	if (window.document.regform["lprofession"].options[0].selected)
	{
		alert("Please Select Profession Of Looking for (Part-2)");
		window.document.regform["lprofession"].focus();
		return false;
	}
	
	if (window.document.regform["lbusiness"].options[0].selected)
	{
		alert("Please Select Business Status of Looking for (Part-2)");
		window.document.regform["lbusiness"].focus();
		return false;
	}
	
	if (window.document.regform["ldiv"].options[0].selected)
	{
		alert("Please Select Divrocee/Widower Status of Looking for (Part-2)");
		window.document.regform["ldiv"].focus();
		return false;
	}*/
	
	/*if (window.document.regform["strrghor"].options[0].selected)
	{
		alert("Please Select Horoscope Requirement of Looking for (Part-2)")
		window.document.regform["strrghor"].focus()
		return false
	}
	
	
	if (regform.lcaste.value=="")
	{
		alert("Please Enter Caste Of Looking for (Part-2)");
	 	regform.lcaste.focus();
		return false;
	}*/
	 
	/*if (regform.strrgcaste.value.length > 10)
	{
		alert("Enter Caste of Looking for in Short (within 10 characters)");
	 	regform.strrgcaste.focus();
		return false;
	} 
	 
	 if (regform.lremark.value.length > 250)
	{
		alert("Describe Special Remarks in Short (within 250 characters)");
	 	regform.lremark.focus();
		return false;
	}*/ 
	return true;
}

function isEditFormOk3(frm)
{
	if (regform.name.value=="")
	{
		alert("Please Enter Your Name");
	 	regform.name.focus();
		return false;
	}
	if (regform.guardianname.value=="")
	{
		alert("Please Enter Guardian's Name ");
	 	regform.guardianname.focus();
		return false;
	}
	if (regform.contactaddress.value=="")
	{
		alert("Please EnterContact Address ");
	 	regform.contactaddress.focus();
		return false;
	}
	 
	if (frm.pincode.value=="")
	{
		alert("Please Enter Pincode ");
	 	frm.pincode.focus();
		return false;
	}
   /*else if(!isValidData(frm.pincode.value,"0123456789",5,7,"Pincode","Only numbers in"))
	{
		frm.pincode.focus();
		return false;
	}*/
	 
	if (frm.phoneno.value=="")
	{
		alert("Please Enter Telephone No ");
	 	frm.phoneno.focus();
		return false;
	}
	/*else if(!isValidData1(frm.phoneno.value,"0123456789",10,12,"Phone","Only numbers in"))
	{
		frm.phoneno.focus();
		return false;
	}*/
	 
	return true;
}

function isPaymentFormOk(frm)
{
	if (frm.name.value=="")
	{
		alert("Please specify scheme name.");
	 	frm.name.focus();
		return false;
	}
	if (frm.duration.value=="")
	{
		alert("Please specify duration in month(s).");
	 	frm.duration.focus();
		return false;
	}
	else if(!isValidData(frm.duration.value,"0123456789",1,5,"Duration","Only numbers in"))
	{
		frm.duration.focus();
		return false;
	}
	if (frm.amount.value=="")
	{
		alert("Please specify amount.");
	 	frm.amount.focus();
		return false;
	}
	else if(!isValidData(frm.amount.value,"0123456789.",1,8,"Amount","Only numbers in"))
	{
		frm.amount.focus();
		return false;
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}