function writeResult (res, div_id)
{
	myDiv=document.getElementById(div_id);
	myDiv.innerHTML=res;
}

function checkLogin()
{
			var params="arguments="+arguments[0];
			var arg=arguments;	
			xmlHttp.open("POST","/js_ajax/checkLogin.php",true);
			xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded, charset=UTF-8");
			xmlHttp.onreadystatechange=function done () {if(xmlHttp.readyState==4 && xmlHttp.status==200) {writeResult(xmlHttp.responseText, "loginCheckResult");}} ;
			xmlHttp.send(params);							
}	