var http_request=false;function makeRequest(A,B){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(C){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(C){}}}}if(!http_request){alert("Cannot create XMLHTTP instance");return false;}http_request.onreadystatechange=alertContents;http_request.open("GET",A+B,true);http_request.send(null);document.getElementById("myspan").innerHTML='<div id="loader"><img src="/ajaxwhois/loading.gif" alt="Bitte warten..." /><br />Bitte warten...</div>';}function alertContents(){if(http_request.readyState==4){if(http_request.status==200){result=http_request.responseText;document.getElementById("myspan").innerHTML=result;}else{alert("There was a problem with the request. Is your IP Authorized to use the InterNetX Whois Proxy?");}}}function get(C){var B=document.getElementById("domainname");var A=B.value;if(A.length<3){alert("Not a Valid Domain Name");}else{makeRequest("/ajaxwhois/get.php","?domainname="+A);}}
