//email验证
function createXmlHttp()
      {
	   if (window.ActiveXObject) 
        {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");   //IE6.0    
            if(!xmlHttp)
                 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");   //IE 4.0,IE 5.0
        }
        else if (window.XMLHttpRequest)
        {
            xmlHttp = new XMLHttpRequest();     //supported by other browsers.
        }
           return xmlHttp; 
	   }
	   
function forphp(email,us){
	xmlHttp=createXmlHttp();
        xmlHttp.open("GET","include/ajax_validate_email.php?email="+email+"&us="+us,true);
        xmlHttp.onreadystatechange=callback;
        xmlHttp.send(null);

}	 
//回调函数
 function callback()
{
    if(xmlHttp.readyState==4)
    {
        if(xmlHttp.status==200)
        {  
            document.getElementById('checkemail').innerHTML=xmlHttp.responseText;     
        }
    }
}
//活动验证

function forevent(date,Place){
	    xmlHttp=createXmlHttp();
        xmlHttp.open("GET","include/ajax_validate_email.php?email="+email+"&us="+us,true);
        xmlHttp.onreadystatechange=callback;
        xmlHttp.send(null);
}
