var newajax;try{newajax=new XMLHttpRequest}catch(e){try{newajax=new ActiveXObject("Msxml2.XMLHTTP")}catch(e$$1){try{newajax=new ActiveXObject("Microsoft.XMLHTTP")}catch(e$$2){}}}var newajaxadv;try{newajaxadv=new XMLHttpRequest}catch(e$$3){try{newajaxadv=new ActiveXObject("Msxml2.XMLHTTP")}catch(e$$4){try{newajaxadv=new ActiveXObject("Microsoft.XMLHTTP")}catch(e$$5){}}}var ajaxreq;try{ajaxreq=new XMLHttpRequest}catch(e$$6){try{ajaxreq=new ActiveXObject("Msxml2.XMLHTTP")}catch(e$$7){try{ajaxreq=new ActiveXObject("Microsoft.XMLHTTP")}catch(e$$8){}}}var newajax1;
try{newajax1=new XMLHttpRequest}catch(e$$9){try{newajax1=new ActiveXObject("Msxml2.XMLHTTP")}catch(e$$10){try{newajax1=new ActiveXObject("Microsoft.XMLHTTP")}catch(e$$11){}}}function calcAyanamsa(a){ln=(933060-6962911*a+7.5*a*a)/3600%360;Off=(259205536*a+2013816)/3600;Off=17.23*Math.sin(d2r*ln)+1.27*Math.sin(d2r*Off)-(5025.64+1.11*a)*a;return Off=(Off-80861.27)/3600}
function mdy2julian(a,b,c){with(Math){im=12*(c+4800)+a-3;j=(2*(im-floor(im/12)*12)+7+365*im)/12;j=floor(j)+b+floor(im/48)-32083;if(j>2299171)j+=floor(im/4800)-floor(im/1200)+38;return j}}
function generatehoroscopeforviewers1(a,b,c,g,l,k){if(a==""||b==""||c==""||g==""||l==""||k=="")alert("Sorry, this user data have some problem ...");else{with(Math){var d=floor(a);b=floor(b);var m=floor(c),n=floor(g);n+=floor(l)/60;var h=floor(5);h+=floor(30)/60}jd=mdy2julian(d,b,m);f=n-h;t=(jd-2415020+f/24-0.5)/36525;ay=calcAyanamsa(t);d="";d="?mn="+a+"&day="+b+"&yr="+c+"&hour="+g+"&minute="+l+"&keyword="+k+"&mn="+a+"&ay="+ay;document.getElementById("user2data").innerHTML="";newajax1.open("POST",
"natal_line_match1.php"+d,true);newajax1.setRequestHeader("Content-type","application/x-www-form-urlencoded");newajax1.setRequestHeader("Content-length",d.length);newajax1.setRequestHeader("Connection","close");newajax1.onreadystatechange=function(){if(newajax1.readyState==4)document.getElementById("user2data").innerHTML=newajax1.responseText};newajax1.send(d)}}
function generatehoroscopeforviewers(a,b,c,g,l,k){if(a==""||b==""||c==""||g==""||l==""||k=="")alert("Sorry, this user data have some problem ...");else{with(Math){var d=floor(a);b=floor(b);var m=floor(c),n=floor(g);n+=floor(l)/60;var h=floor(5);h+=floor(30)/60}jd=mdy2julian(d,b,m);f=n-h;t=(jd-2415020+f/24-0.5)/36525;ay=calcAyanamsa(t);d="";d="?mn="+a+"&day="+b+"&yr="+c+"&hour="+g+"&minute="+l+"&keyword="+k+"&mn="+a+"&ay="+ay;document.getElementById("user1data").innerHTML='<b><center><img src="images/loader.gif" alt="loading"><br>Processing Please Wait ...</center></b>';
newajax.open("POST","natal_line_match.php"+d,true);newajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");newajax.setRequestHeader("Content-length",d.length);newajax.setRequestHeader("Connection","close");newajax.onreadystatechange=function(){if(newajax.readyState==4){document.getElementById("user1data").innerHTML=newajax.responseText;document.getElementById("okbtn").style.display="none";finalmatch()}};newajax.send(d)}}
function finalmatch(){document.getElementById("finalmatch").innerHTML='<b><center><img src="images/loader.gif" alt="loading"><br>Loading ...</center></b>';newajax1.open("POST","finalmatch.php",true);newajax1.setRequestHeader("Content-type","application/x-www-form-urlencoded");newajax1.setRequestHeader("Content-length",0);newajax1.setRequestHeader("Connection","close");newajax1.onreadystatechange=function(){if(newajax1.readyState==4)document.getElementById("finalmatch").innerHTML=newajax1.responseText};
newajax1.send("")}
function doSubmit(){var a=document.frmSignup;if(a.txtemail.value==""){alert("Please Input Your email ID");a.txtemail.focus();return false}else if(emailCheck(a.txtemail.value))if(a.txtpassword.value==""){alert("Please input password");a.txtpassword.focus();return false}else if(a.txtpassword.value.length<5){alert("Please enter minimum 5 Password characters");a.txtpassword.focus();return false}else if(a.txtpassword2.value==""){alert("Please input confirm password");a.txtpassword2.focus();return false}else if(a.txtpassword.value!=
a.txtpassword2.value){alert("Password and Confirm Password must be same");a.txtpassword2.focus();return false}else if(Alpha(a.txtfirstname.value))if(a.txtfirstname.value.length>15){alert("Please enter firstname below 15 characters");a.txtfirstname.focus();return false}else if(Alpha(a.txtlastname.value))if(a.txtlastname.value.length>15){alert("Please enter lastname below 15 characters");a.txtlastname.focus();return false}else if(a.txtbirthMonth.selectedIndex==0||a.txtbirthDay.selectedIndex==0||a.txtbirthYear.selectedIndex==
0){alert("Please check your Date of Birth");a.txtbirthMonth.focus();return false}else if(a.txtbirthMonth.selectedIndex==2&&a.txtbirthDay.selectedIndex==30){alert("Please Check your date of birth");a.txtbirthMonth.focus();return false}else if(a.txtbirthMonth.selectedIndex==2&&a.txtbirthDay.selectedIndex==31){alert("Please Check your date of birth");a.txtbirthMonth.focus();return false}else if(a.txtheight.selectedIndex==0){alert("Please select height");a.txtheight.focus();return false}else if(a.txtfrom.value==
""){alert("Please Input Your country.");a.txtfrom.focus();return false}else if(a.txtstateuser.value==""&&a.txtstateuser1.value==""){alert("Please Input Your State.");a.txtstateuser1.focus();return false}else if(a.txtcityuser.value==""&&a.txtcityuser1.value==""){alert("Please Input Your city.");a.txtcityuser1.focus();return false}else if(a.txtmobile.value==""){alert("Please input mobile no.");a.txtmobile.focus();return false}else if(IsNumeric(a.txtmobile.value))if(a.txtmobile.value.length<5||a.txtmobile.value.length>
13){alert("Please Enter Valid mobile no.");a.txtmobile.focus();return false}else if(a.txtqualification.selectedIndex==0){alert("Please select highest qualification");a.txtqualification.focus();return false}else if(a.txtoccupation.selectedIndex==0){alert("Employed In is mandatory to select");a.txtoccupation.focus();return false}else if(a.txtprofessional_str.selectedIndex==0){alert("Profession Stream is mandatory to select");a.txtprofessional_str.focus();return false}else if(a.txtincome.selectedIndex==
0){alert("Please select Income");a.txtincome.focus();return false}else if(a.about_me.value==""){alert("Please Input About me");a.about_me.focus();return false}else if(a.accept_tos.checked==false){alert("Please Accept the Terms of Service");a.accept_tos.focus();return false}else if(a.about_me.value.length<50){alert("Please enter atleast 50 characters in About Me Field");a.about_me.focus();return false}else return true;else{alert("Please input valid mobile number.");a.txtmobile.focus();return false}else{alert("Please input your last name, Number & Symbols not Allowed");
a.txtlastname.focus();return false}else{alert("Please input your first name, Number & Symbols not Allowed");a.txtfirstname.focus();return false}else{alert("Please input valid email");a.txtemail.focus();return false}}
function checkemail(){var a=document.getElementById("txtemail").value,b;try{b=new XMLHttpRequest}catch(c){try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(g){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(l){}}}b.open("GET","fvaliddation.php"+("?email="+a),true);b.send(null);b.onreadystatechange=function(){if(b.readyState==4)document.getElementById("bemail").innerHTML=b.responseText}}
function checkpromo(){var a=document.getElementById("txtpromocode").value;document.getElementById("rpromo").innerHTML='<img src="/images/loadbuttonsmall.gif" alt="Processing...">';ajaxreq.open("GET","promoresult.php"+("?promocode="+a),true);ajaxreq.send(null);ajaxreq.onreadystatechange=function(){if(ajaxreq.readyState==4)document.getElementById("rpromo").innerHTML=ajaxreq.responseText}}
function instatus(){var a=document.getElementById("txtoccupation").value;if(a=="Unemployed"||a=="Select")document.getElementById("compname").style.display="none";else document.getElementById("compname").style.display="block"}function ingotraother(){if(document.getElementById("txtgotra").value=="Other")document.getElementById("showothergotra").style.display="block";else document.getElementById("showothergotra").style.display="none"}
function inzip(){document.getElementById("showzip").style.display="block"}function mstatus(){if(document.getElementById("txtmaritalstatus").value!="Unmarried")document.getElementById("hscope").style.display="block";else document.getElementById("hscope").style.display="none"}
function advsrch(){if(document.getElementById("txtfrom").value=="IN"){document.getElementById("txtstateuser").disabled=false;document.getElementById("txtcityuser").disabled=false}else{document.getElementById("txtstateuser").disabled=true;document.getElementById("txtcityuser").disabled=true}}
function inbrother(){var a=document.getElementById("txtbrother").value;document.getElementById("brother_cases").innerHTML="Loading...";ajaxreq.open("GET","brothersval.php"+("?bval="+a),true);ajaxreq.send(null);ajaxreq.onreadystatechange=function(){if(ajaxreq.readyState==4)document.getElementById("brother_cases").innerHTML=ajaxreq.responseText};document.getElementById("brother_cases").style.visible="block"}
function insister(){var a=document.getElementById("txtsister").value;document.getElementById("sister_cases").innerHTML="Loading...";ajaxreq.open("GET","sistersval.php"+("?sval="+a),true);ajaxreq.send(null);ajaxreq.onreadystatechange=function(){if(ajaxreq.readyState==4)document.getElementById("sister_cases").innerHTML=ajaxreq.responseText};document.getElementById("sister_cases").style.visible="block"}
function textLimit(a,b){if(a.value.length>b+1)if(a.value.length>b){alert("You can not enter more than 500 characters");a.value=a.value.substring(0,b)}}
function shownext(){var a;for(i=0;i<document.pform.popt.length;i++)if(document.pform.popt[i].checked)a=document.pform.popt[i].value;if(a==2){document.getElementById("onlinebutton").style.display="none";document.getElementById("ddpayment").style.display="block"}else{document.getElementById("onlinebutton").style.display="block";document.getElementById("ddpayment").style.display="none"}}
function textCounter(a,b){if(a.value.length>b)a.value=a.value.substring(0,b);else{dispval=b-a.value.length;document.getElementById("charinfo").innerHTML=dispval}}function showfulladdress(a,b){document.getElementById("fullcontact").innerHTML="Loading...";ajaxreq.open("GET","showfullcontact.php"+("?myid="+a+"&toid="+b),true);ajaxreq.send(null);ajaxreq.onreadystatechange=function(){if(ajaxreq.readyState==4)document.getElementById("fullcontact").innerHTML=ajaxreq.responseText}}
function getmycontacts(a){a="?myid="+a;document.getElementById("innerbody").innerHTML="Loading...";newajax.open("GET","mycontacts.php"+a,true);newajax.onreadystatechange=function(){if(newajax.readyState==4)document.getElementById("innerbody").innerHTML=newajax.responseText};newajax.send(null)}var NS4=navigator.appName=="Netscape"&&parseInt(navigator.appVersion)<5;
function addOption(a,b,c,g,l,k,d,m,n,h,o,p,q){if(g=="add")if(!(b==l||b==k||b==d||b==m||b==n||b==h||b==o||b==p||b==q)){b=new Option(b,c);a.options[a.length]=b}}function deleteOption(a,b,c){var g=a.length;if(g==1&&c=="India"||g==2&&c=="India"||g==3&&c=="India"||g==4&&c=="India"||g==5&&c=="India"||g==6&&c=="India"||g==7&&c=="India"||g==8&&c=="India"||g==9&&c=="India"){document.getElementById("prefer").style.display="none";document.getElementById("multcity").value=""}if(g>0)a.options[b]=null}
function moveOptions(a,b,c){var g=a.length,l=b.length,k=[],d=[],m=[],n=0,h=0,o,p,q=b.length,r=0,s=0,u=0;for(o=l-1;o>=0;o--){s+=1;if(c=="add"){m[h]=b.options[o].text;h++}}for(h=g-1;h>=0;h--)if(a.options[h].selected)r+=1;if(r>5)alert("Please dont select more than 5");else{for(h=g-1;h>=0;h--)if(a.options[h].selected){k[n]=a.options[h].text;if(k[n]=="India"){p=k[n];document.getElementById("prefer").style.display="block"}d[n]=a.options[h].value;c=="remove"&&deleteOption(a,h,p);n++}if(c=="add")if(q==1&&
b.options[0].text=="Doesn't Matter")b.options[0]=null;if(c=="add"){for(h=l-1;h>=0;h--)u+=1;for(h=n-1;h>=0;h--)s>=5||addOption(b,k[h],d[h],c,m[h],m[h+1],m[h+2],m[h+3],m[h+4],m[h-4],m[h-3],m[h-2],m[h-1])}}NS4&&history.go(0)}
function selQuallist(a,b,c,g,l){var k=a.length,d="";for(k=k-1;k>=0;k--)d=d+a.options[k].text+",";a=d.substring(0,d.length-1);document.getElementById("multedu").value=a;d="";for(a=b.length-1;a>=0;a--)d=d+b.options[a].text+",";b=d.substring(0,d.length-1);document.getElementById("multprof").value=b;k=c.length;d="";for(k=k-1;k>=0;k--)d=d+c.options[k].text+",";c=d.substring(0,d.length-1);document.getElementById("multloc").value=c;k=g.length;d="";for(k=k-1;k>=0;k--)d=d+g.options[k].text+",";g=d.substring(0,
d.length-1);document.getElementById("multcity").value=g;k=l.length;d="";for(k=k-1;k>=0;k--)d=d+l.options[k].text+",";l=d.substring(0,d.length-1);document.getElementById("multemp").value=l}function charcheck(){if(document.getElementById("about_me").value.length<50){alert("Enter min 50 characters");return false}}
function showcities(){if(document.getElementById("txtfrom").value=="IN"){var a;a="?stval="+document.getElementById("txtstateprovince1").value;var b=document.getElementById("loadcity"),c=b.innerHTML;b.innerHTML="Loading...";newajax.open("GET","getcities.php"+a,true);newajax.onreadystatechange=function(){if(newajax.readyState==4)document.getElementById("loadcity").innerHTML=newajax.responseText!=""?newajax.responseText:c};newajax.send(null)}}
function showcitiesadv(){document.getElementById("txtfrom");var a=document.getElementById("txtstateuser").value;if(a=="NC"||a=="All")document.getElementById("txtcityuser").disabled=true;else document.getElementById("txtcityuser").disabled=false}
function showcitiesedit(a,b){if(document.getElementById("txtfrom").value=="IN"){var c;c="?stval="+a+"&cval="+b;var g=document.getElementById("txtcity"),l=g.innerHTML;g.innerHTML="Loading...";newajax.open("GET","getcities.php"+c,true);newajax.onreadystatechange=function(){if(newajax.readyState==4)document.getElementById("txtcity").innerHTML=newajax.responseText!=""?newajax.responseText:l};newajax.send(null)}}function closeexp(){document.getElementById("exptool").style.display="none"}
function showexp(){document.getElementById("exptool").style.display="block"}zn="AriTauGemCanLeoVirLibScoSagCapAquPis";d2r=Math.PI/180;r2d=180/Math.PI;var range=[1,12,1,31,1800,2100,0,23,0,59,0,12,0,59,0,0,0,179,0,59,0,0,0,89,0,59];
function generatehoroscope(){document.getElementById("uploadkundali").style.display="none";var a=document.getElementById("mn").value,b=document.getElementById("day").value,c=document.getElementById("yr").value,g=document.getElementById("hour").value,l=document.getElementById("minute").value,k=document.getElementById("keyword").value;if(document.generateh.horovalue[0].checked)var d="Optional";if(document.generateh.horovalue[1].checked)d="Yes";if(document.generateh.horovalue[2].checked)d="No";if(a==
""||b==""||c==""||g==""||l==""||k=="")alert("Error... Please check whether Hour, Minute & Birth Place input selected ...");else{with(Math){var m=floor(a);b=floor(b);var n=floor(c),h=floor(g);h+=floor(l)/60;var o=floor(5);o+=floor(30)/60}jd=mdy2julian(m,b,n);f=h-o;t=(jd-2415020+f/24-0.5)/36525;ay=calcAyanamsa(t);a="?mn="+a+"&day="+b+"&yr="+c+"&hour="+g+"&minute="+l+"&keyword="+k+"&mn="+a+"&ay="+ay+"&action=save&hm="+d;document.getElementById("generatekundali").innerHTML="Processing ...";newajax.open("POST","natal_line.php"+a,true);
newajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");newajax.setRequestHeader("Content-length",a.length);newajax.setRequestHeader("Connection","close");newajax.onreadystatechange=function(){if(newajax.readyState==4)document.getElementById("generatekundali").innerHTML=newajax.responseText};newajax.send(a)}}
function showpts(){var a=document.getElementById("uid").value,b=document.getElementById("pid").value,c=document.getElementById("ugen").value;if(c=="M"){var g;g="?m1name="+a+"&m2name="+b}if(c=="F")g="?m1name="+b+"&m2name="+a;document.getElementById("pts").innerHTML="Processing ...";newajax.open("POST","matchkundali.php"+g,true);newajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");newajax.setRequestHeader("Content-length",g.length);newajax.setRequestHeader("Connection","close");
newajax.onreadystatechange=function(){if(newajax.readyState==4)document.getElementById("pts").innerHTML=newajax.responseText};newajax.send(g)}function calcAyanamsa(a){ln=(933060-6962911*a+7.5*a*a)/3600%360;Off=(259205536*a+2013816)/3600;Off=17.23*Math.sin(d2r*ln)+1.27*Math.sin(d2r*Off)-(5025.64+1.11*a)*a;return Off=(Off-80861.27)/3600}
function mdy2julian(a,b,c){with(Math){im=12*(c+4800)+a-3;j=(2*(im-floor(im/12)*12)+7+365*im)/12;j=floor(j)+b+floor(im/48)-32083;if(j>2299171)j+=floor(im/4800)-floor(im/1200)+38;return j}}function updButton(a){var b=a.className;if(b!="updBtn_Selected")b=b=="updBtn"?"updBtn_Highlight":"updBtn";a.className=b}
function selectUpd(a){for(var b=1;b<=3;b++){document.getElementById("updButton"+b).className="updBtn";document.getElementById("updContent"+b).style.display="none"}a.className="updBtn_Selected";a=a.id;a=a.substr(a.length-1);document.getElementById("updContent"+a).style.display="block"}
function showCountry(){var a;a="?cval="+document.getElementById("txtfrom").value;var b=document.getElementById("loadcountry"),c="Loading...";b.innerHTML=c;b=document.getElementById("loadcountry1");c="Loading...";b.innerHTML=c;ajaxreq.open("GET","showCountries.php"+a,true);ajaxreq.onreadystatechange=function(){if(ajaxreq.readyState==4){var g=document.getElementById("loadcountry");g.innerHTML=ajaxreq.responseText;g=document.getElementById("loadcountry1");g.innerHTML=ajaxreq.responseText}};ajaxreq.send(null)}
function restrictchar(a){for(var b=0,c=0;c<a.length;c++)if(!isNaN(a[c])){b=1;document.getElementById("txtfirstname").value=""}b==1&&alert("Please dont enter numeric in name field")}function restrictcharl(a){for(var b=0,c=0;c<a.length;c++)if(!isNaN(a[c])){b=1;document.getElementById("txtlastname").value=""}b==1&&alert("Please dont enter numeric in name field")}
function checktext(){var a=document.frmSignup;if(document.getElementById("txtin").value.length>50){alert("Please dont enter more than 50 characters");a.txtin.focus();return false}};

