function deleteitem (frm,id) {
frm.action.value='delete';
frm.uid.value=id;
frm.submit();
}
function  checkinput(frm) {
frm.submit();
}
function RSLiteObject(){
  this.interval = 500;
  this.attempts = 3;
  this.call = function ( page, parm ){
    parm = (parm != null)? parm : '';
    var i = new Image();
    var d = new Date();
    document.cookie = 'RSLite=x; expires=Fri, 31 Dec 1999 23:59:59 GMT;';
    i.src = page + '?u=' + d.getTime() + '&p=' + parm;
    setTimeout( "RSLite.receive(1);", this.interval );
  }  
  this.receive = function ( attempt ){  
                   var response = null;
                   var aCookie = document.cookie.split("; ");
                   for (var i=0; i < aCookie.length; i++){
                     var aCrumb = aCookie[i].split("=");
                     if (aCrumb[0] == 'RSLite') response = aCrumb[1];
                   }
                   if ( response != null ){
                     this.callback( unescape(response.replace(/\+/g,' ')) );
                   } else {
                     if (attempt < this.attempts){
                       setTimeout( "RSLite.receive( " + (attempt+1) +" );",this.interval);
                     } else {
                       this.failure();
                     }
                   }    
                 }
  this.callback = function( response ){ 
alert(response); 
//      editor._textarea.value = response;
                  }
  this.failure = function(){ 
                   alert("RSLite timed out"); 
                 }
}
var RSLite;

function updatePage(ln) {
document.forms[0].action.value='update';
document.forms[0].uid.value=ln;
document.forms[0].submit();
}
function formGo(action) { 
   dd=document.forms[0];
   document.body.style.cursor="wait";
   dd.action.value=action;
   dd.submit();
}
function whosOnline() {
popup=window.open('vcounter.php?view=whosonline', 'whosonline', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=500, height=300, left = 150, top = 80');
}