
var XMLHttp = null;

function createXMLHttp(){
	if(!XMLHttp){
		if(window.XMLHttpRequest){
			XMLHttp = new XMLHttpRequest();
		}else if(window.ActiveXObject){
			try{
				XMLHttp = new ActiveXObject("Msxml4.XMLHTTP");
			}catch(e){
				try{
					XMLHttp = new ActiveXObject("Msxml3.XMLHTTP");
				}catch(e){
					try{
						XMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
					}catch(e){
						try{
							XMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
						}catch(e){}
					}
				}
			}
		}
		if(!XMLHttp){
			//alert("create xml object error !")
		}
	}else{
		return true;
	}	
}


String.prototype.trim = function(){
    return this.replace(/(^\s*)|(\s*$)/g, "");
}



