var xmlhttp;

function submitForm()
{
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	{
		alert ("Browser does not support HTTP Request");
	    return;
	}

	/*xmlhttp.open("POST","readmore.php",true);
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.send("ident"+ident.value);*/
	alert("HI");
}

function stateChanged()
{
	if (xmlhttp.readyState==4)
	{
		//document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
		alert("State changed.");
	}
}

function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	{
		// IE7+, Firefox, Chrome, Opera and Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject)
	{
		// IE5 and IE6
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}