var xmlHttp_3




function ppost(url,frm)
{	//alert("Url :"+url);
	var sendVal=null;
	var get_post="GET";
	xmlHttp_3=GetXmlHttpObjectt();

	if (xmlHttp_3==null){alert ("Browser does not support HTTP Request");return;}
	if(frm!=""){sendVal = getFormElementsStringg(frm);get_post="POST";}//If a form object is passed the post elements
	
	xmlHttp_3.onreadystatechange=stateChangedd;
	xmlHttp_3.open(get_post,url,true);
	xmlHttp_3.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
	xmlHttp_3.send(sendVal);
}

function getFormElementsStringg(frm)
{
	var sendVal='';
	var numEl=0;
	var el='';
	var f= document.forms[frm];
	numEl = f.elements.length;
	
	for(i=0;i<numEl;i++)
	{
		el = f.elements[i];
//		alert(el.type);
		if(el.type=='checkbox')
		{
			if(el.checked==true)
				sendVal=sendVal+el.name+'='+el.value+ '&';
		}
		else
		{
				sendVal=sendVal+el.name+'='+el.value+ '&';
		}
	}
	
	//remove the last &
	sendVal = sendVal.substr(0,(sendVal.length-1));
	
	return sendVal;
}

function stateChangedd() 
{ 
if (xmlHttp_3.readyState==4 || xmlHttp_3.readyState=="complete")
 { 
 document.getElementById("txtHint2").innerHTML=xmlHttp_3.responseText 
	startit()
 } 
}

function GetXmlHttpObjectt()
{
var xmlHttp_3=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp_3=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp_3=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp_3=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp_3;
}