function AjaxGet($file, id)
{
      var xmlHttp;           
      try
      {    // Firefox, Opera 8.0+, Safari    
         xmlHttp=new XMLHttpRequest();
      }
      catch (e)
      {    // Internet Explorer    
         try
         {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
         }
         catch (e)
         {
             try
             {
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
             }
             catch (e)
             {
                alert("Your browser does not support AJAX!");
                return false;
             }
         }
      }
      xmlHttp.onreadystatechange=function()
      {
         if(xmlHttp.readyState==4)
         {
            if(id == 'null' || id == '')
            {
               return xmlHttp.responseText;
            }
            else
            {
               document.getElementById(id).innerHTML = xmlHttp.responseText;
            }
         }
      };

      ran = '&ran='+Math.floor(Math.random()*1000);
      xmlHttp.open("GET",$file+ran,true);
      xmlHttp.send(null);
}

function urlencode(str) {
str = escape(str);
str = str.replace('+', '%2B');
str = str.replace('%20', '+');
str = str.replace('*', '%2A');
str = str.replace('/', '%2F');
str = str.replace('@', '%40');
return str;
}