function showSubcatalog(obj){ //top.sthml显示目录
	 for(var i=1;i<=4;i++){
	  var  id ="key"+i;
	  var keyItem = document.getElementById(id);
	  var detailItem = document.getElementById("detail"+i);
	   if(id != obj.id){
	   	 detailItem.style.display = "none";
	   }
         else{
		detailItem.style.display = "block";
	   }
	 }
}
function showNewsImg(day){
	Date.prototype.format = function(format){
		var o = {
			"M+" : this.getMonth()+1, //month
			"d+" : this.getDate(),    //day
			"h+" : this.getHours(),   //hour
			"m+" : this.getMinutes(), //minute
			"s+" : this.getSeconds(), //second
			"q+" : Math.floor((this.getMonth()+3)/3),  //quarter
			"S" : this.getMilliseconds() //millisecond
		}
		if(/(y+)/.test(format)) 
			format=format.replace(RegExp.$1,(this.getFullYear()+"").substr(4 - RegExp.$1.length));
		for(var k in o)
			if(new RegExp("("+ k +")").test(format))
		format = format.replace(RegExp.$1,RegExp.$1.length==1 ? o[k] :("00"+ o[k]).substr((""+ o[k]).length));
		return format;
	}
	var today = new Date();
	var d1 = today.format("yy/MM/dd");
	var earlytime = today.getTime()-2*24*60*60*1000;//时间范围
	var earlyday = new Date(earlytime);
	var d2 = earlyday.format("yy/MM/dd");
	if(day <= d1 && day >= d2)
		document.write('<img src="/images/new.gif" width="30" height="11">');
}
function checksearch(frm){
	if(frm.searchword.value==''||frm.searchword.value=='关键字'){
		alert('请输入您要检索的关键字');
		frm.searchword.focus();
		return false;
	}
	return true;
}
function showImg(id,url){
	if(url==""){
		return;
	}
	var outPut = "";
	if(id=="bszn"){
		outPut = "<a href='"+url+"' target='_blank'><img height='20' src='/images/yunxing.gif' width='20' border='0'></a>";
	}
	else if(id=="xmzn"){
		outPut = "<a href='"+url+"' target='_blank'><img height='20' src='/images/red_forum.gif' width='20' border='0'></a>";
	}
	else if(id=="sbxt"){
		outPut = "<a style='cursor:hand' onclick=\"javascript:window.open('"+url+"','download','width=376,height=280,scrollbars=yes,resizable=yes')\"><img height='20' src='/images/drive.gif' width='20' border='0'></a>";
	}
	else if(id=="bscx"){
		outPut = "<a style='cursor:hand' onclick=\"javascript:window.open('"+url+"','download','width=376,height=280,scrollbars=yes,resizable=yes')\"><img height='20' src='/images/icn_3.gif' width='20' border='0'></a>";
	}
	else if(id=="jggs"){
		outPut = "<a style='cursor:hand' onclick=\"javascript:window.open('"+url+"','download','width=376,height=280,scrollbars=yes,resizable=yes')\"><img height='20' src='/images/icn_4.gif' width='20' border='0'></a>";
	}
	else if(id=="bgxz"){
		outPut = "<a style='cursor:hand' onclick=\"javascript:window.open('"+url+"','download','width=376,height=280,scrollbars=yes,resizable=yes')\"><img height='20' src='/images/word.gif' width='20' border='0'></a>";
	}
	document.write(outPut);
}