function $(id){return document.getElementById(id);}
function createXMLHttpRequest(){try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}
try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}
try{return new XMLHttpRequest();}catch(e){}
alert("XMLHttpRequest not supported");return null;}
function removeAllChildNodes(item){while(item.firstChild)
{item.removeChild(item.firstChild);};}
function getUserObject(callback){var xhr=createXMLHttpRequest();xhr.open("GET","/index.pl?service=userinfo&action=getUser");function onUserObjectResponse(){if(xhr.readyState!=4){return;}
callback(xhr);}
xhr.onreadystatechange=onUserObjectResponse;xhr.send(null);}
