var req; var which; function doSearch(str,end) { document.getElementById('progressbar').src = 'img/progressbar.gif'; window.status ="Leita að lénum...Vinsamlegast bíðið..."; document.getElementById('domainMessage').value = 'Leita að lénum...Vinsamlegast bíðið...'; sendDomainRequest('/ajax.php?m=domains&str='+str+'&end='+end); } function escan_leidb() { window.open('includes/popup.escan-isl.html','eScan','location=0,menubar=0,resizable=0,height=638,width=800'); } function karfaAdd(id,domain) { if(domain==undefined) { retrieveURL('/ajax.php?m=karfa&add='+id); } else { retrieveURL('/ajax.php?m=karfa&add='+id+'&domain='+domain); } } function retrieveURL(url) { if (window.XMLHttpRequest) { // Non-IE browsers req = new XMLHttpRequest(); req.onreadystatechange = processStateChange; try { req.open("GET", url, true); } catch (e) { alert(e); } req.send(null); } else if (window.ActiveXObject) { // IE req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = processStateChange; req.open("GET", url, true); req.send(); } } } function processStateChange() { if (req.readyState == 4) { // Complete if (req.status == 200) { // OK response document.getElementById("karfan").innerHTML = '
Karfan
'+req.responseText; } else { alert("Problem: " + req.statusText); } } } function hjalp_online() { var nXMax, nXOffset; var szUrl, szOptions; //Prep for perfect placement xMax = screen.width; xOffset = xMax - 410; //Set the screen display options for our popup window szOptions = "location=0,menubar=0,resizable=1,height=500,width=400,"; szOptions += "screenX=" + xOffset + ",screenY=0,top=0,left=" + xOffset; szUrl = "http://adstod.xnet.is/interactivedemo/user_login_is.asp?SID=1000100&UID=blank&QUEUE=1000000"; window.open(szUrl,"WebUser",szOptions); } function sendDomainRequest(url) { if (window.XMLHttpRequest) { // Non-IE browsers req = new XMLHttpRequest(); req.onreadystatechange = DomainProcess; try { req.open("GET", url, true); } catch (e) { alert(e); } req.send(null); } else if (window.ActiveXObject) { // IE req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = DomainProcess; req.open("GET", url, true); req.send(); } } } function DomainProcess() { if (req.readyState == 4) { // Complete if (req.status == 200) { // OK response document.getElementById("domainForm").innerHTML = '
Niðurstöður leitar
'+req.responseText; } else { alert("Problem: " + req.statusText); } } }