var xmlHttp
	function showHint2(str){
		xmlHttp=GetXmlHttpObject2();
		if (xmlHttp==null){
			alert ("Your browser does not support AJAX!");
			return;
	  	} 
		var url="ajax_php2.php";
		url=url+"?str="+str;
		//alert(url);
		url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=stateChanged2;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}
	function stateChanged2(){
		if (xmlHttp.readyState==4){
			var res,rp;
			res=xmlHttp.responseText;
			rp=res.split("~");
			document.getElementById("res1").innerHTML=rp[0];
			document.getElementById("res2").innerHTML=rp[1];
			document.getElementById("res3").innerHTML=rp[2];
			document.getElementById("res4").innerHTML=rp[3];
		}
	}
	function GetXmlHttpObject2(){
		var xmlHttp=null;
		try{
			// Firefox, Opera 8.0+, Safari
	  		xmlHttp=new XMLHttpRequest();
	  	}
		catch (e){
			// Internet Explorer
	  		try{
		  		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	    	}
	  	catch (e){
		  	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	    }
	  }
	return xmlHttp;
	}
