var xmlHttp=GetXMLHTTP();
var des="";
var chk="";
function GetXMLHTTP()
 {
  try
   {
    // Firefox, Opera 8.0+, Safari
    return new XMLHttpRequest();
   }
  catch (e)
   {
    // Internet Explorer
    try
 	 {
	  return new ActiveXObject("Msxml2.XMLHTTP");
	 }
    catch (e)
 	 {
	  try
	   {
	    return new ActiveXObject("Microsoft.XMLHTTP");
	   }
	  catch (e)
	   {
	    alert("Your browser does not support AJAX!");
	    return false;
	   }
	 }
   }
 }

function sendRequest(method,url,str)
{

	if(method=="POST"||method=="post")
	{
		
		xmlHttp.open("POST", url, true);
		//Send the proper header information along with the request
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttp.setRequestHeader("Content-length", str.length);
		xmlHttp.setRequestHeader("Connection", "close");
		xmlHttp.onreadystatechange = handleResponse;
		xmlHttp.send(str);
		
	}

	else
	{

		xmlHttp.open("GET", url+"?"+str, true);
		xmlHttp.onreadystatechange=handleResponse;
		xmlHttp.send(null);
		
	}
/*		xmlHttp.onreadystatechange=function(){	
										if(xmlHttp.readyState==4&&xmlHttp.status==200)
										{
											HideDiv("commentAjaxLoad");
											document.getElementById("allcomments").innerHTML=xmlHttp.responseText;
										}

									};
*/
	}


