<!-- Begin

/// Setup the panels, make an ajax object and a weather request
function accountChecker()
{
	
	this.url="http://www.playmasterguru.com/store/index.php";
	
	/// browser-specific XMLHttpRequest initiation.
	var b = navigator.appName;
	/// everything but ie
	if(window.XMLHttpRequest) this.ajax = new XMLHttpRequest();
	/// ie
	else if(window.ActiveXObject) this.ajax   = new ActiveXObject("Microsoft.XMLHTTP");

}

////////////////////////////////////////////////////////////////////////////////
/// makes ajax request
 accountChecker.prototype.check = function(account)
{
	this.ajax.abort();
	this.ajax.open('get', this.url + "?action=check_user&user=" + account);
	
	this.account_sent=account;
	
	var instance = this;
	callback = function(){ instance.loadAccount(); }
	this.ajax.onreadystatechange = callback;
	this.ajax.send('');
}

accountChecker.prototype.loadAccount=function()
{
 //alert('BOO YA, BOO YA...');
 
 if(this.ajax.readyState == 1)
	{
		/// data is loading...
	}
	else if(this.ajax.readyState == 4)
	{
		if ( this.account_sent ==  this.ajax.responseText)
		{
				alert(this.account_sent + " is available. ");
		}
		else
		{
				alert(this.account_sent + " is not available. How about " + this.ajax.responseText);
		}
		document.getElementById('guru_user').value= this.ajax.responseText;
	}
}

var check=new accountChecker();

-->