		var hinduCasteList= new Array(159) ;
		
				hinduCasteList[0] = 'DOES*:*Does not matter';
				
				hinduCasteList[1] = 'NIYO*:*6000 Niyogi';
				
				hinduCasteList[2] = 'KOKA*:*96K Kokanastha';
				
				hinduCasteList[3] = 'ADID*:*Adi Dravida';
				
				hinduCasteList[4] = 'AGAR*:*Agarwal';
				
				hinduCasteList[5] = 'ANAV*:*Anavil Brahmin';
				
				hinduCasteList[6] = 'AROR*:*Arora';
				
				hinduCasteList[7] = 'ARYV*:*Arya Vysya';
				
				hinduCasteList[8] = 'ARYS*:*Aryasamaj';
				
				hinduCasteList[9] = 'ASSE*:*Assamese';
				
				hinduCasteList[10] = 'AUDI*:*Audichya Brahmin';
				
				hinduCasteList[11] = 'BAHI*:*Bahi';
				
				hinduCasteList[12] = 'BALI*:*Balija Naidu';
				
				hinduCasteList[13] = 'BENG*:*Bengali';
				
				hinduCasteList[14] = 'BENB*:*Bengali Brahmin';
				
				hinduCasteList[15] = 'BHAN*:*Bhandari';
				
				hinduCasteList[16] = 'BILL*:*Billava';
				
				hinduCasteList[17] = 'BRAH*:*Brahmin';
				
				hinduCasteList[18] = 'BRBH*:*Brahmin Bhumihar';
				
				hinduCasteList[19] = 'BRGO*:*Brahmin Goswami';
				
				hinduCasteList[20] = 'BRKM*:*Brahmin Kanada Madhva';
				
				hinduCasteList[21] = 'BRKA*:*Brahmin Kanyakubja';
				
				hinduCasteList[22] = 'BRNN*:*Brahmin Niyogi Nandavariki';
				
				hinduCasteList[23] = 'BRSA*:*Brahmin Saryuparin';
				
				hinduCasteList[24] = 'BRTY*:*Brahmin Tyagi';
				
				hinduCasteList[25] = 'BUNT*:*Bunt';
				
				hinduCasteList[26] = 'CHAU*:*Chaurasia';
				
				hinduCasteList[27] = 'CHET*:*Chettiar';
				
				hinduCasteList[28] = 'COOR*:*Coorgi';
				
				hinduCasteList[29] = 'DAVA*:*Davadnya Brahmin';
				
				hinduCasteList[30] = 'DAWO*:*Dawoodi Bhora';
				
				hinduCasteList[31] = 'DESH*:*Deshastha Brahmin';
				
				hinduCasteList[32] = 'DEVA*:*Devanga';
				
				hinduCasteList[33] = 'DHAN*:*Dhaneshawat Vaish';
				
				hinduCasteList[34] = 'DHIM*:*Dhiman Brahmin';
				
				hinduCasteList[35] = 'EZHA*:*Ezhava';
				
				hinduCasteList[36] = 'EZHU*:*Ezhuthachan';
				
				hinduCasteList[37] = 'GARW*:*Garhwali';
				
				hinduCasteList[38] = 'GARB*:*Garhwali Brahmins';
				
				hinduCasteList[39] = 'GARR*:*Garhwali Rajput';
				
				hinduCasteList[40] = 'GOMA*:*Gomantak Maratha';
				
				hinduCasteList[41] = 'GOSW*:*Goswami';
				
				hinduCasteList[42] = 'GOUN*:*Gounder';
				
				hinduCasteList[43] = 'GOUR*:*Gour Brahmin';
				
				hinduCasteList[44] = 'GOSB*:*Gowd Saraswat Brahmin';
				
				hinduCasteList[45] = 'GOWD*:*Gowda';
				
				hinduCasteList[46] = 'GUJA*:*Gujarati';
				
				hinduCasteList[47] = 'GUPT*:*Gupta';
				
				hinduCasteList[48] = 'GURJ*:*Gurjar';
				
				hinduCasteList[49] = 'HAVY*:*Havyaka Brahmin';
				
				hinduCasteList[50] = 'HIMA*:*Himachali';
				
				hinduCasteList[51] = 'IYEN*:*Iyengar';
				
				hinduCasteList[52] = 'IYER*:*Iyer';
				
				hinduCasteList[53] = 'IYEB*:*Iyer Brahmin';
				
				hinduCasteList[54] = 'JAIS*:*Jaiswal';
				
				hinduCasteList[55] = 'JAT*:*Jat';
				
				hinduCasteList[56] = 'KALA*:*Kalar';
				
				hinduCasteList[57] = 'KALI*:*Kalinga Vysya';
				
				hinduCasteList[58] = 'KAMB*:*Kamboj';
				
				hinduCasteList[59] = 'KAMM*:*Kamma';
				
				hinduCasteList[60] = 'KANN*:*Kannada Mogaveera';
				
				hinduCasteList[61] = 'KAPU*:*Kapu';
				
				hinduCasteList[62] = 'KANA*:*Kapu Naidu';
				
				hinduCasteList[63] = 'KARH*:*Karhade Brahmin';
				
				hinduCasteList[64] = 'KARU*:*Karuneekar';
				
				hinduCasteList[65] = 'KASH*:*Kashmiri Pandit  Brahmin';
				
				hinduCasteList[66] = 'KAAP*:*Kashyap';
				
				hinduCasteList[67] = 'KAYA*:*Kayastha';
				
				hinduCasteList[68] = 'KERA*:*Keralite';
				
				hinduCasteList[69] = 'KHAT*:*Khatri';
				
				hinduCasteList[70] = 'KHUK*:*Khukhrain';
				
				hinduCasteList[71] = 'KONG*:*Kongu Vellala Gounder';
				
				hinduCasteList[72] = 'KORI*:*Kori';
				
				hinduCasteList[73] = 'KOSH*:*Koshti';
				
				hinduCasteList[74] = 'KSHA*:*Kshatriya';
				
				hinduCasteList[75] = 'KUMN*:*Kumaoni';
				
				hinduCasteList[76] = 'KUBR*:*Kumaoni Brahmins';
				
				hinduCasteList[77] = 'KURA*:*Kumaoni Rajput';
				
				hinduCasteList[78] = 'KUMA*:*Kumawat';
				
				hinduCasteList[79] = 'KUMB*:*Kumbara';
				
				hinduCasteList[80] = 'KUNB*:*Kunbi';
				
				hinduCasteList[81] = 'KURM*:*Kurmi';
				
				hinduCasteList[82] = 'KURU*:*Kuruba';
				
				hinduCasteList[83] = 'LEVA*:*Leva Patil';
				
				hinduCasteList[84] = 'LING*:*Lingayat';
				
				hinduCasteList[85] = 'LOHA*:*Lohana';
				
				hinduCasteList[86] = 'MAIT*:*Maithil Brahmin';
				
				hinduCasteList[87] = 'MANA*:*Malayalee Namboodiri';
				
				hinduCasteList[88] = 'MALA*:*Malayalee Variar';
				
				hinduCasteList[89] = 'MLLI*:*Malayalee';
				
				hinduCasteList[90] = 'MALI*:*Mali';
				
				hinduCasteList[91] = 'MAHA*:*Maharashtrian';
				
				hinduCasteList[92] = 'MABR*:*Maharashtrian Brahmin';
				
				hinduCasteList[93] = 'MAHE*:*Maheshwari';
				
				hinduCasteList[94] = 'MARA*:*Maratha';
				
				hinduCasteList[95] = 'MARU*:*Maruthuvar';
				
				hinduCasteList[96] = 'MARV*:*Marvar';
				
				hinduCasteList[97] = 'MARW*:*Marwari';
				
				hinduCasteList[98] = 'MAUR*:*Maurya';
				
				hinduCasteList[99] = 'MENO*:*Menon';
				
				hinduCasteList[100] = 'MUDA*:*Mudaliar';
				
				hinduCasteList[101] = 'MUAR*:*Mudaliar Arcot';
				
				hinduCasteList[102] = 'MUSA*:*Mudaliar Saiva';
				
				hinduCasteList[103] = 'MUKU*:*Mukulathur';
				
				hinduCasteList[104] = 'NADA*:*Nadar';
				
				hinduCasteList[105] = 'NAGA*:*Nagar Brahmin';
				
				hinduCasteList[106] = 'NAID*:*Naidu';
				
				hinduCasteList[107] = 'NAIR*:*Nair';
				
				hinduCasteList[108] = 'NAVA*:*Nair Vaniya';
				
				hinduCasteList[109] = 'NAMB*:*Nambiar';
				
				hinduCasteList[110] = 'NEPA*:*Nepali';
				
				hinduCasteList[111] = 'ORIY*:*Oriya';
				
				hinduCasteList[112] = 'OBCB*:*OBC  Barber Naayee';
				
				hinduCasteList[113] = 'PADM*:*Padmashali';
				
				hinduCasteList[114] = 'PATD*:*Patel Desai';
				
				hinduCasteList[115] = 'PATK*:*Patel Kadva';
				
				hinduCasteList[116] = 'PATL*:*Patel Leva';
				
				hinduCasteList[117] = 'PERI*:*Perika';
				
				hinduCasteList[118] = 'PILL*:*Pillai';
				
				hinduCasteList[119] = 'PRAJ*:*Prajapati';
				
				hinduCasteList[120] = 'PUNJ*:*Punjabi';
				
				hinduCasteList[121] = 'PUBR*:*Punjabi Brahmin';
				
				hinduCasteList[122] = 'RAJP*:*Rajput';
				
				hinduCasteList[123] = 'REDD*:*Reddy';
				
				hinduCasteList[124] = 'SARA*:*Saraswat Brahmins';
				
				hinduCasteList[125] = 'SAHU*:*Sahu';
				
				hinduCasteList[126] = 'SCHE*:*Scheduled Caste';
				
				hinduCasteList[127] = 'SEPA*:*Sepahia';
				
				hinduCasteList[128] = 'SETT*:*Setti Balija';
				
				hinduCasteList[129] = 'SIND*:*Sindhi';
				
				hinduCasteList[130] = 'SOMV*:*Somvanshi';
				
				hinduCasteList[131] = 'SONA*:*Sonar';
				
				hinduCasteList[132] = 'SOWR*:*Sowrashtra';
				
				hinduCasteList[133] = 'SOZH*:*Sozhiya Vellalar';
				
				hinduCasteList[134] = 'SUTA*:*Sutar';
				
				hinduCasteList[135] = 'SWAR*:*Swarnakar';
				
				hinduCasteList[136] = 'TAMI*:*Tamil';
				
				hinduCasteList[137] = 'TELI*:*Teli';
				
				hinduCasteList[138] = 'TELU*:*Telugu';
				
				hinduCasteList[139] = 'TEBR*:*Telugu Brahmin';
				
				hinduCasteList[140] = 'THEV*:*Thevar';
				
				hinduCasteList[141] = 'THIY*:*Thiyya';
				
				hinduCasteList[142] = 'UDAY*:*Udayar';
				
				hinduCasteList[143] = 'VAID*:*Vaidiki Brahmin';
				
				hinduCasteList[144] = 'VAIS*:*Vaishnav';
				
				hinduCasteList[145] = 'VABH*:*Vaishnav Bhatia';
				
				hinduCasteList[146] = 'VAVA*:*Vaishnav Vania';
				
				hinduCasteList[147] = 'VARS*:*Varshney';
				
				hinduCasteList[148] = 'VASH*:*Vanniyakullak Shatriya';
				
				hinduCasteList[149] = 'VANN*:*Vanniyar';
				
				hinduCasteList[150] = 'VEER*:*Veerashaiva';
				
				hinduCasteList[151] = 'VELE*:*Velethadathu Nair';
				
				hinduCasteList[152] = 'VELL*:*Vellalar';
				
				hinduCasteList[153] = 'VEMA*:*Vellama';
				
				hinduCasteList[154] = 'VISH*:*Vishwakarma';
				
				hinduCasteList[155] = 'VISW*:*Viswabrahmin';
				
				hinduCasteList[156] = 'VOKA*:*Vokaliga';
				
				hinduCasteList[157] = 'VYSY*:*Vysya';
				
				hinduCasteList[158] = 'YADA*:*Yadav';
				

		var muslimCasteList= new Array(7) ;
		
				muslimCasteList[0] = 'DOEM*:*Does not matter';
				
				muslimCasteList[1] = 'EHLE*:*Ehle Hadith';
				
				muslimCasteList[2] = 'GUMU*:*Gulf Muslims';
				
				muslimCasteList[3] = 'MEMO*:*Memon';
				
				muslimCasteList[4] = 'SHIA*:*Shia';
				
				muslimCasteList[5] = 'SHII*:*Shia Imami Ismaili';
				
				muslimCasteList[6] = 'SUNN*:*Sunni';
				
	
		var christianCasteList= new Array(11) ;
		
				christianCasteList[0] = 'DOEC*:*Does not matter';
				
				christianCasteList[1] = 'BORN*:*Born Again';
				
				christianCasteList[2] = 'CATH*:*Catholic';
				
				christianCasteList[3] = 'CMSA*:*CMS';
				
				christianCasteList[4] = 'CSIC*:*CSI';
				
				christianCasteList[5] = 'EVAN*:*Evangelical';
				
				christianCasteList[6] = 'GOAN*:*Goan';
				
				christianCasteList[7] = 'JACO*:*Jacobite';
				
				christianCasteList[8] = 'MART*:*Marthoma';
				
				christianCasteList[9] = 'PROT*:*Protestant';
				
				christianCasteList[10] = 'SYRI*:*Syrian';
				

		var sikhCasteList= new Array(7) ;
		
				sikhCasteList[0] = 'DOSN*:*Does not matter';
				
				sikhCasteList[1] = 'CLEA*:*Clean Shaven';
				
				sikhCasteList[2] = 'GURS*:*Gursikh';
				
				sikhCasteList[3] = 'JATA*:*Jat';
				
				sikhCasteList[4] = 'KESA*:*Kesadhari';
				
				sikhCasteList[5] = 'KHTS*:*Khatri';
				
				sikhCasteList[6] = 'RAMG*:*Ramgharia';
				

		var jainCasteList= new Array(4) ;
		
				jainCasteList[0] = 'DOEJ*:*Does not matter';
				
				jainCasteList[1] = 'DIGA*:*Digambar';
				
				jainCasteList[2] = 'SHEW*:*Shewetamber';
				
				jainCasteList[3] = 'VANI*:*Vania';
				

		function populateCastes(casteObj, religionSelected){
	
			casteObj.length = 1;
			casteObj.options[0].value = "";
			casteObj.options[0].text = "--Please Select--";
	
			if (religionSelected == "HIND" || religionSelected == "HIAS" || religionSelected == "HIBE" || religionSelected == "HIGU" || religionSelected == "HIHI" || religionSelected == "HIKA" || religionSelected == "HIMA" || religionSelected == "HIMI" || religionSelected == "HIMR" || religionSelected == "HIOR" || religionSelected == "HIPU" || religionSelected == "HISI" || religionSelected == "HITA" || religionSelected == "HITE"){
				casteObj.length = casteObj.length + hinduCasteList.length;
				for (i=0; i<hinduCasteList.length;i++){
					casteObj.options[i+1].value = getKey1(hinduCasteList[i]);
					casteObj.options[i+1].text = getValue1(hinduCasteList[i]);
				}
				return;
			}
	
			if (religionSelected == "MUSL"){
				casteObj.length = casteObj.length + muslimCasteList.length;
				for (i=0; i<muslimCasteList.length;i++){
					casteObj.options[i+1].value = getKey1(muslimCasteList[i]);
					casteObj.options[i+1].text = getValue1(muslimCasteList[i]);
				}
				return;
			}

			if (religionSelected == "CHRI"){
				casteObj.length = casteObj.length + christianCasteList.length;
				for (i=0; i<christianCasteList.length;i++){
					casteObj.options[i+1].value = getKey1(christianCasteList[i]);
					casteObj.options[i+1].text = getValue1(christianCasteList[i]);
				}
				return;
			}

			if (religionSelected == "SIKH"){
				casteObj.length = casteObj.length + sikhCasteList.length;
				for (i=0; i<sikhCasteList.length;i++){
					casteObj.options[i+1].value = getKey1(sikhCasteList[i]);
					casteObj.options[i+1].text = getValue1(sikhCasteList[i]);
				}
				return;
			}

			if (religionSelected == "JAIN"){
				casteObj.length = casteObj.length + jainCasteList.length;
				for (i=0; i<jainCasteList.length;i++){
					casteObj.options[i+1].value = getKey1(jainCasteList[i]);
					casteObj.options[i+1].text = getValue1(jainCasteList[i]);
				}
				return;
			}


		}
	
		function getKey1(str){
			if (str != ""){
				var strArr = str.split("*:*");
				return strArr[0];
			}
		}
	
		function getValue1(str){
			if (str != ""){
				var strArr = str.split("*:*");
				return strArr[1];
			}
		}
		
		function religionValueChange(formObj,selObj) {
			var counter=0;
			var sReligion;
			var selectedReligion=new Array(); 

			for(i=0;i<selObj.length;i++){

			if(selObj.options[i].selected == true){
					counter++;
					sReligion=selObj.options[i].value;
					selectedReligion[i]=selObj.value
				}
			}

			if((counter==1)&&((sReligion=="HIND")  || (sReligion=="HIAS") || (sReligion=="HIBE") || (sReligion=="HIGU") || (sReligion=="HIHI") || (sReligion=="HIKA") || (sReligion=="HIMA") || (sReligion=="HIMI") || (sReligion=="HIMR") || (sReligion=="HIOR") || (sReligion=="HIPU") || (sReligion=="HISI") || (sReligion=="HITA") || (sReligion=="HITE") ||(sReligion=="MUSL") || (sReligion=="CHRI") ||(sReligion=="SIKH") ||(sReligion=="JAIN" ))){
				populateCastes(formObj["caste"], sReligion);
				formObj["caste"].disabled=false;
			}
			else{
				populateCastes(formObj["caste"], "---Please Select---");
				formObj["caste"].disabled=true;
			}

		}
		
	
	function myDescription() {
	document.reg.elements["mydescriptioncount"].value=document.reg.elements[this.document.reg.id+"moreAboutYou"].value.length+1;
	}

function checkRegForm()
{
	if(document.reg.title.value=='')
	{
		alert("Please enter profile title");
		document.reg.title.focus();
		return false;
	}

	if(document.reg.gender.value=='')
	{
		alert("Please select Gender");
		document.reg.gender.focus();
		return false;
	}

	if(document.reg.day.value==0)
	{
		alert("Please enter date of birth");
		document.reg.day.focus();
		return false;
	}
	if(document.reg.month.value==0)
	{
		alert("Please enter month of birth");
		document.reg.month.focus();
		return false;
	}
	if(document.reg.year.value==0)
	{
		alert("Please enter year of birth");
		document.reg.year.focus();
		return false;
	}
	if(document.reg.month.value==4 || document.reg.month.value==6 || document.reg.month.value==9 || document.reg.month.value==11)
	{
		if(document.reg.day.value==31)
		{
			alert("Please enter coorect date");
			document.reg.day.focus();
			return false;
		}
	}
	if(document.reg.month.value==2)
	{
		if(document.reg.year.value%4==0)
		{
			if(document.reg.day.value>29)
			{
				alert("Please enter coorect date");
				document.reg.day.focus();
				return false;
			}
		}
		else
		{
			if(document.reg.day.value>28)
			{
				alert("Please enter coorect date");
				document.reg.day.focus();
				return false;
			}
		}		
	}	
	if(document.reg.marital.value==0)
	{
		alert("Please select the marital status");
		document.reg.marital.focus();
		return false;
	}
	if(document.reg.height.value=='')
	{
		alert("Please select your height");
		document.reg.height.focus();
		return false;
	}

	if(document.reg.weight.value=='')
	{
		alert("Please select your Weight");
		document.reg.weight.focus();
		return false;
	}

	/*if(document.reg.complexion.value==0)
	{
		alert("Please select complexion");
		document.reg.complexion.focus();
		return false;
	}

	if(document.reg.speces.value==0)
	{
		alert("Please enter Specs/Lenses");
		document.reg.speces.focus();
		return false;
	}*/

	if(document.reg.birthplace.value==0)
	{
		alert("Please enter your Birth Place");
		document.reg.birthplace.focus();
		return false;
	}

	/*if(document.reg.blood.value==0)
	{
		alert("Please enter your Blood Group");
		document.reg.blood.focus();
		return false;
	}*/

	if(document.reg.sunSign.value==0)
	{
		alert("Please select your Sun Sign");
		document.reg.sunSign.focus();
		return false;
	}

	if(document.reg.marital.value==0)
	{
		alert("Please select your Marital Status");
		document.reg.marital.focus();
		return false;
	}
 /* if(document.reg.feature.value==0)
	{
		alert("Please enter your Feature");
		document.reg.feature.focus();
		return false;
	}

	if(document.reg.special.value==0)
	{
		alert("Please enter Special Case");
		document.reg.special.focus();
		return false;
	}
	
		if(document.reg.havechildren.value==0)
	{
		alert("Please select Children");
		document.reg.havechildren.focus();
		return false;
	}
	
		if(document.reg.bodytype.value==0)
	{
		alert("Please select BodyType");
		document.reg.bodytype.focus();
		return false;
	}
	
		if(document.reg.phy.value==0)
	{
		alert("Please select Physical Status");
		document.reg.phy.focus();
		return false;
	}*/


	if(document.reg.religion.value=="0")
	{
		alert("Please select the religion");
		document.reg.religion.focus();
		return false;
	}
	if(document.reg.mothertongue.value=="0")
	{
		alert("Please select your mother tongue");
		document.reg.mothertongue.focus();
		return false;
	}	
	
		if(document.reg.caste.value=="0")
	{
		alert("Please select your Caste");
		document.reg.caste.focus();
		return false;
	}
	
		if(document.reg.mang.value=="0")
	{
		alert("Please select whether you are Manglik");
		document.reg.mang.focus();
		return false;
	}

	if(document.reg.education.value==0)
	{
		alert("Please select your education");
		document.reg.education.focus();
		return false;
	}

	if(document.reg.occupation.value==0)
	{
		alert("Please enter your Occupation");
		document.reg.occupation.focus();
		return false;
	}
	
		/* if(document.reg.annual.value==0)
	{
		alert("Please enter your Annual Income");
		document.reg.annual.focus();
		return false;
	} */
	
		if(document.reg.jdetail.value==0)
	{
		alert("Please enter your Job Details");
		document.reg.jdetail.focus();
		return false;
	}


	if(document.reg.address.value=='')
	{
		alert("Please write your adress");
		document.reg.address.focus();
		return false;
	}
	if(document.reg.city.value=='')
	{
		alert("Please write your city");
		document.reg.city.focus();
		return false;
	}
	if(document.reg.country.value=='0')
	{
		alert("Please write your country");
		document.reg.country.focus();
		return false;
	}	
	
		if(document.reg.phone.value=='' && document.reg.mobile.value=='');
	{
		alert("Please enter either your Phone Number or Mobile number");
		document.reg.phone.focus();
		return false;
	}
	
		if(document.reg.zip.value=='0')
	{
		alert("Please enter your Postal Code");
		document.reg.zip.focus();
		return false;
	}


	if(document.reg.email.value=='')
	{
		alert("Please write your Email Id");
		document.reg.email.focus();
		return false;
	}
		if(document.reg.desc.value=='')
	{
		alert("Please write your Profile description ");
		document.reg.desc.focus();
		return false;
	}
	if(document.reg.registeredby.value==0)
	{
		alert("Please select Profile created by");
		document.reg.registeredby.focus();
		return false;
	}
}
	function myDescription() {
	document.reg.elements["mydescriptioncount"].value=document.reg.elements[this.document.reg.id+"moreAboutYou"].value.length+1;
	}



function CheckForm()
{
	
	docf=document.f;
	if(docf.firstName.value=="")
	{
	alert("Plese enter your FirstName !")
	docf.firstName.focus();
	return false;
	}

	if(docf.lastName.value=="")
	{
	alert("Please enter your Last name!")
	docf.lastName.focus();
	return false;
	}

	if(docf.loginId.value=="")
	{
	alert("Please enter Login Id!")
	docf.loginId.focus();
	return false;
	}

	if(docf.loginId.value.indexOf(' ')!= -1 || docf.loginId.value.indexOf('.')!= -1)
	{
	alert("Please enter correct Login ID!")
	docf.loginId.focus();
	return false;
	}

	if(docf.password.value=="")
	{
	alert("Please enter Password!")
	docf.password.focus();
	return false;
	}

	var passw=docf.password.value
	if(docf.password.value.length<4)
	{
	alert("Password should have minimum of four characters!")
	docf.password.focus();
	return false;
	}

	if(docf.rePass.value=="")
	{
	alert("Please enter Confirm password!")
	docf.rePass.focus();
	return false;
	}

	if(docf.rePass.value!=docf.password.value)
	{
	alert("Your password and confirm password do not match!")
	docf.rePass.focus();
	return false;
	}

	if(docf.emailId.value=="")
	{
	alert("Please enter emailId")
	docf.emailId.focus();
	return false;
	}

	return validate_form(docf);
}

function validate_email(field,alerttxt)
{
	with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
  		{
  			alert(alerttxt);
  			return false;
  		}
		else 
		{
			return true;
		}
	}
	
}


function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_email(emailId,"Not a valid e-mail address!")==false)
  		{
  			emailId.focus();
  			return false;
  		}
	}
	
}

function header1()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width=208><img border="0" src="images/top1.jpg" width="208" height="134"></td><td width=252><img border="0" src="images/top2.jpg" width="252" height="134"></td>');
	document.write('<td background="images/top3.jpg" width="319" height="134"><table cellpadding=0 cellspacing=0 border=0 width=100%><tr height=100><td width=100% colspan=2></td></tr><tr><form NAME="login_form" ACTION="login.php" METHOD=POST onsubmit="return checkLoginForm(this);"><td><font class=login>User &nbsp;<input type=text size=10 name=user_id style="font-size: 8pt"> &nbsp; Password &nbsp;<input type=password size=10 name=password style="font-size: 8pt">&nbsp;</td><td width=50 valign=middle align=left><input type=image src="images/go.gif" width="43" height="19"></font></td></form></tr></table></td></tr></table>');
}
////////////////
function header()
{
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%"><img alt="" border="0" src="images/top1.jpg" width="208" height="134"></td>');
document.write('<td width="15%"><img alt="" border="0" src="images/top2.jpg" width="252" height="134"></td>');
document.write('<td width="45%" style="background-image: url(\'images/top_bg.jpg\'); background-repeat: repeat-x"></td>');
document.write('<td width="30%" style="background-image: url(\'images/top3.jpg\'); background-repeat: no-repeat">');
document.write('<div align="center">');
document.write('<form NAME="login_form" ACTION="login.php" METHOD=POST onsubmit="return checkLoginForm(this);">');
document.write('<table border="0" cellpadding="0" cellspacing="4" width="90%">');
document.write('<tr>');
document.write('<td width="50%"><font class=login>User</font></td>');
document.write('<td width="50%"><font class=login><input type=text size=10 name=user_id style="font-size: 8pt"></font></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="50%"><font class=login> Password</font></td>');
document.write('<td width="50%"><font class=login><input type=password size=15 name=password style="font-size: 8pt"></font></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="50%"></td>');
document.write('<td width="50%"><input type=image src="images/go.gif" width="43" height="19"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</form>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

}

////////////////
function internalheader()
{
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%"><img alt="" border="0" src="images/top1.jpg" width="208" height="134"></td>');
document.write('<td width="15%"><img alt="" border="0" src="images/top2.jpg" width="252" height="134"></td>');
document.write('<td width="45%" style="background-image: url(\'images/top_bg.jpg\'); background-repeat: repeat-x"></td>');
document.write('<td width="30%" style="background-image: url(\'images/top3.jpg\'); background-repeat: no-repeat">');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

}
//////////////
function topmenu()
{      
document.write('<table border="0" cellpadding="0" cellspacing="0" width="70%" class="headerlink">');
document.write('<tr>');
document.write('<td width="22%" align="center"><a href="index.html" class="headerlink">Home</a></td>');
document.write('<td width="2%" align="center">|</td>');
document.write('<td width="24%" align="center"><a href="aboutus.html" class="headerlink">About us</a></td>');
document.write('<td width="2%" align="center">|</td>');
document.write('<td width="24%" align="center"><a href="disclaimer.html" class="headerlink">Disclaimer</a></td>');
document.write('<td width="2%" align="center">|</td>');
document.write('<td width="24%" align="center"><a href="contactus.html" class="headerlink">Contact us</a></td>');
document.write('</tr>');
document.write('</table>');

}
/////////////

function leftpanel()
{
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="100%"><img alt="" border="0" src="images/left1.jpg" width="208" height="132"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%" height="20"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="4" cellspacing="1" width="90%" class="leftlink" bgcolor="#FFB566">');
document.write('<tr>');
document.write('<td width="100%" align="left" bgcolor="#F8F1D6">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%" align="center">');
document.write('<img border="0" src="images/arrow.gif" align="middle" alt="Arrow" width="8" height="5">');
document.write('</td>');
document.write('<td width="90%"><a href="Kashmiri-Muslim-Marriages.html" class="leftlink">Kashmiri Muslim Marriages</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%" align="left" bgcolor="#F8F1D6">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%" align="center"><img border="0" src="images/arrow.gif" align="middle" alt="Arrow" width="8" height="5"></td>');
document.write('<td width="90%"><a href="Kashmiri-Pandit-Marriages.html" class="leftlink">Kashmiri Pandit Marriages</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%" align="left" bgcolor="#F8F1D6">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%" align="center"><img border="0" src="images/arrow.gif" align="middle" alt="Arrow" width="8" height="5"></td>');
document.write('<td width="90%"><a href="Dogra-Marriages.html" class="leftlink">Dogra Marriages</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%" align="left" bgcolor="#F8F1D6">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%" align="center"><img border="0" src="images/arrow.gif" align="middle" alt="Arrow" width="8" height="5"></td>');
document.write('<td width="90%"><a href="Ladakhi-Buddhist-Marriages.html" class="leftlink">Ladakhi Buddhist Marriages</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%" align="left" bgcolor="#F8F1D6">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%" align="center"><img border="0" src="images/arrow.gif" align="middle" alt="Arrow" width="8" height="5"></td>');
document.write('<td width="90%"><a href="Gujjar-Bakkarwal-Marriages.html" class="leftlink">Gujjar Bakkarwal Marriages</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%" align="left" bgcolor="#F8F1D6">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%" align="center"><img border="0" src="images/arrow.gif" align="middle" alt="Arrow" width="8" height="5"></td>');
document.write('<td width="90%"><a href="Kashmiri-Punjabi-Marriages.html" class="leftlink">Kashmiri');
document.write('Punjabi Marriages</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%" align="left" bgcolor="#F8F1D6">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="10%" align="center"><img border="0" src="images/arrow.gif" align="middle" alt="Arrow" width="8" height="5"></td>');
document.write('<td width="90%"><a href="Kashmiri-Sikh-Marriages.html" class="leftlink">Kashmiri');
document.write('Sikh Marriages</a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');                    
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="100%">');
document.write('<br>');
document.write('<br>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

}


function left()
{
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="100%"><img border="0" src="images/left1.jpg" width="208" height="132"></td>');
    document.write('</tr></table></td><td valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>');
    document.write('<td width="28"><img border="0" src="images/bar_corner.jpg" width="28" height="22"></td><td width="543" background="images/bar_bg.jpg">');
    document.write('<div align="right"><table border="0" cellpadding="0" cellspacing="0" width="65%"><tr>');
    document.write('<td width="1%"><p align="center"><a href=index.html class=links>Home</a></td><td width="1%">');
    document.write('<p align="center"><font class=links>|</font></td><td width="14%"><p align="center"><a href=aboutus.html class=links>About us</a></td><td width="1%"><p align="center"><font class=links>|</font></td>');
    document.write('<td width="14%"><p align="center"><a href=disclaimer.html class=links>Disclaimer</a></td><td width="1%"><p align="center"><font class=links>|</font></td>');
    document.write('<td width="15%"><p align="center"><a href=contactus.html class=links>Contact us</a></td></tr></table></div></td></tr>');
}
function accountpanel(username){
document.writeln('<table width=100% cellpadding=0 cellspacing=1 height=30 border=0><TR><TD BGCOLOR="#f0f0f0">&nbsp;<FONT class=textheading>Welcome <FONT COLOR="red">'+username+'</FONT></FONT></TD><!-- <TD bgcolor="#676767" align=center width=80><A HREF="account.php" style="{color:white;}"><B>My Account</A></TD> --><TD colspan=3 bgcolor="#999999" align=center  width=80><A HREF="logout.php" style="{color:white;}"><B>Logout</B></A></TD></TR></table>');
}
function checkLoginForm(frm){
	if (frm.user_id.value.length<=0 || frm.user_id.value == "" ){
		alert("Please enter the user id!");
		frm.user_id.focus();
		return false;
	}

	if (frm.password.value.length<=0 || frm.password.value == "" ){
		alert("Please enter the password!");
		frm.password.focus();
		return false;
	}
return true;
}
function displayStatusMsg(msgStr) { 
  status=msgStr;
  document.MM_returnValue = true;
}
function mailForm()
{
	if(document.mailf.message.value.length < 15)
	{
		alert("Message should be atleast 15 charecter");
		document.mailf.message.focus();		
		return false;
	}
}
function footer()
{
	document.write('<td width=100% colspan="2" background="images/bar_bg.jpg" height=20>');
    document.write('<p align="c"><font face="Verdana" size="1">© Copyright <a href="http://www.kashmirmart.com" target="_blank">kashmirmart.com</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.kashmirmart.com/directory/ouraffiliates.html"><p align="right">Link Exchange</a></right></font></td>');
}



function rightsearch()
{
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td width="5%"><img alt=""  border="0" src="images/org_corner-intrenal.jpg" width="20" height="134" valign="top"></td>');
document.write('<td width="90%" style="background-image: url(\'images/org_bg-internal.jpg\'); background-repeat: repeat-x" height="134">');
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr><td width="100%" class="partersearchint" valign="top">Partner Search<br></td></tr>');
document.write('<tr><td width="100%"><div align="center">');
document.write('<form method=post action=searchresult.php>');
document.write('<table border="0" cellpadding="0" width="100%" class="partersearchint1" cellspacing="4">');
document.write('<tr><td width="40%">Looking for</td><td width="60%"><select  name="lookingFor" style="font-family: arial, Verdana, sans-serif; font-size: 8pt;">');
document.write('<option value="female" selected>Bride</option>');
document.write('<option value="male">Groom</option>');
document.write('</select></td></tr>');
document.write('<tr><td width="30%">Religion</td><td width="60%"><select id="religion" name="religion"  style="font-family: arial, Verdana, sans-serif; font-size: 8pt;">');
document.write('<option selected value="All">All Relogion</option>');
document.write('<option value="HIND">Hindu</option>');
document.write('<option value="MUSL">Muslim</option>');
document.write('<option value="CHRI">Christian</option>');
document.write('<option value="SIKH">Sikh</option>');
document.write('<option value="PARS">Parsi</option>');
document.write('<option value="JAIN">Jain</option>');
document.write('<option value="BUDD">Buddhist</option>');
document.write('<option value="JEWI">Jewish</option>');
document.write('<option value="NORE">No Religion</option>');
document.write('<option value="SPIR">Spiritual</option>');
document.write('<option value="INTE">Inter Religion</option>');
document.write('<option value="OTHE">Other</option>');
document.write('</select></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="30%">Age</td>');
document.write('<td width="60%"><select name="agefrom" style="font-family: arial, Verdana, sans-serif; font-size: 8pt;" >');
document.write('<option value=18 selected>18</option>');
document.write('<option value=19>19</option>');
document.write('<option value=20>20</option>');
document.write('<option value=21>21</option>');
document.write('<option value=22>22</option>');
document.write('<option value=23>23</option>');
document.write('<option value=24>24</option>');
document.write('<option value=25>25</option>');
document.write('<option value=26>26</option>');
document.write('<option value=27>27</option>');
document.write('<option value=28>28</option>');
document.write('<option value=29>29</option>');
document.write('<option value=30>30</option>');
document.write('<option value=31>31</option>');
document.write('<option value=32>32</option>');
document.write('<option value=33>33</option>');
document.write('<option value=34>34</option>');
document.write('<option value=35>35</option>');
document.write('<option value=36>36</option>');
document.write('<option value=37>37</option>');
document.write('<option value=38>38</option>');
document.write('<option value=39>39</option>');
document.write('<option value=40>40</option>');
document.write('<option value=41>41</option>');
document.write('<option value=42>42</option>');
document.write('<option value=43>43</option>');
document.write('<option value=44>44</option>');
document.write('<option value=45>45</option>');
document.write('<option value=46>46</option>');
document.write('<option value=47>47</option>');
document.write('<option value=48>48</option>');
document.write('<option value=49>49</option>');
document.write('<option value=50>50</option>');
document.write('<option value=51>51</option>');
document.write('<option value=52>52</option>');
document.write('<option value=53>53</option>');
document.write('<option value=54>54</option>');
document.write('<option value=55>55</option>');
document.write('<option value=56>56</option>');
document.write('<option value=57>57</option>');
document.write('<option value=58>58</option>');
document.write('<option value=59>59</option>');
document.write('<option value=60>60</option>');
document.write('<option value=61>61</option>');
document.write('<option value=62>62</option>');
document.write('<option value=63>63</option>');
document.write('<option value=64>64</option>');
document.write('<option value=65>65</option>');
document.write('<option value=66>66</option>');
document.write('<option value=67>67</option>');
document.write('<option value=68>68</option>');
document.write('<option value=69>69</option>');
document.write('<option value=70>70</option>');
document.write('</select>   to <select name="ageto" style="font-family: arial, Verdana, sans-serif; font-size: 8pt;" >');
document.write('<option value=18>18</option>');
document.write('<option value=19>19</option>');
document.write('<option value=20>20</option>');
document.write('<option value=21>21</option>');
document.write('<option value=22>22</option>');
document.write('<option value=23>23</option>');
document.write('<option value=24>24</option>');
document.write('<option value=25 selected>25</option>');
document.write('<option value=26>26</option>');
document.write('<option value=27>27</option>');
document.write('<option value=28>28</option>');
document.write('<option value=29>29</option>');
document.write('<option value=30>30</option>');
document.write('<option value=31>31</option>');
document.write('<option value=32>32</option>');
document.write('<option value=33>33</option>');
document.write('<option value=34>34</option>');
document.write('<option value=35>35</option>');
document.write('<option value=36>36</option>');
document.write('<option value=37>37</option>');
document.write('<option value=38>38</option>');
document.write('<option value=39>39</option>');
document.write('<option value=40>40</option>');
document.write('<option value=41>41</option>');
document.write('<option value=42>42</option>');
document.write('<option value=43>43</option>');
document.write('<option value=44>44</option>');
document.write('<option value=45>45</option>');
document.write('<option value=46>46</option>');
document.write('<option value=47>47</option>');
document.write('<option value=48>48</option>');
document.write('<option value=49>49</option>');
document.write('<option value=50>50</option>');
document.write('<option value=51>51</option>');
document.write('<option value=52>52</option>');
document.write('<option value=53>53</option>');
document.write('<option value=54>54</option>');
document.write('<option value=55>55</option>');
document.write('<option value=56>56</option>');
document.write('<option value=57>57</option>');
document.write('<option value=58>58</option>');
document.write('<option value=59>59</option>');
document.write('<option value=60>60</option>');
document.write('<option value=61>61</option>');
document.write('<option value=62>62</option>');
document.write('<option value=63>63</option>');
document.write('<option value=64>64</option>');
document.write('<option value=65>65</option>');
document.write('<option value=66>66</option>');
document.write('<option value=67>67</option>');
document.write('<option value=68>68</option>');
document.write('<option value=69>69</option>');
document.write('<option value=70>70</option></select>');
document.write('</td></tr>');
document.write('<tr><td width="30%"></td><td width="60%"><input type="image" src=images/submit.gif width=59 height=23></td></tr>');
document.write('</table>');
document.write('</div>');
document.write('</td></tr></table>');
document.write('</div></td><td width="5%"><p align="right"><img alt=""  border="0" src="images/org_cornerrew-internal.jpg" width="20" height="134" valign="top"></td>');
document.write('</tr></table>');
document.write('</form>');
}

function rithtimage()
{
document.write('<p align="center"><a href="registrationForm.php"><img alt="" border="0" src=\'images/green_banner-int.jpg\' width="222" height="171"></a>');
}

/******************FUNCTION FOR FEEDBACK FORM***************************/


function check_feedbackform()
{
	
	docf=document.getElementById("frm3");
	
	if(docf.name.value=='')
	{
		alert("Please enter your Name");
		docf.name.focus();
		return false;
	}
	
	if(docf.email.value=='')
	{
		alert("Please enter your Email ID");
		docf.email.focus();
		return false;
	}

	if(docf.city.value=='null')
	{
		alert("Please enter City Name");
		docf.city.focus();
		return false;
	}
	if(docf.country.value=='Select a country')
	{
		alert("Please enter Country Name");
		docf.country.focus();
		return false;
	}
	
	if(docf.sitelayout.value=='')
	{
		alert("Please enter Rating Factor");
		docf.sitelayout.focus();
		return false;
	}

  if(docf.loadtime.value=='')
	{
		alert("Please enter Rating Factor");
		docf.loadtime.focus();
		return false;
	}
	if(docf.sectionhead.value=='')
	{
		alert("Please enter Rating Factor");
		docf.sectionhead.focus();
		return false;
	}
	if(docf.userfriendly.value=='')
	{
		alert("Please enter Rating Factor");
		docf.userfriendly.focus();
		return false;
	}
	if(docf.phone.value=='')
	{
		alert("Please enter your Phone");
		docf.phone.focus();
		return false;
	}
if(docf.comments.value=='')
	{
		alert("Please enter your Comments");
		docf.comments.focus();
		return false;
	}

	if(docf.reply.value=='')
	{
		alert("Please enter Would you like to receive reply?");
		docf.reply.focus();
		return false;
	}


if(docf.code_field.value=='')
	{
		alert("Please enter the Code above in Figure");
		docf.code_field.focus();
		return false;
	}


	 return validate_form(docf);
	
}

function validate_email(field,alerttxt)
{
	with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
  		{
  			alert(alerttxt);
  			return false;
  		}
		else 
		{
			return true;
		}
	}
	
}


function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_email(email,"Not a valid e-mail address!")==false)
  		{
  			email.focus();
  			return false;
  		}
	}
	
}
////////////////////////////