function $msn(id,tag){
	if(!tag){
		return document.getElementById(id);
	}else if(typeof id=='string'){
		return document.getElementById(id).getElementsByTagName(tag);
	}else{
		return id.getElementsByTagName(tag);
	}
}

Changes=function changes(id,tag,mouse,div){
	var objid=$msn(id,tag);
	var total=objid.length;
	for(i=0;i<total;i++){
		cha(i);
	}
	function cha(i){
		objid[i][mouse]=function(){
			for(b=0;b<total;b++){
				if(b==i){
					objid[b].className="on";
					$msn("con"+div+"_"+b).style.display="block";
				}else{
					objid[b].className="";
					$msn("con"+div+"_"+b).style.display="none";
				}
			}
		}
	}
}

function show_tbl(pre,n,select_n){
for(i=0;i<n;i++){
var tbl= document.getElementById(pre+i);
tbl.style.display="none";
if(i==select_n){
tbl.style.display="block";
}
}
}

var showsoft=false;
function showStm(n){
	if(n==0)showindexhtml();
	for (i=0;i<=4;i++){
		 document.getElementById("stgm" + i).className = "blur";
		 document.getElementById("stm" + i).style.display = "none";
    }
	document.getElementById("stgm" + n).className = "";
	document.getElementById("stm" + n).style.display = "block";
}
var tmptxt='';
function showindexhtml(){
 if(tmptxt!=''){
   $("indexhtml").innerHTML=tmptxt;
 }
}
function tab_list(topbar,content,n,select_n)
{
for(i=1;i<=n;i++){
var tbl= document.getElementById(content+i);
var tbtop= document.getElementById(topbar+i);
tbl.style.display="none";
tbtop.style.cssText="width:78px;height:25px;border-right-width: 1px;border-right-style: solid;border-right-color: #eaa;height:25px;border-bottom:1px solid #eaa;background:url(images/css/title_bg_r.gif) top left repeat-x;"
if(i==select_n){
tbl.style.display="block";
tbtop.style.cssText="height:25px;width:78px;border-bottom-color:#FFFFFF;background-color:#FFF;border-right-width: 1px;border-right-style: solid;border-right-color: #eaa;border-bottom-width: 1px;border-bottom-style: solid;"
}
}
}
