﻿var sw = "لطفا صبر كنيد ...."; function x1() { return window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); } function vf1() { var x = x1(); r = document.getElementsByName("R1"); s = ""; for (i = 0; i < r.length; i++) if (r[i].checked) s = r[i].value; if (s === "") return; x.onreadystatechange = function() { document.getElementById("vt").innerHTML = x.readyState == 4 ? x.responseText : sw; }; x.open("get", "vote1.aspx?v=" + s, true); x.send(null); } function fd() { var fm1 = document.forms.f1; if (fm1.c1.value.length < 3) return; var sInf, w = window.screen; sInf = "PageTitle:" + document.title + ",Width:" + w.width + ",Height:" + w.height + ",availWidth:" + w.availWidth + ",availHeight:" + w.availHeight + ",colorDepth:" + w.colorDepth; var s1 = "n1=" + escape(fm1.n1.value) + "&e1=" + escape(fm1.e1.value) + "&c1=" + escape(fm1.c1.value) + "&i1=" + sInf; var x = x1(); x.onreadystatechange = function() { document.getElementById("dc").innerHTML = x.readyState == 4 ? x.responseText : sw; }; x.open("post", "/feedback.aspx", true); x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); x.send(s1); }
