function GetXmlHttpObject(a){document.getElementById("txtHint").innerHTML=loadstatustext;var b=null;if(navigator.userAgent.indexOf("Opera")>=0){alert("This example doesn't work in Opera");return}if(navigator.userAgent.indexOf("MSIE")>=0){var c="Msxml2.XMLHTTP";if(navigator.appVersion.indexOf("MSIE 5.5")>=0){c="Microsoft.XMLHTTP"}try{b=new ActiveXObject(c);b.onreadystatechange=a;return b}catch(d){alert("Error. Scripting for ActiveX might be disabled");return}}if(navigator.userAgent.indexOf("Mozilla")>=0){b=new XMLHttpRequest;b.onload=a;b.onerror=a;return b}}function stateChanged(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("txtHint").innerHTML=xmlHttp.responseText}}function showHint(a){if(a.length>0){var b="gethint.php?sid="+Math.random()+"&na="+a;xmlHttp=GetXmlHttpObject(stateChanged);xmlHttp.open("GET",b,true);xmlHttp.send(null)}else{document.getElementById("txtHint").innerHTML=""}}function textCounter(a,b,c){if(a.value.length>c)a.value=a.value.substring(0,c);else b.value=c-a.value.length}function validUserForm(a){if(a.userName.value==""){alert("يجب ان تدخل اسم مستخدم");a.userName.focus();return false}if(a.userPass.value==""){alert("يجب ان تدخل رمز سري");a.userPass.focus();return false}if(a.userPass2.value==""){alert("يجب ان تعيد ادخال الرمز السري");a.userPass2.focus();return false}if(a.userPass.value!=a.userPass2.value){alert("تأكد ان الرموز السرية");a.userPass.focus();a.userPass2.select();return false}if(a.nickName.value==""){alert("يجب ان تدخل اسم الشهرة");a.nickName.focus();return false}if(!validEmail(a.email.value)){alert("تأكد من البريد الالكتروني");a.email.focus();return false}if(a.sex.selectedIndex==0){alert("يجب ان تحدد الجنس");a.sex.focus();return false}if(a.nationalaty.selectedIndex==0){alert("يجب ان تحدد الجنسية");a.nationalaty.focus();return false}if(a.socule.selectedIndex==0){alert("يجب ان تدخل الحالة الاجتماعية");a.socule.focus();return false}if(a.age.selectedIndex==0){alert("يجب ان العمر");a.age.focus();return false}if(a.degree.selectedIndex==0){alert("يجب ان تدخل المستوى الدراسي");a.degree.focus();return false}if(a.countryLive.selectedIndex==0){alert("يجب ان تحدد دولة الاقامة");a.countryLive.focus();return false}if(a.cityLive.value==""){alert("يجب ان تدخل مدينة الاقامة");a.cityLive.focus();return false}if(a.job.value==""){alert("يجب ان تدخل المهنة");a.job.focus();return false}if(a.moreAboutMe.value==""){alert("يجب ان تدخل معلومات اخرى عنك");a.moreAboutMe.focus();return false}if(a.moreAboutHim.value==""){alert("يجب ان تدخل معلومات اخرى عن الطرف الاخر");a.moreAboutHim.focus();return false}if(a.msiar.selectedIndex==0){alert("يجب ان تحدد بالرغبة او عدم الرغبة في المسيار");a.msiar.focus();return false}if(a.t3dd.selectedIndex==0){alert("يجب ان تحدد بالرغبة او عدم الرغبة في التعدد");a.t3dd.focus();return false}else{return true}}function validEmail(a){re=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;if(re.test(a)){return true}return false}function jumpPage(a,b,c){newPage=c.options[c.selectedIndex].value;if(newPage!=""){window.location=a+"?getByGender="+b+"&countryIn="+newPage}}function setStatusBar(a){self.status=a}function changeOrder(a){var b=prompt("الترتيب المطلوب:","");if(b){a.href+="&newOrder="+b}else{return}}function openWindow(a){newWindow=window.open(a,"newWin","toolbar=no,location=no,scrollbars=yes, width=420, height=190")}function validSearch(a){if(a.ageFrom.value==""){alert("يجب ان تختار العمر يبداء من اي سن");a.ageFrom.focus();return false}if(a.ageTo.value==""){alert("يجب ان تختار العمر ينتهي الى اي سن");a.ageTo.focus();return false}if(a.ageTo.value<a.ageFrom.value){alert("يجب ان تبداء من سن اصغر الى سن اكبر");a.ageTo.focus();a.ageFrom.select();return false}return true}function confirmLink(a,b){if(confirmMsg==""){return true}var c=confirm(confirmMsg+" :\n"+b);if(c){a.href+="&is_js_confirmed=1"}return c}var xmlHttp;var loadstatustext="<img src='images/loading.gif' /> جاري التحميل..."
