//----------------------------------------- AJAX Check User Avaliable -----------------------------------------
function send()
{
var ajaxRequest;
if(window.XMLHttpRequest)
{
ajaxRequest = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
alert ("Browser error");
return false;
}
ajaxRequest.onreadystatechange = function()
{
if(ajaxRequest.readyState == 3)
{
var area = document.getElementById('area');
}
if(ajaxRequest.readyState == 4)
{
var area = document.getElementById('area');
area.innerHTML = ajaxRequest.responseText;
// area.innerHTML = " ";
}
}
var name = document.form1.cust_userid.value;
ajaxRequest.open( "GET", "registersay.php?"+"name="+encodeURIComponent(name), true);
ajaxRequest.send(null);