function ajaxSignIn(uname,pword){
	if(pword && uname){
		var xmlHttp;
		try  
		{
			xmlHttp=new XMLHttpRequest();  
		}
		catch (e)
  		{
			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) { 
				/*success!*/
				if (xmlHttp.responseText.length > 0) {
					document.getElementById('accountInfo').innerHTML = "<span><b>" + xmlHttp.responseText + "</b> <a href=\"#\" onclick=\"ajaxSignOut();return false;\">Sign Out</a>&nbsp;&#124;&nbsp;<a href=\"#\" onclick=\"showRegister();ajaxFillProfile();return false;\">Profile</a></span>";
				} else {
					document.getElementById('accountInfo').innerHTML = "<span><b><font color=\"#ff0000\"> login failed! </font></b><a href=\"#\" onclick=\"showSignIn();return false;\">Sign In</a>&nbsp;&#124;&nbsp;<a href=\"#\" onclick=\"showRegister();return false;\">Register</a></span>";
				}
				location.reload(true);
			}
			else { /*failure!*/ }
		}
		
		xmlHttp.open("GET","../tripplanner/ajax/ajaxSignIn.aspx?uname="+uname+"&pword="+pword+"&sid="+Math.random(),true);
		xmlHttp.send(null);
	}
}