// JavaScript Document
/*function newXmlHttp(){
	var xmlhttp = false;

	try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(e){
			xmlhttp = false;
		}
	}

	if(!xmlhttp && document.createElement){
	xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}
function newXmlHttp(){
 	var xmlhttp=false;
	if(window.XMLHttpRequest){
		xmlhttp=new XMLHttpRequest();
	}else if(window.AxtiveXObject){
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	return xmlhttp;
}*/

function newXmlHttp(){
		var xmlhttp = false;
		if (window.XMLHttpRequest) { 
		// Mozilla, Safari,...
			xmlhttp = new XMLHttpRequest();
			if (xmlhttp.overrideMimeType) {
			xmlhttp.overrideMimeType('text/xml');
			// See note below about this line
			}
		} else if (window.ActiveXObject) { // IE
			try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			}catch(e){
				try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) 
				{}
			}
		}
		if (!xmlhttp) {
		alert('Not create xmlhttp request :P .');
		return false;
		}
		
		return xmlhttp;

}


