	//xmlhttprequest 
    function send_ajax(data_url){
		xmlhttp = new InitAjax();
		xmlhttp.open("get",data_url,true);
		//xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
		xmlhttp.send(null);		
		xmlhttp.onreadystatechange = function() {
            if (4==xmlhttp.readyState){
                if (200==xmlhttp.status){
                    document.getElementById("tip").innerHTML=xmlhttp.responseText;

                }else{
                    alert("发生错误!");
                }
            }
        }
    }


    function send_ajax_Email(data_url){
		xmlhttpM = new InitAjax();
		xmlhttpM.open("get",data_url,true);
		//xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
		xmlhttpM.send(null);		
		xmlhttpM.onreadystatechange = function() {
            if (4==xmlhttpM.readyState){
                if (200==xmlhttpM.status){
                    document.getElementById("tip_m").innerHTML=xmlhttpM.responseText;

                }else{
                    alert("发生错误!");
                }
            }
        }
    }

    function chkusername(obj){
        if(obj.value.length<1){
            obj.style.backgroundcolor="#000000";
            alert("请输入用户名!");
            obj.focus();
        }else{
            //调用ajax函数,向服务器端发送查询
            send_ajax("n_chk_user.php?username="+obj.value);
        }            
    }
	
    function chkEmailthis(obj){
        if(obj.value.length<1){
            obj.style.backgroundcolor="#000000";
            alert("请正确输入电子邮件地址!");
            obj.focus();
        }else{
            //调用ajax函数,向服务器端发送查询
            send_ajax_Email("n_chk_email.php?emailValue="+obj.value);
        }            
    }
	
	//function 
//-->
