function newAjax(){
        var xmlhttp=false;
        try{
                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        }catch(e){
                try{
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                }catch(E){
                        xmlhttp = false;
                }
        }

        if(!xmlhttp && typeof XMLHttpRequest!='undefined'){
                xmlhttp = new XMLHttpRequest();
        }
        return xmlhttp;
}
function init() {
    var divGuide = document.getElementById('divGuide');
    var divWait = document.getElementById('divWaiting');
    divGuide.innerHTML=divWait.innerHTML;
    ajax = newAjax();
    ajax.open("POST", "/code/execute/guideOnline.php",true);        
    ajax.onreadystatechange=function() {
                                          if (ajax.readyState==4) 
                                          { 
                                            divGuide.innerHTML=ajax.responseText;
                                           // alert('ya');
                                          }
                                        }  
    ajax.send(null);
    t=setTimeout("init()",300000);
   }
window.onload = init;
