var http_request=false;
if(typeof $=='undefined')$=function(id){
	var element = id;
	if (typeof element == 'string')
		element = document.getElementById(element);
	return element;
};
function send_request(url){
    http_request=false;
	if(window.XMLHttpRequest){
	    http_request=new XMLHttpRequest();
	    if(http_request.overrideMimeType){
	        http_request.overrideMimeType("text/xml");
	    }
	}
	else if(window.ActiveXObject){
	    try{
	        http_request=new ActiveXObject("Msxml2.XMLHttp");
	    }catch(e){
	        try{
	            http_request=new ActiveXobject("Microsoft.XMLHttp");
	        }catch(e){}
	    }
    }
	if(!http_request){
	    window.alert("创建XMLHttp对象失败！");
	    return false;
	}
	http_request.onreadystatechange=processrequest;
    http_request.open("GET",url,true);
	http_request.send(null);
}
function processrequest(){
    if(http_request.readyState==4){
        if(http_request.status==200){
			$("change_list").innerHTML=http_request.responseText;
	    }else{
	        alert("您所请求的页面不正常！");
	    }
    }
}
function show(cid){
	$("change_list").innerHTML="<div style='width:330px;text-align:center;padding-top:60px;'><img src='img/loading.gif' /></div>";
	$("div_33").style.color="#CC0001";
	$("div_34").style.color="#CC0001";
	$("div_35").style.color="#CC0001";
	$("div_36").style.color="#CC0001";
	$("div_37").style.color="#CC0001";
	$("div_38").style.color="#CC0001";
	$("div_"+cid).style.color="#BB7A02";
    send_request("news.php?cid="+cid);
}
 