// JavaScript Document
function g(id)
{
	return document.getElementById(g);	
}

function WriteDate()
{
   var enabled = 0;   today = new Date();
   var day;   var date;
      var centry ;
   if(today.getDay()==0)     day = "星期日"
   if(today.getDay()==1)     day = "星期一"
   if(today.getDay()==2)     day = "星期二"
   if(today.getDay()==3)     day = "星期三"
   if(today.getDay()==4)     day = "星期四"
   if(today.getDay()==5)     day = "星期五"
   if(today.getDay()==6)     day = "星期六"
   //document.fontColor = "000000";
      centry="";
      if  (today.getYear()<2000 )  centry = "19" ;
      date1 = centry + (today.getYear())  + "年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日  " ;
   date2 = "" +  day ;
   document.write( date1+date2);

}

function OpenMax(filename)
{
var w,h,s;
	w = screen.availWidth-0;
	h = screen.availHeight-1;
	s = "directories=no,left=－4,top=－4,location=no,status=1,menubar=0,fullscreen=0,resizable=1,scrollbars=auto,toolbar=no,width=" + w + ",height=" + h;
	window.open(filename,"",s);
}


//页面脚本
function secBoard(n)
{
   for(i=0;i<g("mainTable").tBodies.length;i++)
	{
      document.g('mainTable').tBodies[i].style.display="none";
      document.g('mainTable').tBodies[n].style.display="block";
	}
}

function showmenu(n)
{
	for(i=1;i<=9;i++)	
	{
	    document.getElementById("menu"+i).className="off";
		document.getElementById("menulist"+i).style.display="none";
	}
		document.getElementById("menu"+n).className='on';		
	document.getElementById("menulist"+n).style.display="block";
}

function openlink(objlink)
{  
 	if(objlink.options[objlink.selectedIndex].value=="")  
	{    return;  }
	window.open(objlink.options[objlink.selectedIndex].value)
}

function showhiden(num,allnum,headstr,liststr,mover,mout)
{
	for(i=1;i<=allnum;i++)
	{
		document.getElementById(liststr+i).style.display="none";
		document.getElementById(headstr+i).className=mout;
	}
		document.getElementById(liststr+num).style.display="block";
		document.getElementById(headstr+num).className=mover;
}

function moverbg(obj)
{
	obj.className="menuover";
}
function moutbg(obj)
{
	obj.className="";
}

