function InfoTable(target){
    this.target=target;
    this.host=document.location.hostname;
    this.config="";
    this.client=null;
    
    this.sc=null;

    this.update=function(varname){
        
//        document.getElementById(this.target).innerHTML="LOADING...";
        if(this.sc!=null) {
            document.body.removeChild(this.sc);
        }
        this.sc =document.createElement("SCRIPT");
        this.sc.setAttribute('language','javascript');
        var src='http://info.rsf.ru/infotable/index.php/'
            +this.host+'/'
            +this.config+'/'
            +this.target+"/"+(new Date()).getTime();

            if(this.client!=null) src+="?client="+this.client;

        
        this.sc.setAttribute('src', src);
        document.body.appendChild(this.sc);
        if(varname+""!="undefined"){
            setTimeout(varname+".update('"+varname+"');",60000);
        }
    }
    this.setMessage=function(message){
        document.getElementById(this.target).innerHTML=message;
    }
}