var xmlHttp=createXmlHttpRequestObject();
var xmlHttpShow=createXmlHttpRequestObject();
var xmlHttpAdd=createXmlHttpRequestObject();
var xmlHttpDel=createXmlHttpRequestObject();
var xmlHttpCh=createXmlHttpRequestObject();

function createXmlHttpRequestObject()
{
	var xmlHttp;
	var xmlHttpShow;
	var xmlHttpAdd;
	var xmlHttpDel;
	var xmlHttpCh;

	if(window.ActiveXObject)
	{
		try
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			xmlHttpShow=new ActiveXObject("Microsoft.XMLHTTP");
			xmlHttpAdd=new ActiveXObject("Microsoft.XMLHTTP");
			xmlHttpDel=new ActiveXObject("Microsoft.XMLHTTP");
			xmlHttpCh=new ActiveXObject("Microsoft.XMLHTTP");


		}
		catch(e)
		{
			xmlHttp=false;
			xmlHttpAdd=false;
			xmlHttpShow=false;
			xmlHttpDel=false;
			xmlHttpCh=false;

		}
	}
	else
	{
		try
		{
			xmlHttp=new XMLHttpRequest();		
			xmlHttpAdd=new XMLHttpRequest();
			xmlHttpShow=new XMLHttpRequest();
			xmlHttpDel=new XMLHttpRequest();
		    xmlHttpCh=new XMLHttpRequest();
	
		}
		catch (e)
		{
			xmlHttp=false;
			xmlHttpAdd=false;
			xmlHttpShow=false;
			xmlHttpDel=false;
			xmlHttpCh=false;

		}
	}
	if(!xmlHttp)
		alert("Error!");
	else
		return xmlHttp;
		
	if(!xmlHttpShow)
		alert("Error!");
	else
		return xmlHttpShow;
		
	if(!xmlHttpAdd)
		alert("Error!");
	else
		return xmlHttpAdd;

	if(!xmlHttpDel)
		alert("Error!");
	else
		return xmlHttpDel;

	if(!xmlHttpCh)
		alert("Error!");
	else
		return xmlHttpCh;

}
