function toggleSignupBox(){
	if (document.getElementById('signupbox').style.display=='block'){
	   
		document.getElementById('signupbox').style.display='none';
		document.getElementById('signupback').style.display='none';
		document.getElementById('main').style.display='block';
	}else{
	   scroll(0,0);
		document.getElementById('signupbox').style.display='block'
		document.getElementById('signupback').style.display='block'
		document.getElementById('main').style.display='none';
	}

}

function Signup(email,login,password,confirm){
  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('signuptext').innerHTML="Opening Link...";
      }
      if(xmlHttp.readyState==4)
        {
  	document.getElementById('signuptext').innerHTML=xmlHttp.responseText;
        }
      }
      
    xmlHttp.open("get","_signupitjax.php?email="+email+"&login="+login+"&password="+password+"&confirm="+confirm,true);
    xmlHttp.send(null);

}
