// JavaScript Document
var xmlHttp

function createAjaxObj(function_name) 
{
	var objXmlHttp=null
	
	if (navigator.userAgent.indexOf("Opera")>=0)
	{
		alert("This example doesn't work in Opera") 
		return 
	}
	if (navigator.userAgent.indexOf("MSIE")>=0)
	{ 
		if(navigator.appVersion.indexOf("MSIE 7.0")>=0)
		{
			objXmlHttp=new XMLHttpRequest()
			objXmlHttp.onreadystatechange=function_name
			return objXmlHttp
		}
		else
		{
			var strName="Microsoft.XMLHTTP"
			try
			{ 
				objXmlHttp=new ActiveXObject(strName)
				objXmlHttp.onreadystatechange=function_name
				return objXmlHttp
			} 
			catch(e)
			{ 
				alert("Error. Scripting for ActiveX might be disabled") 
				return 
			}
		}
	}
	if (navigator.userAgent.indexOf("Mozilla")>=0)
	{
		objXmlHttp=new XMLHttpRequest();
		objXmlHttp.onload=function_name;
		objXmlHttp.onerror=function_name;
	
		return objXmlHttp
	}

}