function createDoc(){
	try //Internet Explorer
	{
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	}
	catch(e)
	{
		try //Firefox, Mozilla, Opera, etc.
		{
			xmlDoc=document.implementation.createDocument("","",null);
		}
		catch(e)
		{
			alert("Your browser does not support AJAX!");
			return false;
		}
	}
	return xmlDoc
}

function GetXmlHttpObject(){
	var xmlHttp;
	try{
		xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari
	}
	catch (e){
		try{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");// Internet Explorer 6
      }
		catch (e){
			try{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");// IE 5
			}
			catch (e){
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return xmlHttp;
}