function submitForm() { var req = null; window.status="Started..."; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); if (req.overrideMimeType) { req.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } req.onreadystatechange = function() { window.status="Wait server..."; if(req.readyState == 4) { if(req.status == 200) { var response=req.responseText; ChangeContent('responseinfo',response) window.status=''; } else { ChangeContent('responseinfo',"Error: returned status code " + req.status + " " + req.statusText); } } }; req.open("GET", "http://www.infosport.dk/cgi-bin/Display2.dbbf/kklub.mml?rv1=1520&navn=BK%20Skjold%20Basket&fb=", true); req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); req.send(null); } function ChangeContent(id, str) { startH=str.indexOf(""); endH=str.indexOf(""); str=str.substring(startH,endH); if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP"; if (document.all) type="IE"; if (document.layers) type="NN"; if (!document.all && document.getElementById) type="MO"; if (type=="IE") { document.all[id].innerHTML = str; } if (type=="NN") { document.layers[id].document.open(); document.layers[id].document.write(str); document.layers[id].document.close(); } if (type=="MO" || type=="OP") { document.getElementById(id).innerHTML = str; } } // SETUPS: // =============================== // Set the horizontal and vertical position for the popup PositionX = 100; PositionY = 100; // Set these value approximately 20 pixels greater than the // size of the largest image to be used (needed for Netscape) defaultWidth = 1000; defaultHeight = 800; // Set autoclose true to have the window close automatically // Set autoclose false to allow multiple popup windows var AutoClose = false; // Do not edit below this line... // ================================ if (parseInt(navigator.appVersion.charAt(0))>=4){ var isNN=(navigator.appName=="Netscape")?1:0; var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;} var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY; var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY; function popImage(imageURL,imageTitle){ if (isNN){imgWin=window.open('nade_img-viewer','nade',optNN);} if (isIE){imgWin=window.open('nade_img-viewer','nade',optIE);} with (imgWin.document){ writeln('Loading...');writeln(''); writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){'); writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}'); writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);'); writeln('width=100-(document.body.clientWidth-document.images[0].width);'); vwriteln('height=100-(document.body.clientHeight-document.images[0].height);'); writeln('window.resizeTo(width,height);}');writeln('if (isNN){'); writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}'); writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln(''); if (!AutoClose) writeln('') else writeln(''); writeln(''); close(); } }