var http_request=false;function makePOSTRequest(url,parameters){http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/html');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}if(!http_request){alert('Cannot create XMLHTTP instance');return false;}http_request.onreadystatechange=alertContents;http_request.open('POST',url,true);http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");http_request.setRequestHeader("Content-length",parameters.length);http_request.setRequestHeader("Connection","close");http_request.send(parameters);}function alertContents(){if(http_request.readyState==4){if(http_request.status==200){off('sb');loading("resultd");result=http_request.responseText;document.getElementById('resultd').innerHTML=result;on('sb');}}}function loading(ob){document.getElementById(ob).innerHTML=' در حال ارسال...';}function get(obj){from=document.getElementById('from').value;sbj=document.getElementById('sbj').value;rabt=document.getElementById('rabt').value;msgr=document.getElementById('msgr').value;msgl=document.getElementById('msgl').value;name=document.getElementById('name').value;qds=document.getElementById('qds').value;secode=document.getElementById('scode_didgah').value;var poststr="from="+from+"&sbj="+sbj+"&rabt="+rabt+"&msgr="+msgr+"&msgl="+msgl+"&name="+name+"&qds="+qds+"&scode_didgah="+secode;makePOSTRequest('/n.d/girande.php',poststr);}function off(itm){obj1=document.getElementById(itm);obj1.disabled=true;}function on(itm){obj2=document.getElementById(itm);obj2.disabled=false;};