
function delayedInit(){
     if($('uid'))
        setTimeout("$('uid').focus()", 300);

     if(document.location.href.indexOf('?') > -1){
      if($('msgarea')){
        var msgHdr = $$('#msgarea h1')[0];
        Event.observe(msgHdr,'click', goHome);
        msgHdr.setStyle({cursor: 'pointer'});
        }
     }
     if($('frmerror') && $('frmerror').innerHTML.length > 0)
        setTimeout("$('frmerror').update('')", 6000);

}

function goHome(){
   document.location="index.php";
}


Event.observe(window,'load',delayedInit);
