function Login(login,password,signout)
{
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==1)
    {
	document.getElementById('headbox').innerHTML="Logging In";
    }
    if(xmlHttp.readyState==4)
      {
        str = xmlHttp.responseText;
        if (str.substring(0,6) =='denied'){
          document.getElementById('headbox').innerHTML=str.substring(6);
          runEffect('Shake', 'headbox', {duration: 500},'');
        }else{
          document.getElementById('headbox').innerHTML=str;
          Rate(0);
          Comment("");
        }
      }
    }
    
  xmlHttp.open("get","_loginitjax.php?login="+login+"&password="+password+"&signout="+signout,true);
  xmlHttp.send(null);
  }
  
  
