function Reset_Values() 
{
	if (confirm("Are you sure you want to Reset the Values?")) 
	{
	document.frm2.reset();
	}
}
function Valid_RptMonth()
{
	if (document.frm2.selectUsrType.value == "")
 	{
 		alert("Select Valid Month");
 		document.frm2.selectUsrType.focus();
		return false;
	}
	if (document.frm2.year1.value == "")
 	{
 		alert("Select Valid Year");
 		document.frm2.year1.focus();
		return false;
	}
}
function Valid_BankPlace()
{
	if (document.frm2.ic_payat_vc.value == "")
 	{
 		alert("Enter the Valid Place you are going to pay from");
 		document.frm2.ic_payat_vc.focus();
		return false;
	}
}
function Valid_Bank()
{
	if (document.frm2.rg_sysid_vc.value == "")
 	{
 		alert("Enter the Valid Nagaratharkalyanam.com ID");
 		document.frm2.rg_sysid_vc.focus();
		return false;
	}
	if (document.frm2.ic_branchnm_vc.value == "") 
 	{
		alert("Enter the Valid Branch Name");
		document.frm2.ic_branchnm_vc.focus();
		return false;
	}
	if (document.frm2.ic_amount_de.value == "") 
 	{
		alert("Enter the Valid Amount you Paid in Bank");
		document.frm2.ic_amount_de.focus();
		return false;
	}
	if (document.frm2.ic_pdate_vc.value == "") 
 	{
		alert("Enter the Valid Date");
		document.frm2.ic_pdate_vc.focus();
		return false;
	}
}
function valid_adaph() 
{ 
	if (document.frm2.ph1.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.ph1.value = ""
	document.frm2.ph1.focus();
	return false;
	}
	}
}
function Valid_ngadd()
{
	if (document.frm2.acname.value == "")
 	{
 		alert("Enter the Valid Name");
 		document.frm2.acname.focus();
		return false;
	}
	if (document.frm2.ph1.value == "") 
 	{
		alert("Enter the Valid Phone Number");
		document.frm2.ph1.focus();
		return false;
	}
	if (document.frm2.aemail.value == "") 
 	{
		alert("Enter the Valid Email ID");
		document.frm2.aemail.focus();
		return false;
	}
	if (document.frm2.acty.value == "") 
 	{
		alert("Enter the Valid City");
		document.frm2.acty.focus();
		return false;
	}
	if (document.frm2.fileupload1.value == "") 
 	{
		alert("Enter the Valid Image");
		document.frm2.fileupload1.focus();
		return false;
	}
	if (document.frm2.amsg.value == "") 
 	{
		alert("Enter the Valid Content");
		document.frm2.amsg.focus();
		return false;
	}
	if (document.frm2.ad_cat_vc.value == "") 
 	{
		alert("Enter the Valid Category");
		document.frm2.ad_cat_vc.focus();
		return false;
	}
	if(document.frm2.aemail.value!="")
	{
		var pos=0;
		pos=document.frm2.aemail.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.aemail.focus();document.frm2.aemail.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.aemail.focus();document.frm2.aemail.select();return false;}
		var p7= 0;
		var p6 = document.frm2.aemail.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.aemail.focus();document.frm2.aemail.select();return false;}
		var posb=0;
		posb=document.frm2.aemail.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.aemail.focus();document.frm2.aemail.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.aemail.focus(); document.frm2.aemail.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.aemail.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter User ID in Correct Format");document.frm2.aemail.focus();document.frm2.aemail.select();return false;	}
	}
}

function valid_cc() 
{ 
	if (!document.frm2.visa1[0].checked && !document.frm2.master1[1].checked)
	{
		alert("Select the Valid-Card");
		document.frm2.visa1[0].focus();
		return false;
	}
}
function close()
{
window.close();
}
function bk()
{
javascript:window.history.forward(1)
}
function valid_focAd()
{
document.getElementById("Submit1").disabled = true;
}
function valid_focAdr()
{
document.getElementById("Submit1").disabled = false;
}

//This code is the beginning of the right click disable
function right(e) {
//This function is for Net 4.
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which ==
2))
{
return false;
}
return true;
}
function context(){
//This function takes care of Net 6 and IE.
return false;
}

document.onmousedown=right;
document.oncontextmenu=context;

function Valid_SrchKovil2()
{
if (document.frm2.ko_id_in.value == "") 
 	{
		alert("Select the Valid Kovil");
		document.frm2.ko_id_in.focus();
		return false;
	}
}

function Valid_SrchKovil()
{
if (document.frm2.ko_id_in1.value == "") 
 	{
		alert("Select the Valid Kovil");
		document.frm2.ko_id_in1.focus();
		return false;
	}
}
function Valid_SrchKovil1()
{
if (document.frm2.ddkovil.value == "") 
 	{
		alert("Select the Valid Kovil");
		document.frm2.ddkovil.focus();
		return false;
	}
}
function Valid_admobile() 
{ 
	if (document.frm2.ad_Nmobile_vc.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.ad_Nmobile_vc.value = ""
	document.frm2.ad_Nmobile_vc.focus();
	return false;
	}
	}
}
function Valid_RgPhone() 
{ 
	if (document.frm2.phone.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.phone.value = ""
	document.frm2.phone.focus();
	return false;
	}
	}
}
function Valid_RgMobile() 
{ 
	if (document.frm2.mobile.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.mobile.value = ""
	document.frm2.mobile.focus();
	return false;
	}
	}
}
function Valid_FPPhone() 
{ 
	if (document.frm2.fa_pphone_vc.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.fa_pphone_vc.value = ""
	document.frm2.fa_pphone_vc.focus();
	return false;
	}
	}
}
function Valid_FPPhone1() 
{ 
	if (document.frm2.fa_pphone1_vc.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.fa_pphone1_vc.value = ""
	document.frm2.fa_pphone1_vc.focus();
	return false;
	}
	}
}
function Valid_FPPhone2() 
{ 
	if (document.frm2.fa_pphone2_vc.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.fa_pphone2_vc.value = ""
	document.frm2.fa_pphone2_vc.focus();
	return false;
	}
	}
}
function Valid_FRPhone()
{
	if (document.frm2.fa_rphone_vc.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.fa_rphone_vc.value = ""
	document.frm2.fa_rphone_vc.focus();
	return false;
	}
	}
}
function Valid_FRPhone1()
{
	if (document.frm2.fa_rphone1_vc.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.fa_rphone1_vc.value = ""
	document.frm2.fa_rphone1_vc.focus();
	return false;
	}
	}
}
function Valid_FRPhone2()
{
	if (document.frm2.fa_rphone2_vc.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.fa_rphone2_vc.value = ""
	document.frm2.fa_rphone2_vc.focus();
	return false;
	}
	}
}
function valid_pincode() 
{ 
	if (document.frm2.cu_phone_vc1.value != "")
	{
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.cu_pin_in.focus();
	return false;
	}
	}
}
function valid_pincode() 
{ 
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.cu_pin_in.focus();
	return false;
	} 
}
function valid_birthdate() 
{ 
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 92 || charcode == 47 || charcode == 46 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9 & \ & / & .) only");
	document.frm2.rg_bdate_dt.focus();
	return false;
	} 
}
function valid_aincome() 
{ 
	var charcode=window.event.keyCode;
	if (charcode > 47 && charcode < 58 || charcode == 13)
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.rg_annualincome_vc.focus();
	return false;
	} 
}
function valid_age() 
{ 
	var charcode=window.event.keyCode; 
	if (charcode > 47 && charcode < 58 || charcode == 13) 
	{ 
		return true; 
	} 
	else 
	{ 
	alert("Enter Numbers(0-9) only");
	document.frm2.rg_age_vc.focus();
	return false;
	} 
}
function valid_MiniCadd()
{
	var len = document.frm2.rg_add_vc.value;
	var le = len.length;
	if(le > 19)
	{
	return true;
	}
	else
	{
	alert("Minimum 20 Characters");
	document.frm2.rg_add_vc.focus();
	return false;
	}
}
function valid_MiniNative()
{
	var len = document.frm2.rg_native_vc.value;
	var le = len.length;
	if(le > 5)
	{
	return true;
	}
	else
	{
	alert("Minimum 6 Characters");
	document.frm2.rg_native_vc.focus();
	return false;
	}
}
function valid_Minidentify()
{
	var len = document.frm2.rg_profile_vc.value;
	var le = len.length;
	if(le > 5)
	{
	return true;
	}
	else
	{
	alert("Minimum 6 Characters");
	document.frm2.rg_profile_vc.focus();
	return false;
	}
}
function valid_Minpass()
	{
		var len = document.frm2.rg_pass_vc.value;
		var le = len.length;
		if(le > 5)
		{
		return true;
		}
		else
		{
		alert("Minimum 6 Characters");
		document.frm2.rg_pass_vc.focus();
		return false;
		}
	}
function valid_MinCpass()
	{
		var len = document.frm2.rg_conpass_vc.value;
		var le = len.length;
		if(le > 5)
		{
		return true;
		}
		else
		{
		alert("Minimum 6 Characters");
		document.frm2.rg_conpass_vc.focus();
		return false;
		}
	}
function Valid_Checkbox()
{
	if (document.frm2.CheckBox1.checked==false)
	{
		//document.getElementById("divexamt").style.display = "block"; 
		alert("Accept the Terms and Conditions to Proceed.")
		document.frm2.CheckBox1.focus();
		return false;
	}
}
function Valid_ForgotPass()
{
	if (document.frm2.rg_mail_vc.value == "")
 	{
 		alert("Enter the Valid User-Id");
 		document.frm2.rg_mail_vc.focus();
		return false;
	}
	if (document.frm2.ko_id_in.value == "") 
 	{
		alert("Select the Valid Kovil");
		document.frm2.ko_id_in.focus();
		return false;
	}
	if (document.frm2.cy_id_in.value == "") 
 	{
		alert("Select the Valid Country");
		document.frm2.cy_id_in.focus();
		return false;
	}
	if(document.frm2.rg_mail_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.rg_mail_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.rg_mail_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		var posb=0;
		posb=document.frm2.rg_mail_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.rg_mail_vc.focus(); document.frm2.rg_mail_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.rg_mail_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter User ID in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;	}
	}
	return true;
}
function alert1()
{
alert("You Account is not in Active State. Contact Nagarathar Team")
return false;
}
function Valid_EditCountry()
{
	if (document.frm2.cy_country_vc.value == "")
 	{
 		alert("Enter the Valid Country");
 		document.frm2.cy_country_vc.focus();
		return false;
	}
}
function Valid_EditPirivu()
{
	if (document.frm2.ko_id_in.value == "") 
 	{
		alert("Select Your Valid Kovil");
		document.frm2.ko_id_in.focus();
		return false;
	}
	if (document.frm2.pr_pirivu_vc.value == "")
 	{
 		alert("Enter the Valid Pirivu");
 		document.frm2.pr_pirivu_vc.focus();
		return false;
	}
}
function Valid_EditKovil()
{
	if (document.frm2.ko_kovil_vc.value == "")
 	{
 		alert("Enter the Valid Kovil");
 		document.frm2.ko_kovil_vc.focus();
		return false;
	}
}
function fcs()
{
document.frm2.pr_id_in.focus();
}
function valid_profileID()
{
if (document.frm2.txtprofID.value == " Search by Profile ID") 
 	{
		alert("Enter the Valid Profile ID");
		document.frm2.txtprofID.focus();
		return false;
	}
}
function valid_UnMarried()
{
if(document.frm2.RadioMS.Value == "1")
{
document.getElementById("ddchild").disabled = true;
document.getElementById("Radiochild").disabled = true;
return true;
}
else
{
document.getElementById("ddchild").disabled = false;
document.getElementById("Radiochild").disabled = false;
return false;
}
}
function valid_focAd()
{
document.getElementById("Submit1").disabled = true;
}
function valid_focAdr()
{
document.getElementById("Submit1").disabled = false;
}
function valid_foc()
{
document.getElementById("Submit1").disabled = true;
document.getElementById("Submit2").disabled = true;
}
function valid_focv()
{
document.getElementById("Submit1").disabled = false;
document.getElementById("Submit2").disabled = false;
}
function valid_focAppD()
{
document.getElementById("Submit1").disabled = true;
}
function valid_focvAppE()
{
document.getElementById("Submit1").disabled = false;
}
function valid_focvProf()
{
document.getElementById("Submit2").disabled = false;
document.getElementById("Submit1").disabled = true;
}
function Prof_Valid()
{
if ((document.frm2.txtprofID.value == " Search by Profile ID") || (document.frm2.txtprofID.value == ""))
 	{
		alert("Enter the Valid Profile ID");
		document.frm2.txtprofID.focus();
		return false;
	}
}
function valid_MaxWrite()
		{
			var len = document.frm2.wu_msg_vc.value;
			var le = len.length;
			if(le < 300)
			{
			return true;
			}
			else
			{
			alert("300 Characters only allowed");
			document.frm2.wu_msg_vc.focus();
			return false;
			}
		}

function valid_MaxSugg()
		{
			var len = document.frm2.cu_sugg_vc.value;
			var le = len.length;
			if(le < 300)
			{
			return true;
			}
			else
			{
			alert("300 Characters only allowed");
			document.frm2.cu_sugg_vc.focus();
			return false;
			}
		}
function valid_MaxFAbt()
		{
			var len = document.frm2.fa_abtfamily_vc.value;
			var le = len.length;
			if(le < 500)
			{
			return true;
			}
			else
			{
			alert("500 Characters only allowed");
			document.frm2.fa_abtfamily_vc.focus();
			return false;
			}
		}
function valid_MaxPAbt()
		{
			var len = document.frm2.pp_pdescription_vc.value;
			var le = len.length;
			if(le < 500)
			{
			return true;
			}
			else
			{
			alert("500 Characters only allowed");
			document.frm2.pp_pdescription_vc.focus();
			return false;
			}
			pp_pdescription_vc
		}
function valid_MinFAbt()
		{
			var len = document.frm2.fa_abtfamily_vc.value;
			var le = len.length;
			if(le > 50)
			{
			return true;
			}
			else
			{
			alert("Write Minimum 50 Characters");
			document.frm2.fa_abtfamily_vc.focus();
			return false;
			}
		}
function valid_MaxCAdd()
		{
			var len = document.frm2.rg_add_vc.value;
			var le = len.length;
			if(le < 400)
			{
			return true;
			}
			else
			{
			alert("400 Characters only allowed");
			document.frm2.rg_add_vc.focus();
			return false;
			}
		}
function valid_MinCAdd()
		{
			var len = document.frm2.rg_add_vc.value;
			var le = len.length;
			if(le > 19)
			{
			return true;
			}
			else
			{
			alert("Write Minimum 20 Characters");
			document.frm2.rg_add_vc.focus();
			return false;
			}
		}
function valid_MaxAbt()
		{
			var len = document.frm2.rg_myself_vc.value;
			var le = len.length;
			if(le < 500)
			{
			return true;
			}
			else
			{
			alert("500 Characters only allowed");
			document.frm2.rg_myself_vc.focus();
			return false;
			}
		}
function valid_MinAbt()
		{
			var len = document.frm2.rg_myself_vc.value;
			var le = len.length;
			if(le > 50)
			{
			return true;
			}
			else
			{
			alert("Write Minimum 50 Characters");
			document.frm2.rg_myself_vc.focus();
			return false;
			}
		}
		
function valid_focApp()
		{
			var len = document.frm2.ad_OPass_vc1.value;
			//alert(document.Form1.caddr.value);
			var le = len.length;
			
			//if(document.Form1.caddr.value >10)
			//{
			//alert(le);
			if(le < 3)
			{
			///alert("Vijay")
			document.frm2.Submit2.focus();
			document.frm2.Submit2.focus == true;
			return true;
			}
			else
			{
			document.frm2.ad_OPass_vc1.focus();
			return false;
			}
			//}
			//alert(document.Form1.Button3.value);
			//document.Form1.Button3.focus();
			//return true;
			//}
			//return false;
		}
function index_focus1()
{
if ((document.frm2.PPhoto.checked == true) || (document.frm2.rg_mail_vc.value != "") || (document.frm2.rg_pass_vc.value != ""))
 	{
 		document.frm2.Button2.focus();
		return false;
	}

}
function index_focus()
{
if (document.frm2.rg_mail_vc.focus == true)
 	{
 		document.frm2.Submit11.focus();
		return false;
	}
//OnLoad="document.frm2.Button2.focus()"
if (document.frm2.rg_pass_vc.focus == true) 
 	{
 		document.frm2.Submit11.focus();
 		return false;
	}
	if (document.frm2.rg_pass_vc.value != "") 
 	{
 		document.frm2.Submit11.focus();
 		return false;
	}
}
function AddBkLogin_valid()
{
	if (document.frm2.ad_Ouser_vc1.value == "") 
 	{
		alert("Enter the Valid User Name");
		document.frm2.ad_Ouser_vc1.focus();
		return false;
	}
	if (document.frm2.ad_OPass_vc1.value == "") 
 	{
		alert("Enter the Valid Password");
		document.frm2.ad_OPass_vc1.focus();
		return false;
	}
}
function AddLogin_valid()
{
	if (document.frm2.ad_Ouser_vc.value == "") 
 	{
		alert("Enter the Valid User Name");
		document.frm2.ad_Ouser_vc.focus();
		return false;
	}
	if (document.frm2.ad_OPass_vc.value == "") 
 	{
		alert("Enter the Valid Password");
		document.frm2.ad_OPass_vc.focus();
		return false;
	}
	if(document.frm2.ad_Ouser_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.ad_Ouser_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.ad_Ouser_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;}
		var posb=0;
		posb=document.frm2.ad_Ouser_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.ad_Ouser_vc.focus(); document.frm2.ad_Ouser_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.ad_Ouser_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter User ID in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;	}
	}
	return true;
}
function Add_Valid()
{
	if (document.frm2.ad_name_vc.value == "") 
 	{
		alert("Enter the Valid Name");
		document.frm2.ad_name_vc.focus();
		return false;
	}
	if (document.frm2.ad_name_vc1.value == "") 
 	{
		alert("Enter the Valid Initial");
		document.frm2.ad_name_vc1.focus();
		return false;
	}
	if (document.frm2.ad_age_vc.value == "") 
 	{
		alert("Enter the Valid Age");
		document.frm2.ad_age_vc.focus();
		return false;
	}
	if (document.frm2.ad_native_vc.value == "") 
 	{
		alert("Enter the Valid Native");
		document.frm2.ad_native_vc.focus();
		return false;
	}
	if (document.frm2.ad_house_vc.value == "") 
 	{
		alert("Enter the Valid House");
		document.frm2.ad_house_vc.focus();
		return false;
	}
	if (document.frm2.ko_id_in.value == "") 
 	{
		alert("Select Your Valid Kovil");
		document.frm2.ko_id_in.focus();
		return false;
	}
	if (document.frm2.ad_Nflatno_vc.value == "") 
 	{
		alert("Enter Your Valid Native Flate No.");
		document.frm2.ad_Nflatno_vc.focus();
		return false;
	}
	if (document.frm2.ad_Nbuilding_vc.value == "") 
 	{
		alert("Enter Your Valid Name of House");
		document.frm2.ad_Nbuilding_vc.focus();
		return false;
	}
	if (document.frm2.ad_Nrsl_vc.value == "") 
 	{
		alert("Enter Your Valid Road/Street/Lane");
		document.frm2.ad_Nrsl_vc.focus();
		return false;
	}
	if (document.frm2.ad_Nsubarea_vc.value == "") 
 	{
		alert("Enter Your Valid Sub Area/Location");
		document.frm2.ad_Nsubarea_vc.focus();
		return false;
	}
	if (document.frm2.ad_Narea_vc.value == "") 
 	{
		alert("Enter Your Valid Area");
		document.frm2.ad_Narea_vc.focus();
		return false;
	}
	if (document.frm2.ad_Ncity_vc.value == "") 
 	{
		alert("Enter Your Valid City");
		document.frm2.ad_Ncity_vc.focus();
		return false;
	}
	if (document.frm2.ad_Nmobile_vc.value == "") 
 	{
		alert("Enter Your Valid Mobile Number");
		document.frm2.ad_Nmobile_vc.focus();
		return false;
	}
	if (document.frm2.ad_Oprofession1_vc.value == "") 
 	{
		alert("Enter the Valid Profession");
		document.frm2.ad_Oprofession1_vc.focus();
		return false;
	}
	if (document.frm2.ad_Ouser_vc.value == "") 
 	{
		alert("Enter the Valid User ID");
		document.frm2.ad_Ouser_vc.focus();
		return false;
	}
	if (document.frm2.ad_OPass_vc.value == "") 
 	{
		alert("Enter the Valid Password");
		document.frm2.ad_OPass_vc.focus();
		return false;
	}
	if(document.frm2.ad_Lmail_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.ad_Lmail_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.ad_Lmail_vc.focus();document.frm2.ad_Lmail_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.ad_Lmail_vc.focus();document.frm2.ad_Lmail_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.ad_Lmail_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.ad_Lmail_vc.focus();document.frm2.ad_Lmail_vc.select();return false;}
		var posb=0;
		posb=document.frm2.ad_Lmail_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.ad_Lmail_vc.focus();document.frm2.ad_Lmail_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.ad_Lmail_vc.focus(); document.frm2.ad_Lmail_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.ad_Lmail_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter User ID in Correct Format");document.frm2.ad_Lmail_vc.focus();document.frm2.ad_Lmail_vc.select();return false;	}
		return true;
	}
	if(document.frm2.ad_Omail_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.ad_Omail_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.ad_Omail_vc.focus();document.frm2.ad_Omail_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.ad_Omail_vc.focus();document.frm2.ad_Omail_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.ad_Omail_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.ad_Omail_vc.focus();document.frm2.ad_Omail_vc.select();return false;}
		var posb=0;
		posb=document.frm2.ad_Omail_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.ad_Omail_vc.focus();document.frm2.ad_Omail_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.ad_Omail_vc.focus(); document.frm2.ad_Omail_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.ad_Omail_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter User ID in Correct Format");document.frm2.ad_Omail_vc.focus();document.frm2.ad_Omail_vc.select();return false;	}
	return true;
	}
	if(document.frm2.ad_Ouser_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.ad_Ouser_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.ad_Ouser_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;}
		var posb=0;
		posb=document.frm2.ad_Ouser_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.ad_Ouser_vc.focus(); document.frm2.ad_Ouser_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.ad_Ouser_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter User ID in Correct Format");document.frm2.ad_Ouser_vc.focus();document.frm2.ad_Ouser_vc.select();return false;	}
	return true;
	}
}
function Reg_Valid_Edit()
{
 	if (document.frm2.rg_name_vc.value == "") 
 	{
		alert("Enter the Valid Name");
		document.frm2.rg_name_vc.focus();
		return false;
	}
	if (document.frm2.rg_age_vc.value == "") 
 	{
		alert("Enter the Valid Age");
		document.frm2.rg_age_vc.focus();
		return false;
	}
	if (document.frm2.RadioMF.Value == "")
	{
		alert("Select the Valid Status");
		document.frm2.RadioMF.focus();
		return false;
	}
	if (!document.frm2.RadioMS[0].checked && !document.frm2.RadioMS[1].checked)
	{
		alert("Select the Valid Marital Status");
		document.frm2.RadioMS.focus();
		return false;
	}
	if (document.frm2.ddchild.SelectedValue == "") 
 	{
		alert("Select the Valid No. of Children");
		document.frm2.ddchild.focus();
		return false;
	}
	if (document.frm2.RadiochildSelectedValue == "") 
 	{
		alert("Select the Valid Children living status");
		document.frm2.Radiochild.focus();
		return false;
	}
		if (document.frm2.rg_native_vc.value == "") 
 	{
		alert("Select the Valid Native Place");
		document.frm2.rg_native_vc.focus();
		return false;
	}
	if (document.frm2.rg_house_vc.value == "") 
 	{
		alert("Select the Valid House Name");
		document.frm2.rg_house_vc.focus();
		return false;
	}
}

function Login_Valid()
{
if (document.frm2.rg_mail_vc.value == "ID / Email") 
 	{
		alert("Enter Your Valid ID/Email");
		document.frm2.rg_mail_vc.focus();
		return false;
	}
if(document.frm2.rg_mail_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.rg_mail_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.rg_mail_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		var posb=0;
		posb=document.frm2.rg_mail_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.rg_mail_vc.focus(); document.frm2.rg_mail_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.rg_mail_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;	}
	}
	return true;
	
if (document.frm2.rg_pass_vc.value == "") 
 	{
		alert("Enter Your Valid Password");
		document.frm2.rg_pass_vc.focus();
		return false;
	}
}
function Search_Valid()
{
	if (document.frm2.ko_id_in1.value == "") 
 	{
		alert("Select Your Valid Kovil");
		document.frm2.ko_id_in1.focus();
		return false;
	}
}
function Search_Valid1()
{
	if (document.frm2.ko_id_inl.value == "") 
 	{
		alert("Select Your Valid Kovil");
		document.frm2.ko_id_inl.focus();
		return false;
	}
}
function ContactUs_Valid()
{
	if (document.frm2.cu_name_vc.value == "") 
 	{
		alert("Enter Your Valid Name");
		document.frm2.cu_name_vc.focus();
		return false;
	}
	if (document.frm2.cu_add1_vc.value == "") 
 	{
		alert("Enter Your Valid Address");
		document.frm2.cu_add1_vc.focus();
		return false;
	}
	if (document.frm2.cu_city_vc.value == "") 
 	{
		alert("Enter Your Valid City");
		document.frm2.cu_city_vc.focus();
		return false;
	}
	if (document.frm2.cu_pin_in.value == "") 
 	{
		alert("Enter Your Valid Pincode");
		document.frm2.cu_pin_in.focus();
		return false;
	}
	if (document.frm2.cu_phone_vc1.value == "") 
 	{
		alert("Enter Your Valid STD Code");
		document.frm2.cu_phone_vc1.focus();
		return false;
	}
	if (document.frm2.cu_phone_vc2.value == "") 
 	{
		alert("Enter Your Valid Phone Number");
		document.frm2.cu_phone_vc2.focus();
		return false;
	}
	if (document.frm2.cu_mail_vc.value == "") 
 	{
		alert("Enter Your Valid E-Mail ID");
		document.frm2.cu_mail_vc.focus();
		return false;
	}
	if(document.frm2.cu_mail_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.cu_mail_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.cu_mail_vc.focus();document.frm2.cu_mail_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.cu_mail_vc.focus();document.frm2.cu_mail_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.cu_mail_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.cu_mail_vc.focus();document.frm2.cu_mail_vc.select();return false;}
		var posb=0;
		posb=document.frm2.cu_mail_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.cu_mail_vc.focus();document.frm2.cu_mail_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.cu_mail_vc.focus(); document.frm2.cu_mail_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.cu_mail_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter Email in Correct Format");document.frm2.cu_mail_vc.focus();document.frm2.cu_mail_vc.select();return false;	}
	}
	return true;
	if (document.frm2.cu_subject_vc.value == "") 
 	{
		alert("Select Your Valid Subject");
		document.frm2.cu_subject_vc.focus();
		return false;
	}
	if (document.frm2.cu_subject1_vc.value == "") 
 	{
		alert("Enter Your Valid Subject");
		document.frm2.cu_subject1_vc.focus();
		return false;
	}
	if (document.frm2.cu_sugg_vc.value == "") 
 	{
		alert("Enter Your Valid Suggestion / Query");
		document.frm2.cu_sugg_vc.focus();
		return false;
	}
}
function WriteToUs_Valid()
{
	if (document.frm2.wu_name_vc.value == "") 
 	{
		alert("Enter Your Valid Name");
		document.frm2.wu_name_vc.focus();
		return false;
	}
	if (document.frm2.wu_mail_vc.value == "") 
 	{
		alert("Enter Your Valid Mail-ID");
		document.frm2.wu_mail_vc.focus();
		return false;
	}if (document.frm2.wu_category_vc.value == "") 
 	{
		alert("Select the Valid Category");
		document.frm2.wu_category_vc.focus();
		return false;
	}if (document.frm2.wu_sub_vc.value == "") 
 	{
		alert("Enter the Valid Subject");
		document.frm2.wu_sub_vc.focus();
		return false;
	}if (document.frm2.wu_msg_vc.value == "") 
 	{
		alert("Enter the Valid Message");
		document.frm2.wu_msg_vc.focus();
		return false;
	}
	if(document.frm2.wu_mail_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.wu_mail_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.wu_mail_vc.focus();document.frm2.wu_mail_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.wu_mail_vc.focus();document.frm2.wu_mail_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.wu_mail_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.wu_mail_vc.focus();document.frm2.wu_mail_vc.select();return false;}
		var posb=0;
		posb=document.frm2.wu_mail_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.wu_mail_vc.focus();document.frm2.wu_mail_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.wu_mail_vc.focus(); document.frm2.wu_mail_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.wu_mail_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter Email in Correct Format");document.frm2.wu_mail_vc.focus();document.frm2.wu_mail_vc.select();return false;	}
	}
	return true;
}
function Family_Valid()
{
	if (document.frm2.fa_fathernm_vc.value == "") 
 	{
		alert("Enter the Valid Father Name");
		document.frm2.fa_fathernm_vc.focus();
		return false;
	}
	if (document.frm2.fa_fatherocc_vc.value == "") 
 	{
		alert("Select the Valid Family Occupation");
		document.frm2.fa_fatherocc_vc.focus();
		return false;
	}
	if (document.frm2.fa_mothernm_vc.value == "") 
 	{
		alert("Enter the Valid Mother Name");
		document.frm2.fa_mothernm_vc.focus();
		return false;
	}
	if (document.frm2.fa_motherocc.value == "") 
 	{
		alert("Select the Valid Mother Occupation");
		document.frm2.fa_motherocc.focus();
		return false;
	}
	if (document.frm2.fa_familyorigin.value == "") 
 	{
		alert("Select the Valid Family Orgin");
		document.frm2.fa_familyorigin.focus();
		return false;
	}
	if (document.frm2.ddbr.value == "") 
 	{
		alert("Select the Valid No.of brothers");
		document.frm2.ddbr.focus();
		return false;
	}
	if (document.frm2.ddbrmrg.value == "") 
 	{
		alert("Select the Valid Brothers married");
		document.frm2.ddbrmrg.focus();
		return false;
	}
	if (document.frm2.ddsis.value == "") 
 	{
		alert("Select the Valid No.of sisters");
		document.frm2.ddsis.focus();
		return false;
	}
	if (document.frm2.ddsismrg.value == "") 
 	{
		alert("Select the Valid Sister married");
		document.frm2.ddsismrg.focus();
		return false;
	}
	if (document.frm2.fa_pangali_vc.value == "") 
	{
		alert("Enter Your Valid Pangali Name");
		document.frm2.fa_pangali_vc.focus();
		return false;
	}
	if (document.frm2.fa_pphone_vc.value == "") 
	{
		alert("Enter Your Valid Pangali Phone Number");
		document.frm2.fa_pphone_vc.focus();
		return false;
	}
	if (document.frm2.fa_pangali1_vc.value == "") 
	{
		alert("Enter Your Valid Pangali Name");
		document.frm2.fa_pangali1_vc.focus();
		return false;
	}
	if (document.frm2.fa_pphone1_vc.value == "") 
	{
		alert("Enter Your Valid Pangali Phone Number");
		document.frm2.fa_pphone1_vc.focus();
		return false;
	}
	if (document.frm2.fa_pangali2_vc.value == "") 
	{
		alert("Enter Your Valid Pangali Name");
		document.frm2.fa_pangali2_vc.focus();
		return false;
	}
	if (document.frm2.fa_pphone2_vc.value == "") 
	{
		alert("Enter Your Valid Pangali Phone Number");
		document.frm2.fa_pphone2_vc.focus();
		return false;
	}
	if (document.frm2.fa_relative_vc.value == "") 
	{
		alert("Enter Your Valid Relatives Details");
		document.frm2.fa_relative_vc.focus();
		return false;
	}
	if (document.frm2.fa_rphone_vc.value == "") 
	{
		alert("Enter Your Valid Relative Phone Number");
		document.frm2.fa_rphone_vc.focus();
		return false;
	}
	if (document.frm2.fa_relative1_vc.value == "") 
	{
		alert("Enter Your Valid Relatives Details");
		document.frm2.fa_relative1_vc.focus();
		return false;
	}
	if (document.frm2.fa_rphone1_vc.value == "") 
	{
		alert("Enter Your Valid Relative Phone Number");
		document.frm2.fa_rphone1_vc.focus();
		return false;
	}
	if (document.frm2.fa_relative2_vc.value == "") 
	{
		alert("Enter Your Valid Relatives Details");
		document.frm2.fa_relative2_vc.focus();
		return false;
	}
	if (document.frm2.fa_rphone2_vc.value == "") 
	{
		alert("Enter Your Valid Pangali Relative Number");
		document.frm2.fa_rphone2_vc.focus();
		return false;
	}
	if (document.frm2.fa_abtfamily_vc.value == "") 
	{
		alert("Enter Your Valid Family Details");
		document.frm2.fa_abtfamily_vc.focus();
		return false;
	}
}
function Reg_Valid()
{
 	if (document.frm2.rg_profile_vc.value == "") 
 	{
		alert("Enter the Valid Identify Name");
		document.frm2.rg_profile_vc.focus();
		return false;
	}
	if (document.frm2.rg_name_vc.value == "") 
 	{
		alert("Enter the Valid Name");
		document.frm2.rg_name_vc.focus();
		return false;
	}
	if (document.frm2.rg_age_vc.value == "") 
 	{
		alert("Enter the Valid Age");
		document.frm2.rg_age_vc.focus();
		return false;
	}
	if (document.frm2.RadioMF.Value == "")
	{
		alert("Select the Valid Status");
		document.frm2.RadioMF.focus();
		return false;
	}
	if (!document.frm2.RadioMS[0].checked && !document.frm2.RadioMS[1].checked)
	{
		alert("Select the Valid Marital Status");
		document.frm2.RadioMS.focus();
		return false;
	}
	if (document.frm2.ddchild.Value == "")
	{
		alert("Select the Valid No. of Children");
		document.frm2.ddchild.focus();
		return false;
	}
	if (document.frm2.RadiochildSelectedValue == "") 
 	{
		alert("Select the Valid Children living status");
		document.frm2.Radiochild.focus();
		return false;
	}
	if (document.frm2.ko_id_in.value == "") 
 	{
		alert("Select the Valid Kovil");
		document.frm2.ko_id_in.focus();
		return false;
	}
	if (document.frm2.rg_native_vc.value == "") 
 	{
		alert("Select the Valid Native Place");
		document.frm2.rg_native_vc.focus();
		return false;
	}
	if (document.frm2.rg_house_vc.value == "") 
 	{
		alert("Select the Valid House Name");
		document.frm2.rg_house_vc.focus();
		return false;
	}
	if (document.frm2.ng_country_id_in.value == "") 
 	{
		alert("Select the Valid Country");
		document.frm2.ng_country_id_in.focus();
		return false;
	}
	if (document.frm2.NG_Citizen_id_in.value == "") 
 	{
		alert("Select the Valid Citizenship");
		document.frm2.NG_Citizen_id_in.focus();
		return false;
	}
	if (document.frm2.rg_mail_vc.value == "") 
 	{
		alert("Enter the Valid E-Mail ID");
		document.frm2.rg_mail_vc.focus();
		return false;
	}
	if (document.frm2.rg_pass_vc.value == "") 
 	{
		alert("Enter the Valid Password");
		document.frm2.rg_pass_vc.focus();
		return false;
	}
	if (document.frm2.rg_conpass_vc.value == "") 
 	{
		alert("Enter the Valid Confirm Password");
		document.frm2.rg_conpass_vc.focus();
		return false;
	}
	if(document.frm2.rg_mail_vc.value!="")
	{
		var pos=0;
		pos=document.frm2.rg_mail_vc.value.indexOf("@");
		if( pos ==-1)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		else if(pos==0)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		var p7= 0;
		var p6 = document.frm2.rg_mail_vc.value
		p7=p6.length;
		var p8=p7-1;var p9=0;
		p9=p6.charAt(p8);
		if(p9=="@")
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		var posb=0;
		posb=document.frm2.rg_mail_vc.value.indexOf(".");
		if( posb ==-1)
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;}
		else if(posb==0)
		{alert("Enter Email in correct Format");document.frm2.rg_mail_vc.focus(); document.frm2.rg_mail_vc.select();return false;}
		var p7b= 0;
		var p6b = document.frm2.rg_mail_vc.value
		p7b=p6b.length;
		var p8b=p7b-1;
		var p9b=0;
		p9b=p6b.charAt(p8b);
		if(p9b==".")
		{alert("Enter Email in Correct Format");document.frm2.rg_mail_vc.focus();document.frm2.rg_mail_vc.select();return false;	}
	}
	return true;
}
function Reg1_Valid1()
{
	if (document.frm2.ddheight_inc.value == "") 
 	{
		alert("Select the Valid Height");
		document.frm2.ddheight_inc.focus();
		return false;
	}
	if (document.frm2.ddkg.value == "") 
 	{
		alert("Select the Valid Weight");
		document.frm2.ddkg.focus();
		return false;
	}
	if (document.frm2.ddphysical.value == "") 
 	{
		alert("Select the Valid Physical Status");
		document.frm2.ddphysical.focus();
		return false;
	}
	if (document.frm2.rg_edu_id.value == "") 
 	{
		alert("Select the Valid Education");
		document.frm2.rg_edu_id.focus();
		return false;
	}
	if (document.frm2.rg_occup_id_in.value == "") 
 	{
		alert("Select the Valid Occupation");
		document.frm2.rg_occup_id_in.focus();
		return false;
	}
	if (document.frm2.ddincome.value == "") 
 	{
		alert("Select the Valid Country");
		document.frm2.ddincome.focus();
		return false;
	}
	if (document.frm2.rg_annualincome_vc.value == "") 
 	{
		alert("Enter the Valid Anual Income");
		document.frm2.rg_annualincome_vc.focus();
		return false;
	}
	if (document.frm2.rg_bplace_vc.value == "") 
 	{
		alert("Enter the Valid Birth Place");
		document.frm2.rg_bplace_vc.focus();
		return false;
	}
	if (document.frm2.str_id_in.value == "") 
 	{
		alert("Select the Valid Birth Star");
		document.frm2.str_id_in.focus();
		return false;
	}
	if (document.frm2.rg_btime_vc.value == "") 
 	{
		alert("Enter the Valid Birth Time");
		document.frm2.rg_btime_vc.focus();
		return false;
	}
	if (document.frm2.rg_bdate_dt.value == "") 
 	{
		alert("Enter the Valid Birth Date");
		document.frm2.rg_bdate_dt.focus();
		return false;
	}
	if (document.frm2.st_id_in.value == "") 
 	{
		alert("Select the Valid Residing State");
		document.frm2.st_id_in.focus();
		return false;
	}
	if (document.frm2.ct_id_in.value == "") 
 	{
		alert("Select the Valid City");
		document.frm2.ct_id_in.focus();
		return false;
	}
	if (document.frm2.rg_add_vc.value == "") 
 	{
		alert("Enter the Valid Contact Address");
		document.frm2.rg_add_vc.focus();
		return false;
	}
	if (document.frm2.acode.value == "") 
 	{
		alert("Enter the Valid AreaCode");
		document.frm2.acode.focus();
		return false;
	}
	if (document.frm2.phone.value == "") 
 	{
		alert("Enter the Valid Phone Number");
		document.frm2.phone.focus();
		return false;
	}
	if (document.frm2.mobile.value == "") 
 	{
		alert("Enter the Valid Mobile Number");
		document.frm2.mobile.focus();
		return false;
	}
	if (document.frm2.rg_myself_vc.value == "") 
 	{
		alert("Enter Your Valid Myself Details");
		document.frm2.rg_myself_vc.focus();
		return false;
	}
	if (document.frm2.ddprofile.value == "") 
 	{
		alert("Enter Your Valid Profile created by");
		document.frm2.ddprofile.focus();
		return false;
	}
	
return true;
}
function Reg1_Valid1Edit()
{
	/*if (document.frm2.ddheight_inc.value == "") 
 	{
		alert("Select the Valid Height");
		document.frm2.ddheight_inc.focus();
		return false;
	}
	if (document.frm2.ddkg.value == "") 
 	{
		alert("Select the Valid Weight");
		document.frm2.ddkg.focus();
		return false;
	}*/
	if (document.frm2.ddphysical.value == "") 
 	{
		alert("Select the Valid Physical Status");
		document.frm2.ddphysical.focus();
		return false;
	}
	if (document.frm2.rg_edu_id.value == "") 
 	{
		alert("Select the Valid Education");
		document.frm2.rg_edu_id.focus();
		return false;
	}
	if (document.frm2.rg_occup_id_in.value == "") 
 	{
		alert("Select the Valid Occupation");
		document.frm2.rg_occup_id_in.focus();
		return false;
	}
	if (document.frm2.rg_annualincome_vc.value == "") 
 	{
		alert("Select the Valid Anual Income");
		document.frm2.rg_annualincome_vc.focus();
		return false;
	}
	if (document.frm2.rg_bplace_vc.value == "") 
 	{
		alert("Enter the Valid Birth Place");
		document.frm2.rg_bplace_vc.focus();
		return false;
	}
	if (document.frm2.str_id_in.value == "") 
 	{
		alert("Select the Valid Birth Star");
		document.frm2.str_id_in.focus();
		return false;
	}
	if (document.frm2.rg_btime_vc.value == "") 
 	{
		alert("Enter the Valid Birth Time");
		document.frm2.rg_btime_vc.focus();
		return false;
	}
	if (document.frm2.rg_bdate_dt.value == "") 
 	{
		alert("Enter the Valid Birth Date");
		document.frm2.rg_bdate_dt.focus();
		return false;
	}
	if (document.frm2.st_id_in.value == "") 
 	{
		alert("Select the Valid Residing State");
		document.frm2.st_id_in.focus();
		return false;
	}
	if (document.frm2.ct_id_in.value == "") 
 	{
		alert("Select the Valid City");
		document.frm2.ct_id_in.focus();
		return false;
	}
	if (document.frm2.rg_add_vc.value == "") 
 	{
		alert("Enter the Valid Contact Address");
		document.frm2.rg_add_vc.focus();
		return false;
	}
	if (document.frm2.acode.value == "") 
 	{
		alert("Enter the Valid AreaCode");
		document.frm2.acode.focus();
		return false;
	}
	if (document.frm2.phone.value == "") 
 	{
		alert("Enter the Valid Phone Number");
		document.frm2.phone.focus();
		return false;
	}
	if (document.frm2.mobile.value == "") 
 	{
		alert("Enter the Valid Mobile Number");
		document.frm2.mobile.focus();
		return false;
	}
	if (document.frm2.rg_myself_vc.value == "") 
 	{
		alert("Enter Your Valid Myself Details");
		document.frm2.rg_myself_vc.focus();
		return false;
	}
	if (document.frm2.ddprofile.value == "") 
 	{
		alert("Enter Your Valid Profile created by");
		document.frm2.ddprofile.focus();
		return false;
	}
	
return true;
}
function Form_Submit()
{
	document.frm2.submit();
}
function winopen(filenm)
{
	a=window.open(filenm,'_new','width=500, height=500, menubar=no, scrollbars=yes, resizable=yes');
	a.moveTo(0,0);
}
function winopen_sts(filenm)
{
	a=window.open(filenm,'_self','width=1000, height=600, menubar=no, scrollbars=yes, resizable=yes');
	a.moveTo(0,0);
}