//Create a boolean variable to check for a valid Internet Explorer instance. var zstxmlhttp = false; //Check if we are using IE. try { //If the Javascript version is greater than 5. zstxmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { //If not, then use the older active x object. try { //If we are using Internet Explorer. zstxmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { //Else we must be using a non-IE browser. zstxmlhttp = false; } } //If we are using a non-IE browser, create a javascript instance of the object. if (!zstxmlhttp && typeof XMLHttpRequest != 'undefined'){ zstxmlhttp = new XMLHttpRequest(); } function ZSTloadXMLDoc(){ zstxmlhttp.open("GET", "/" + "subor" + "/" + "poloha" + "/" + "stanica_vy_gen" + ".php" + "?" + "id" + "=" + "178954"); zstxmlhttp.onreadystatechange = function(){ if(zstxmlhttp.readyState == 4 && zstxmlhttp.status == 200){ ZSTobsah.innerHTML = zstxmlhttp.responseText; //polohainfo.innerHTML += '
'; } } zstxmlhttp.send(null); setTimeout("ZSTloadXMLDoc()", 20000); } ZSTloadXMLDoc();