function check_availability(a)
{
if (document.forms("form1").elements("username").value!='')
{
	var objdoc;
	var ab1=new Array();
	var ab2=new Array();
	var httpob=new ActiveXObject("Microsoft.XMLHTTP");
	httpob.open("POST","check.asp?username=" + a ,false);
	httpob.send();
	ab1=httpob.responseText;
	ab2=ab1.split("^");
	alert(ab2[0]);
		if(ab2[1]=='found')
		{  document.forms("form1").elements("username").value='';  }  
}
else
{
	alert("Please Enter Desired Username First");
}
}
