if (parent.frames.length > 0) { parent.location.href = location.href; } function textCounter(field, countfield, maxlimit) { if (field.value.length > maxlimit) // if too long...trim it! field.value = field.value.substring(0, maxlimit); // otherwise, update 'characters left' counter else countfield.value = maxlimit - field.value.length; } function checkusername(essay) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} essay=encodeURIComponent(essay); xhr.open("POST","http://www.muslimintro.com/checkusername.html", true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(essay); xhr.onreadystatechange=function() { if (xhr.readyState==4) { if (xhr.status==200) { if (xhr.responseText==0) {document.getElementById("cuname").innerHTML="Username not found!";document.getElementById("lgun1").style.background="#FF9999"} else {document.getElementById("cuname").innerHTML="";document.getElementById("lgun1").style.background="white"} } } } } function checkphoto(essay) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} essay=encodeURIComponent(essay); xhr.open("POST","http://www.muslimintro.com/checkphoto.html", true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(essay); xhr.onreadystatechange=function() { if (xhr.readyState==4) { if (xhr.status==200) { document.getElementById("checkphotoname").innerHTML=xhr.responseText; } } } } function checkexistsusername(essay) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} essay=encodeURIComponent(essay); xhr.open("POST","http://www.muslimintro.com/checkusername.html", true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(essay); xhr.onreadystatechange=function() { if (xhr.readyState==4) { if (xhr.status==200) { if (xhr.responseText==1) {document.getElementById("exists").innerHTML="Username already exists - please select another username";document.getElementById("newusername").style.background="#FF9999"} else {document.getElementById("exists").innerHTML="";document.getElementById("newusername").style.background="white"} } } } } function validateurl(essay, control, warn) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} essay=encodeURIComponent(essay); xhr.open("POST","http://www.muslimintro.com/validateurl.html", true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(essay); xhr.onreadystatechange=function() { if (xhr.readyState==4) { if (xhr.status==200) { if (xhr.responseText==2) {document.getElementById(warn).innerHTML="This website does not exist! Please confirm.";document.getElementById(control).style.background="#FF9999"} else {document.getElementById(warn).innerHTML="";document.getElementById(control).style.background=""} } } } } function validateemail(essay, control, warn) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} essay=encodeURIComponent(essay); xhr.open("POST","http://www.muslimintro.com/validatemail.html", true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(essay); xhr.onreadystatechange=function() { if (xhr.readyState==4) { if (xhr.status==200) { if (xhr.responseText==0) {document.getElementById(warn).innerHTML="This email address is invalid! Please confirm.";document.getElementById(control).style.background="#FF9999"} else {document.getElementById(warn).innerHTML="";document.getElementById(control).style.background=""} } } } } function ID(id){return document.getElementById(id);} window.onload = function() { ID('selCities').onchange = function () {ID('newcity').value=this.options[this.selectedIndex].value;} } function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i1) select.removeChild(options[options.length-1]); /* (re)fill */ for(k=-1;val=vals[++k];) { option = D.createElement('option'); option.setAttribute('value',val); option.appendChild(D.createTextNode(val)); select.appendChild(option); } } function populate(typed, control, type) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} address="http://www.muslimintro.com/prefetch.html?type="+type; xhr.open("POST",address, true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(typed); xhr.onreadystatechange=function() { if (xhr.readyState==4) { if (xhr.responseText!="") { HTTPResponse(xhr.responseText, control); ID(control).style.visibility="visible"; } else { ID(control).style.visibility="hidden"; } } } } function liveedit (un, mi, field, data, from, to, lbl) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} address="http://www.muslimintro.com/liveedit.html?un="+un+"&mi="+mi+"&field="+field+"&data="+data; xhr.open("POST",address, true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(un); xhr.onreadystatechange=function() { if (xhr.readyState==4) { if (xhr.responseText==1) { ID(lbl).innerHTML=data; ID(from).style.display='none'; ID(to).style.display='block'; } } } } function pausecomp(millis) { var date = new Date(); var curDate = null; do { curDate = new Date(); } while(curDate-date < millis); } function livesearch(un, mi) { document.getElementById('result1').innerHTML=" Please wait...  "; document.getElementById('result2').innerHTML=" Please wait...  "; document.getElementById('result3').innerHTML=" Please wait...  "; document.getElementById('result4').innerHTML=" Please wait...  "; document.getElementById('result5').innerHTML=" Please wait...  "; document.getElementById('result6').innerHTML=" Please wait...  "; document.getElementById('result7').innerHTML=" Please wait...  "; document.getElementById('result8').innerHTML=" Please wait...  "; document.getElementById('result9').innerHTML=" Please wait...  "; document.getElementById('result10').innerHTML=" Please wait...  "; if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} address="http://www.muslimintro.com/livesearch.html?un="+un+"&mi="+mi; address=address + "&s_gender=" + document.form1.s_gender.selectedIndex; var minage=document.form1.s_minage.options[document.form1.s_minage.selectedIndex].text; if (minage=="Min") {minage=0;} address=address + "&s_minage=" + minage; var maxage=document.form1.s_maxage.options[document.form1.s_maxage.selectedIndex].text; if (maxage=="Max") {maxage=0;} address=address + "&s_maxage=" + maxage; address=address + "&s_marital=" + document.form1.s_marital.selectedIndex; address=address + "&s_username=" + document.form1.s_username.value; address=address + "&s_name=" + document.form1.s_name.value; address=address + "&s_slogan=" + document.form1.s_slogan.value; var spu=document.form1.s_pu.options[document.form1.s_pu.selectedIndex].value; if (spu=="-") {spu=0;} address=address + "&s_pu=" + spu; if (document.form1.onlyphoto.checked==true){address=address + "&onlyphoto=1";} if (document.form1.s_education_higher.checked==true){address=address + "&s_education_higher=1";} var sbirth=document.form1.s_birth.options[document.form1.s_birth.selectedIndex].value; if (sbirth=="-") {sbirth=0;} address=address + "&s_birth=" + sbirth; var snationality=document.form1.s_nationality.options[document.form1.s_nationality.selectedIndex].value; if (snationality=="-") {snationality=0;} address=address + "&s_nationality=" + snationality; var sresidence=document.form1.s_residence.options[document.form1.s_residence.selectedIndex].value; if (sresidence=="-") {sresidence=0;} address=address + "&s_residence=" + sresidence; address=address + "&s_city=" + document.form1.s_city.value; var svisa=document.form1.s_visa.options[document.form1.s_visa.selectedIndex].value; if (svisa=="-") {svisa=0;} address=address + "&s_visa=" + svisa; var sethnic=document.form1.s_ethnic.options[document.form1.s_ethnic.selectedIndex].value; if (sethnic=="-") {sethnic=0;} address=address + "&s_ethnic=" + sethnic; address=address + "&s_cast=" + document.form1.s_cast.value; var slang=document.form1.s_lang.options[document.form1.s_lang.selectedIndex].value; if (slang=="-") {slang=0;} address=address + "&s_lang=" + slang; var shair=document.form1.s_hair.options[document.form1.s_hair.selectedIndex].value; if (shair=="-") {shair=0;} address=address + "&s_hair=" + shair; var seyes=document.form1.s_eyes.options[document.form1.s_eyes.selectedIndex].value; if (seyes=="-") {seyes=0;} address=address + "&s_eyes=" + seyes; var sbuild=document.form1.s_build.options[document.form1.s_build.selectedIndex].value; if (sbuild=="-") {sbuild=0;} address=address + "&s_build=" + sbuild; var sglasses=document.form1.s_glasses.options[document.form1.s_glasses.selectedIndex].value; if (sglasses=="-") {sglasses=0;} address=address + "&s_glasses=" + sglasses; var sbeardh=document.form1.s_beard_h.options[document.form1.s_beard_h.selectedIndex].value; if (sbeardh=="-") {sbeardh=0;} address=address + "&s_beard_h=" + sbeardh; var sbeardb=document.form1.s_beard_b.options[document.form1.s_beard_b.selectedIndex].value; if (sbeardb=="-") {sbeardb=0;} address=address + "&s_beard_b=" + sbeardb; address=address + "&s_bestfeature=" + document.form1.s_bestfeature.value; var sp=document.form1.s_p.options[document.form1.s_p.selectedIndex].value; if (sp=="-") {sp=0;} address=address + "&s_p=" + sp; address=address + "&s_bestpersonality=" + document.form1.s_bestpersonality.value; address=address + "&s_changeworld=" + document.form1.s_changeworld.value; var smoneyimp=document.form1.s_moneyimp.options[document.form1.s_moneyimp.selectedIndex].value; if (smoneyimp=="-") {smoneyimp=0;} address=address + "&s_moneyimp=" + smoneyimp; var ssmoke=document.form1.s_smoke.options[document.form1.s_smoke.selectedIndex].value; if (ssmoke=="-") {ssmoke=0;} address=address + "&s_smoke=" + ssmoke; var srevert=document.form1.s_revert.options[document.form1.s_revert.selectedIndex].value; if (srevert=="-") {srevert=0;} address=address + "&s_revert=" + srevert; var srelimp=document.form1.s_relimp.options[document.form1.s_relimp.selectedIndex].value; if (srelimp=="-") {srelimp=0;} address=address + "&s_relimp=" + srelimp; var spract=document.form1.s_pract.options[document.form1.s_pract.selectedIndex].value; if (spract=="-") {spract=0;} address=address + "&s_pract=" + spract; var ssunni=document.form1.s_sunni.options[document.form1.s_sunni.selectedIndex].value; if (ssunni=="-") {ssunni=0;} address=address + "&s_sunni=" + ssunni; var smadhab=document.form1.s_madhab.options[document.form1.s_madhab.selectedIndex].value; if (smadhab=="-") {smadhab=0;} address=address + "&s_madhab=" + smadhab; address=address + "&s_affiliation=" + document.form1.s_affiliation.value; address=address + "&s_viewlife=" + document.form1.s_viewlife.value; address=address + "&s_interests=" + document.form1.s_interests.value; var seducation=document.form1.s_education.options[document.form1.s_education.selectedIndex].value; if (seducation=="-") {seducation=0;} address=address + "&s_education=" + seducation; var sft=document.form1.s_ft.options[document.form1.s_ft.selectedIndex].value; if (sft=="-") {sft=0;} address=address + "&s_ft=" + sft; var sindustry=document.form1.s_industry.options[document.form1.s_industry.selectedIndex].value; if (sindustry=="-") {sindustry=0;} address=address + "&s_industry=" + sindustry; address=address + "&s_jobtitle=" + document.form1.s_jobtitle.value; address=address + "&s_company=" + document.form1.s_company.value; var spolygyny=document.form1.s_polygyny.options[document.form1.s_polygyny.selectedIndex].value; if (spolygyny=="-") {spolygyny=0;} address=address + "&s_polygyny=" + spolygyny; var sfuturehouse=document.form1.s_futurehouse.options[document.form1.s_futurehouse.selectedIndex].value; if (sfuturehouse=="-") {sfuturehouse=0;} address=address + "&s_futurehouse=" + sfuturehouse; var schildren=document.form1.s_children.options[document.form1.s_children.selectedIndex].value; if (schildren=="-") {schildren=0;} address=address + "&s_children=" + schildren; var sfuturelive=document.form1.s_futurelive.options[document.form1.s_futurelive.selectedIndex].value; if (sfuturelive=="-") {sfuturelive=0;} address=address + "&s_futurelive=" + sfuturelive; address=address + "&s_future=" + document.form1.s_future.value; address=address + "&s_statement=" + document.form1.s_statement.value; xhr.open("POST",address, true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(un); xhr.onreadystatechange=function() { if (xhr.readyState==4) { if (xhr.responseText!=="") { document.getElementById('result1').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result2').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result3').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result4').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result5').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result6').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result7').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result8').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result9').innerHTML=xhr.responseText + " profiles found"; document.getElementById('result10').innerHTML=xhr.responseText + " profiles found"; } } } } function showsearch () { var textout='
'; textout=textout + '\'Google\''; textout=textout + '
  Web'; textout=textout + 'MuslimIntro.com
'; textout=textout + ''; textout=textout + ''; textout=textout + '
'; document.write(textout); } function showsearch_s () { var textout='
'; textout=textout + '\'Google\''; textout=textout + '
  Web'; textout=textout + 'MuslimIntro.com
'; textout=textout + ''; textout=textout + ''; textout=textout + '
'; document.write(textout); } function set_cookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure ) { var cookie_string = name + "=" + escape ( value ); if ( exp_y ) { var expires = new Date ( exp_y, exp_m, exp_d ); cookie_string += "; expires=" + expires.toGMTString(); } if ( path ) cookie_string += "; path=" + escape ( path ); if ( domain ) cookie_string += "; domain=" + escape ( domain ); if ( secure ) cookie_string += "; secure"; document.cookie = cookie_string; } function togmemram () { if(document.getElementById('members_ram').style.display == 'none') { document.getElementById('members_ram').style.display = 'block'; document.getElementById('members_ram0').style.display = 'none'; set_cookie ( "ram", "1" ); } else { document.getElementById('members_ram').style.display = 'none'; document.getElementById('members_ram0').style.display = 'block'; set_cookie ( "ram", "0", 2050, 01, 01 ); } } function toggeoinfo () { if(document.getElementById('geo_info').style.display == 'none') { document.getElementById('geo_info').style.display = 'block'; document.getElementById('geo_info0').style.display = 'none'; set_cookie ( "geoinfo", "1" ); } else { document.getElementById('geo_info').style.display = 'none'; document.getElementById('geo_info0').style.display = 'block'; set_cookie ( "geoinfo", "0", 2050, 01, 01 ); } } function toggle(one, two) { if (ID(one).style.display=='none') {ID(one).style.display="block";} else {ID(one).style.display="none";} if (ID(two).style.display=='none') {ID(two).style.display="block";} else {ID(two).style.display="none";} } function searchcloseall() { ID('selusername').style.visibility='hidden'; ID('selname').style.visibility='hidden'; ID('selslogan').style.visibility='hidden'; ID('selcity').style.visibility='hidden'; ID('selcast').style.visibility='hidden'; ID('selbestfeature').style.visibility='hidden'; } function joincloseall() { ID('selCities').style.visibility='hidden'; } function report1() { ID("report").style.display="none"; Effect.SlideDown('reportone'); } function report2() { Effect.Fade('reportone'); Effect.SlideDown('report'); } function sendreport (profile, un, page) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} emaila=ID("email").value; address="http://www.muslimintro.com/report.html?usn="+un+"&profile="+profile+"&page="+page+"&email="+emaila; xhr.open("POST",address, true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(ID("reasoning").value); ID("reportone").style.display="none"; Effect.SlideDown('reportdone'); } function sendemailreport (id) { if (window.XMLHttpRequest) {xhr = new XMLHttpRequest();} else if (window.ActiveXObject) {xhr = new ActiveXObject("Microsoft.XMLHTTP");} emaila=ID("email").value; address="http://www.muslimintro.com/report.html?type=email&email="+emaila; xhr.open("POST",address, true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xhr.send(id); ID("reportone").style.display="none"; Effect.SlideDown('reportdone'); }