﻿// JScript 文件
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function swap_tab(n){ 
	for(var i=1;i<=3;i++){ 
		var curC=document.getElementById("tab_"+i); 
		var curB=document.getElementById("tab_t"+i); 
		if(n==i){ 
			curC.style.display="block"; 
			curB.style.background="url(image/hd_bai.jpg)";
			curB.style.color="#000000";
			curB.style.fontWeight="bold";
		}else{ 
			curC.style.display="none";
			curB.style.background="url(image/hd_hui.jpg)";
			curB.style.color="#000000"; 
			curB.style.fontWeight="";
		} 
	} 
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

