	function ajaxs(){
		var obj = new Object();
		obj.xmlRequest = null;
		obj.createXmlRequest=function(){
			var xmlrequest = null;
			if(window.XMLHttpRequest){
				xmlrequest = new XMLHttpRequest();
			}else if(window.ActiveXObject){
				xmlrequest = new ActiveXObject("Microsoft.XMLHTTP");
			}
			return xmlrequest;
		}
		
		obj.xmlRequest = obj.createXmlRequest();
		
		obj.sends=function (sendurl,div_id){
			sendurl = sendurl+"?n="+Math.random();
			var div = document.getElementById(div_id);
			obj.xmlRequest.onreadystatechange = statuschange;
			obj.xmlRequest.open("GET",sendurl,false);
			obj.xmlRequest.send(null);
			
			function statuschange(){
				if(obj.xmlRequest.readyState == 4){
					if(obj.xmlRequest.status == 200){
						div.innerHTML = obj.xmlRequest.responseText;
					}
				}
			}
		}
		

		obj.getanswer=function (sendurl,div_id){
			sendurl = sendurl+"&n="+Math.random();
			var div = document.getElementById(div_id);
			obj.xmlRequest.onreadystatechange = statuschange;
			obj.xmlRequest.open("GET",sendurl,false);
			obj.xmlRequest.send(null);
			function statuschange(){
				if(obj.xmlRequest.readyState == 4){
					if(obj.xmlRequest.status == 200){
						div.innerHTML = "<font color='red'>正确答案是："+obj.xmlRequest.responseText+"</font>";
					}
				}
			}
		}
		
		obj.gets=function(geturl,show_id,web){
      web = web.replace(/&/g,'()');
      geturl =geturl+"&num="+Math.random()+"&web="+web;
			var dis = document.getElementById(show_id);
			obj.xmlRequest = obj.createXmlRequest();
			obj.xmlRequest.onreadystatechange=proccess;
			function proccess(){
				if(obj.xmlRequest.readyState == 4){
					if(obj.xmlRequest.status==200){
						dis.style.display='';
						dis.innerHTML = obj.xmlRequest.responseText;
					}
				}
				if(obj.xmlRequest.readyState == 1){
					dis.style.dispay='';
					dis.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;正在处理数据，请耐性等待...";
				}
			 }
			 obj.xmlRequest.open("GET",geturl,true);
			 obj.xmlRequest.send(null);
	 }
		return obj;
	}

 var aj = ajaxs();
 
 	function addEvent(obj,func,bln,funcname){
		if(obj.attachEvent){
		 	obj.attachEvent("on"+funcname,func,bln);
		}else{
			obj.addEventListener(funcname,func,bln);
		}
	}
