
//this function is used to call ajax.
function AjaxCalling(strQueryString,strWebPath)
  {
  	//1.0 create xmlhttp request object.
	var xmlHttp;
	if (window.ActiveObject)
	{
		xmlHttp=new ActiveObject("Microsoft.XMLHTTP");
	}
	else
	{
		xmlHttp=new XMLHttpRequest();
	}

	//2.0 create connection, send request.
	xmlHttp.open("POST",strWebPath,false);
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(strQueryString);

	//alert(xmlHttp.responseText);
	return xmlHttp.responseText;
  }
