<!-- Hide
var count=0;//做计数器
var limit=new Array();//用于记录当前显示的哪几个菜单
var countlimit=1;//同时打开菜单数目，可自定义

function expandIt(el) {
   obj = eval("sub" + el);
   if (obj.style.display == "none") {
      obj.style.display = "block";//显示子菜单
      if (count<countlimit) {//限制2个
         limit[count]=el;//录入数组
         count++;
      }
      else {
         eval("sub" + limit[0]).style.display = "none";
         for (i=0;i<limit.length-1;i++) {limit[i]=limit[i+1];}//数组去掉头一位，后面的往前挪一位
         limit[limit.length-1]=el;
      }
   }
   else {
      obj.style.display = "none";
      var j;
      for (i=0;i<limit.length;i++) {if (limit[i]==el) j=i;}//获取当前点击的菜单在limit数组中的位置
      for (i=j;i<limit.length-1;i++) {limit[i]=limit[i+1];}//j以后的数组全部往前挪一位
      limit[limit.length-1]=null;//删除数组最后一位
      count--;
   }
}
//--> 

<!--//字体放大
function FontZoom(size)
{
	document.getElementById("FontZoom").style.fontSize=size+'px';     
}
//-->

<!--//Crrl+Enter 提交
ie = (document.all)? true:false
if (ie){
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.form1.submit();}}
}
//-->

<!--//返回、关闭窗口、返回顶部
function GoBack(){
javascript:window.history.back();
}

function GoClose(){
window.close();
return;}

function GoTop() {
//	if (document.body.scrollTop == 0) {
//		window.scrollTo(0,document.body.scrollHeight);
//	} else {
		window.scrollTo(0,0);
//	}
}
//-->

<!--//弹出窗口
function OpenPD(evnt,obj,w,h) 
{
    var evnt=window.event || evnt;
    evnt.returnValue=false;
    var isFF=!document.all;
    var width=w; 
    var height=h;
    return OpenWin(obj.href,width,height);
}

function OpenWin(url,w,h)
{
    var left=(screen.width-w)/2;
    var top=(screen.height-h)/2;
    window.open(url,"","width="+w+",height="+h+",top="+top+",left="+left+",toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no");
    return false;
}
//-->

<!--//日期时间
function NowTime()
{
var mytime = new Date();
var week;
mymonth=mytime.getMonth()+1;
if(mytime.getDay()==0)
week="日";
if(mytime.getDay()==1)
week="一";
if(mytime.getDay()==2)
week="二";
if(mytime.getDay()==3)
week="三";
if(mytime.getDay()==4)
week="四";
if(mytime.getDay()==5)
week="五";
if(mytime.getDay()==6)
week="六";
document.write(""+mytime.getYear()+"年&nbsp;"+mymonth+"月"+mytime.getDate()+"日&nbsp;&nbsp;[ 星期"+week+"]");
}
//-->

function Menu(obj)
{	
	var tb=document.getElementById("ShowMenu");
	for(i=0;i<8;i++)
	{
		if(i % 2 ==1)
		{
			tb.rows[i].className="MenuHide";
		}
	}
	
	if(obj.className="MenuTitle" )
	{ 
		if(tb.rows(obj.rowIndex+1).className=="MenuShow")
		{
			tb.rows(obj.rowIndex+1).className="MenuHide";
		}
		else
		{
			tb.rows(obj.rowIndex+1).className="MenuShow";
		}
	}
}

//function ShowDialog(url) { 
//var iWidth=600; //窗口宽度
//var iHeight=700;//窗口高度
//var iTop=(window.screen.height-iHeight)/2;
//var iLeft=(window.screen.width-iWidth)/2;
//window.open(url,"cartwindow","scrollbars=yes,toolbar=no,location=no,direction=no,resizeable=no,width="+iWidth+",height="+iHeight+",top="+iTop+",left="+iLeft);}
