function check_password()

{


			var passText=document.getElementById('pass').value;
			//document.getElementById('s').innerHTML=text;	

			var url = 'checkPassword.php?text='+passText;
 
            req = false;

            if(window.XMLHttpRequest) {                   // branch for native XMLHttpRequest object

                        try {

                                    req = new XMLHttpRequest();

                        } catch(e) {

                                    req = false;

                        }

            }

            else if(window.ActiveXObject) {                // branch for IE/Windows ActiveX version

                        try {

                                    req = new ActiveXObject("Msxml2.XMLHTTP");

                        } catch(e) {

                                    try {

                                                req = new ActiveXObject("Microsoft.XMLHTTP");

                                    } catch(e) {

                                                req = false;

                                    }

                        }

            }

            if(req)

            {

                        
						req.onreadystatechange = showPassResult;

                        req.open("GET", url, true);

                        req.send(null);

            }

}

function showPassResult()

{

            if(req.readyState == 4)

            {

                        var objText = req.responseText;
											
						document.getElementById('p').innerHTML=objText;
                                   


            }

}





