var cycle = {value: false, time: 1000 }
var DHTMLAJAXmonitor= {
  init: function() {
   // read parameters and instructions from page variables
   // execute instructions
	try {   init.init() } catch(e){}
   // read parameters and instructions from server with ajax
   // execute instructions
   if(cycle.value) this.cycle() 
  }, //end of init
  cycle: function(){
   
    try {  pcycle.pcycle() } catch( e){} //page cycle
        // server cycle
        if(cycle.value) setTimeout("DHTMLAJAXmonitor.cycle()",cycle.time)
  } //end of cycle
}
function $ROR(id,relay){ 
 //remove object with relay
 setTimeout("Element.remove("+id+")",relay);
}
function $RO(id){ 
 //remove object 
   var el = $(id);
  if(el != null)	Element.remove(id);
}

function $NIH(id,value) { //node innerHTML value
 $(id).innerHTML = value
}
function $SAV(id,attr,value) { //change node style. attribute value
  //$(id).style.visibility = value
    $(id).style[attr] = value
        
}
function $EI(id){ 
 //empty innerHTML 
   var el = $(id);
  if(el != null)	el.innerHTML="";
}

function $TRIM(str) {
 var st = str;
 st =" "+encodeURI(st) ;
 do {	 if(st.indexOf("%20",0)>0){
	st=st.replace("%20","");  } else break;
	} while(true);
 st=st.substring(1,st.length)
 st=decodeURI(st);
 return st; }

