var xmlHttp

function showUser(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="user_id_chck.asp"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 } 
}

function showCompName(str3)
{ 
xmlHttp3=GetXmlHttpObject()
if (xmlHttp3==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url3="user_id_chck.asp"
url3=url3+"?n="+str3
url3=url3+"&sid3="+Math.random()
xmlHttp3.onreadystatechange=stateChanged1 
xmlHttp3.open("GET",url3,true)
xmlHttp3.send(null)
}
function stateChanged3() 
{ 
if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
 { 
 document.getElementById("comp_name").innerHTML=xmlHttp3.responseText 
 } 
}

function showComp(str1)
{ 
xmlHttp1=GetXmlHttpObject()
if (xmlHttp1==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url1="user_id_chck.asp"
url1=url1+"?u="+str1
url1=url1+"&sid1="+Math.random()
xmlHttp1.onreadystatechange=stateChanged1 
xmlHttp1.open("GET",url1,true)
xmlHttp1.send(null)
}
function stateChanged1() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
 { 
 document.getElementById("comp_id").innerHTML=xmlHttp1.responseText 
 } 
}


function canUser(str4)
{ 
xmlHttp4=GetXmlHttpObject()
if (xmlHttp4==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url4="user_id_chck.asp"
url4=url4+"?c="+str4
url4=url4+"&sid4="+Math.random()
xmlHttp4.onreadystatechange=stateChanged4 
xmlHttp4.open("GET",url4,true)
xmlHttp4.send(null)
}
function stateChanged4() 
{ 
if (xmlHttp4.readyState==4 || xmlHttp4.readyState=="complete")
 { 
 document.getElementById("can_hint").innerHTML=xmlHttp4.responseText 
 } 
}

function showUser(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="user_id_chck.asp"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 } 
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
