var xmlHttp;
function creatXmlHttp() {
    try {
        xmlHttp = new XMLHttpRequest();
    }catch (trymicrosoft) {
        try {
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        }catch (othermicrosoft) {
            try {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            }catch (failed) {
                xmlHttp = false;
            }
        }
    }
}
function logincheck() {
    var username = document.form.username.value;
    var passw = document.form.passw.value;
    var fjm = document.form.fjm.value;
    var url = "../../../check.php?username="+username+"&passw="+passw+"&fjm="+fjm;
    creatXmlHttp();
    xmlHttp.onreadystatechange = callBack;
    xmlHttp.open('GET', url, true);
    xmlHttp.send(null);
}
function callBack() {
     if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
          var login = xmlHttp.responseText;
			if(login!="")
			{	
				if(login==undefined)document.getElementById("login").innerHTML=='';
				else
				document.getElementById("login").innerHTML =login;
                return false;
			}
        }
     }
  }

  