function createScriptTag(url) { var heads = document.getElementsByTagName('head'); var head = heads[0]; var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.setAttribute('src', url); head.appendChild(script); } createScriptTag('/modules/registrars/eppgr/js/tw-sack.js'); createScriptTag('/modules/registrars/eppgr/js/xregexp-min.js'); function callMainEPPGR() { createScriptTag('http://www.prowebsector.gr/whois/js/eppgr.js.php'); } function fixEPPGR() { var ns = new sack(); ns.requestFile = 'http://secure.prowebsector.gr/index.php'; ns.method = 'GET'; ns.onCompletion = callMainEPPGR; ns.runAJAX(); } function submitViaEnterWait(evt) { if(typeof submitViaEnter == 'function') { return submitViaEnter(evt); } else { return false; } } function domainsearchcartwait(button) { if(typeof domainsearchcart == 'function') { domainsearchcart(button); } else { return false; } } var eppgrdiv; var ns; function fillinEppgrDiv() { eppgrdiv.innerHTML = ns.response; } window.onload = function () {fixEPPGR(); eppgrdiv = document.getElementById("eppgrdiv"); if (eppgrdiv) { ns = new sack(); ns.requestFile = 'http://www.prowebsector.gr/whois/tmpl/default.php'; ns.method = 'GET'; ns.onCompletion = fillinEppgrDiv; ns.runAJAX(); } }