//　　调用例子程序： 
//　　<script language="Javascript"> 
//　　document.write("今天的日期是："+showdate()+" "+showweek()) 
//　  </script> 

function showweek() //显示中文星期 
{
	return '星期'+'日一二三四五六'.charAt(new Date().getDay());
}

function showdate() //显示系统日期
{
	return new Date().toLocaleDateString();
}


var Open = "";
var Closed = "";
var layer_count;

function preload(){
	if(document.images){
		Open = new Image(16,13)    
		Closed = new Image(16,13)
		Open.src = "./images/open.gif"
		Closed.src = "./images/closed.gif"
	}
}

function showhide(what,what2){
	if (what.style.display=='none'){
		what.style.display='';
		what2.src=Open.src;
		hideall(what,1,10);
	}else{
		what.style.display='none'
		what2.src=Closed.src
		hideall(what,1,10);
	}
}

function hideall(what, start,end){
	for(i=start; i<=end; i++){
		whichEl = eval("menu"+i+"outline");
		if (whichEl != what){ 
			whichEl.style.display = 'none';
			whichImg = eval("menu"+i+"sign");
			whichImg.src=Closed.src
			//alert("menu"+i+"outline");
		}
	}
}

function layervib(type,num){
	getCount();
	var H=type;
	var temp=(H='visible'?'hidden':'visible')
	for(var i=0;i<layer_count;i++){
		var E=eval('document.all.layer'+i+'.style');
		var H=eval(i);
		if(i==num){E.visibility=type}else{E.visibility=temp};
	}
}

function FW_startTimeout()
{
	fwStart = new Date();
	fwDHFlag = true;
	fwHideMenuTimer = setTimeout("fwDoHide()", 4000);
}

function fwDoHide()
{
	if (!fwDHFlag) return;
	var elapsed = new Date() - fwStart;
	if (elapsed < 4000) {
		fwHideMenuTimer = setTimeout("fwDoHide()", 4100-elapsed);
		return;
	}
	fwDHFlag = false;
	layervib('visible',layer_count++);
}
	preload();	

var onecount;
onecount=0;
subcat = new Array();

onecount=0;

function changelocation(locationid)
{
document.myform.SmallClassID.length = 0;

var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{

document.myform.SmallClassID.options[document.myform.SmallClassID.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
//-------------------
function fillnum()
{ //document.myform.num.value=document.myform.Select3.selectedIndex;

document.myform.num.value="3"
}


var version = "other"
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";


function marquee1()
{
if (version == "e4")
{
document.write("<marquee style='BOTTOM: 0px; FONT-WEIGHT: 100px; HEIGHT:180px;  TEXT-ALIGN: left; TOP: 0px' id='news' scrollamount='1' scrolldelay='10' behavior='loop' direction='up' border='0' onmouseover='this.stop()' onmouseout='this.start()'>")
}
}

function marquee2()
{
if (version == "e4")
{
document.write("</marquee>")
}
}

