function stopN(url)
{
if (url == '0') { 
clearTimeout (tim);
} else {
//alert(url);
loadXMLDoc(url);
}
}


function startN(url)
{
tim = setTimeout("stopN('"+url+"')", 2000);
}



function loadXMLDoc(url) {
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
 //       req.onreadystatechange = processReqChange;
        req.open("GET", url, true);
        req.send(null);
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
//            req.onreadystatechange = processReqChange;
            req.open("GET", url, true);
            req.send();
        }
    }
}
