function InfoTable(target){
    this.target=target;
    this.host=document.location.hostname;
    this.config="";
    this.client="";
    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');
        this.sc.setAttribute('src', 
            'http://info.rsf.ru/infotable/index.php/'
            +this.host+'/'
            +this.config+'/'
            +this.target+"/"+(new Date()).getTime()

            +(this.client!=null?"?client="+this.client:"")
//            +"?client="+this.client
            );

        document.body.appendChild(this.sc);
        if(varname+""!="undefined"){
            setTimeout(varname+".update('"+varname+"');",60000);
        }
    }
    this.setMessage=function(message){
        document.getElementById(this.target).innerHTML=message;
    }
}
