// JavaScript Document
//thx to ... for this code
var xmlhttp;
var s_tmp_id;

function loadXMLDoc(s_id, url) {
        xmlhttp=null;
        s_tmp_id = s_id;
        if (window.XMLHttpRequest) {// code for IE7, Firefox, Mozilla, etc.
                xmlhttp=new XMLHttpRequest();
        }
        else if (window.ActiveXObject) {// code for IE5, IE6
                xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
        if (xmlhttp!=null) {
                xmlhttp.onreadystatechange=onResponse;
                url = url;
                xmlhttp.open("GET",url,true);
                xmlhttp.send(null);
                } else {
                        alert("Your browser does not support XMLHTTP.");
                }
}

function onResponse() {
        if(xmlhttp.readyState!=4) return;
        if(xmlhttp.status!=200) {
                document.getElementById(s_tmp_id).innerHTML = "Problem retrieving XML data";
                return;
        }
        document.getElementById(s_tmp_id).innerHTML=xmlhttp.responseText;
}