function ajaxlog(user,pass,control)
{
	    var xmlHttp;
	 
	    try {
	        // Firefox, Opera 8.0+, Safari
	        xmlHttp = new XMLHttpRequest();
	    }
	    catch (e) {
	        // Internet Explorer
	        try {
	           xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	        }
	        catch (e) {
	            try {
	                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	            }
	            catch (e) {
	                alert("Your browser does not support AJAX!");
	                return false;
	            }
	        }
	    }	 
	    xmlHttp.onreadystatechange = function() 
		{
	        if(xmlHttp.readyState==4)
			{
				if(xmlHttp.status==200)
				{
					if(control==1)
					{
						//document.getElementById("mdiv").innerHTML=xmlHttp.responseText;
						var str=new Array;
						str=xmlHttp.responseText.split("|");
						thisMovie("Login").wellcom(str[0],str[1]);
					}
					else if(control==0)
					{
						//window.location ="home.html";
					}
				}
				else{
					alert("Error");
				}
			}
	    }
	
	    xmlHttp.open("POST", "login.php", true);
		xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	    xmlHttp.send("user=" + user + "&pass=" + pass);
}

function thisMovie(movieName) {
        var isIE = navigator.appName.indexOf("Microsoft") != -1;
        return (isIE) ? window[movieName] : document[movieName];
	}    