var introId=document.getElementById("txtIntroId").value;
var request;
try
{
request = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
request = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
try
{
}
catch(e)
{
request = new XMLHttpRequest();
}
}
}
request.open("post","../Handler.ashx",true);
request.setRequestHeader("Content-Type","application/x-www-form-urlencoded;"); //设置编码
request.send("userId="+introId);
request.onreadystatechange=function()
{
if(request.readyState==4)
{
if(request.responseText=="0")
{
document.getElementById('msg_IntroId').innerHTML="介绍人会员编号输入有误";
}
else
{
document.getElementById('msg_IntroId').innerHTML="介绍人会员编号可用";
}
}
}