﻿// JScript 文件


function Checkuser(id)
{
    createXMLHttpRuest();
    var url = "/product/checkuser.aspx?type=1&x="+Math.random();
    xmlHttp.onreadystatechange = onDataChange;
    xmlHttp.open(xmlHttpType,url,false);
    xmlHttp.setRequestHeader("content-type","application/x-www-form-urlencoded");
    xmlHttp.send(null);
    var text = onDataChange();
   
   if(text.length>0)
    {
//    
//        //document.getElementById('save_stat').innerHTML="<img src='images/loading.gif'  align='middle'><font size='2'>数据提交成功！请稍后．．．</font>";
//       // window.location.href="UserRegisterOK.htm";
     var s=xmlHttp.responseText;
//       if(s=='010')
//       {
//       
//       alert('请先登陆!');
//       window.location.href='/login/login.aspx?url=http://www.vpagy8.com/product/productinfo.aspx?id='+id;
//       return ;
//       }
//      
       return s;
    }
    else{
        alert('对不起!提交数据失败,请重试!');
        //window.location.href="UserRegister.aspx";
        return '010';
    }  

 //document.getElementById("VcodeLogin").src="/CheckCode.aspx?rnd="+ Math.random();
}







