function DoLogin(str)
{
//alert(str);
  
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
		if (xmlhttp.responseText=="loggedin")
		{
    		//document.getElementById("UserFBID").innerHTML=("Connected");
			window.location.reload();
		} 
		else 
		{
			//document.getElementById("UserFBID").innerHTML=("<b>Please click the Facebook button</b>");
			//window.location = "/signup_new.asp"
		}
    }
  }
xmlhttp.open("GET","/sql/facebook_login_user.asp?"+str,true);
xmlhttp.send();
}
