xmlHttp = CreateXmlHttpObject();
function getUni()
{ 
//// checking for student or other in category
	jstring=document.frmSrcUniversity.cityName.value;
    xmlHttp.open('GET',"serveruniversity.php?cityID=" + jstring,true);
    /* set the Content-Type header for a POST request */
    xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
	xmlHttp.onreadystatechange=handlegetUni;
    xmlHttp.send(null);		
}//// end getUni
function handlegetUni()
{ 
    if(xmlHttp.readyState == 4)
    {
        if(xmlHttp.status == 200)
        {
            var response2 = new String(xmlHttp.responseText);		
			document.getElementById("DivUniversity").innerHTML="&nbsp;Name"+response2;			
        } 
        else 
        {
            alert("A problem occurred with communicating between the XMLHttpRequest object and the server program.");
        }
    }//end outer if
        else if ( xmlHttp.readyState == 2 || xmlHttp.readyState == 3)
    {
            document.getElementById("DivUniversity").innerHTML="&nbsp; &nbsp; <img src=images/loading2.gif />  &nbsp; &nbsp;";
    					
    }
} // end handleregetUni
