	/** 靳媛媛
	// IE 支持 ajax
	if (window.ActiveXObject && !window.XMLHttpRequest) {
	 	window.XMLHttpRequest=function() {
	    	return new ActiveXObject((navigator.userAgent.toLowerCase().indexOf('msie 5') != -1) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP');
		}
	};
	//封装ajax调用程序
	function exeRequest(url,handle,v){
	var xmlHttp=new XMLHttpRequest();
  	xmlHttp.onreadystatechange=function (){
			if(xmlHttp.readyState==4){
				if(xmlHttp.status==200){
					var v=xmlHttp.responseText;
					handle(v);
				}
			}
  	};
  	xmlHttp.open("post",url);
  	xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  	xmlHttp.send(v);
	}*/
	
	//创建XMLHttpRequest对象
	var bXmlHttpSupport = (typeof XMLHttpRequest!="undefined"||window.ActiveXObject);
    	
    	if(typeof XMLHttpRequest=="undefined"&&window.ActiveXObject){
    		XMLHttpRequest=function(){
    			var arrSignatures = ["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0",
    								"MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP",
    								"Microsoft.XMLHTTP"];
    			for(var i=0;i<arrSignatures.length;i++){
    				try{
    					var oRequest = new ActiveXObject(arrSignatures[i]);
    					return oRequest;
    				}catch(oError){
    					//alert("不能生成XMLHTTP对象");
    				}
    			}
    			
    			throw new Error("MSXML is not installed on your system.");
    		}
    	}
    	
	//封装ajax调用程序
	function doDivAjax(url,v,divId){
		var xmlHttp=new XMLHttpRequest();  
   		if (xmlHttp) {	    
    	 xmlHttp.onreadystatechange=function(){  	    
	   	 	if (xmlHttp.readyState==4 && xmlHttp.status==200) {
				if (xmlHttp.responseText!=""){
			  	 document.getElementById(divId).innerHTML = xmlHttp.responseText;

				}				
			}			 
		};
  		xmlHttp.open("post",url);
  		xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  		xmlHttp.send(v);

		}
	}
	//封装ajax调用程序
	function doAjax(url,handle,term,ty){
		var xmlHttp=new XMLHttpRequest();
		xmlHttp.onreadystatechange=function (){
			if(xmlHttp.readyState==4){
				if(xmlHttp.status==200){
					var v="";
					if(ty=="xml"){
						v=xmlHttp.responseXML;
					}else{
						v=xmlHttp.responseText;
					}
					handle(v);
				}
			}
		};
	xmlHttp.open("post",url);
	xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");	
	xmlHttp.send(term);
	}
	
	//封装ajax调用程序
	function doAjaxp(url,handle,term,ty,userId,userName){
		var xmlHttp=new XMLHttpRequest();
		xmlHttp.onreadystatechange=function (){
			if(xmlHttp.readyState==4){
				if(xmlHttp.status==200){
					var v="";
					if(ty=="xml"){
						v=xmlHttp.responseXML;
					}else{
						v=xmlHttp.responseText;
					}
					handle(v,userId,userName);
				}
			}
		};
	xmlHttp.open("post",url);
	xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");	
	xmlHttp.send(term);
	}
	//短函数方便使用
	function $(id){
	 	return document.getElementById(id);
	};	
	//字符串去空格函数
	String.prototype.trim = function(){
	        return this.replace(/(^\s*)|(\s*$)/g, '');
	};
	//得到控件真实的横坐标位置
	function hint_PosX(obj) {
		var curleft = 0;
		if (obj.offsetParent) {
			while (obj.offsetParent) {
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x) curleft += obj.x;
		return curleft;
	};
	//得到控件真实的纵坐标位置
	function hint_PosY(obj) {
		var curtop = 0;
		if (obj.offsetParent) {
			while (obj.offsetParent) {
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y) curtop += obj.y;
		return curtop;
	};