
/** 
*	Create XMLHttp request object to talk to the server 
*	@author 	 Himadri Shekhar Roy
*	@version 	 1.0
*	@date 		 October 26, 2006
*	@email		 himadri.s.roy@ansysoft.com
*	@copyright	 Analyze System Software Pvt. Ltd.
*/

function callAjax()
{
	var request = false;
	
	//xml http object for internet explorer
	
	if(window.ActiveXObject)
	{
		try
		{
			request = new ActiveXObject("Msxml2.XMLHTTP");
		}//end of try, start catch
		catch (e)
		{
			try 
			{
				request = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				request = false;
			}
		}//end of catch
	}
	else
	{
		try
		{
			request = new XMLHttpRequest();
		}
		catch(e)
		{
			request = false;
		}
		
		if(!request)
		{
			alert("Error Create request");
		}
	}
	return request;
}
