<!--
var loaded=false

		/*PreLoader('ChineseMenuArrowOFF','../images/Arrow_B100_right.gif');
		PreLoader('ChineseMenuArrowON','../images/Arrow_Y100_right.gif');
		
		PreLoader('MenuArrowOFF','images/Arrow_B100_right.gif');
		PreLoader('MenuArrowON','images/Arrow_Y100_right.gif');
		PreLoader('MenuArrowOPEN','images/Arrow_M100_right.gif');
		*/


function jumpTo(s) {
	if (s.selectedIndex != 0) top.location.href = s.options[s.selectedIndex].value;return 1;
}

function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = "ie";

	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v==4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ie = ((this.b=="ie" && this.v>=4)||(this.b=="ns" && this.v>=5))
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	this.moz = (this.b=="ns" && this.v>=5)

	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)

	if(!this.ns) this.ie=true;
}

is = new BrowserCheck()

// Show/Hide script
function show_Object(id) { 
 if (loaded)
 {
    if (is.ns) document.layers[id].visibility = "show"
        else if (is.ie4) document.all[id].style.visibility = "visible"
		else if (is.ie)	document.getElementById(id).style.visibility = 'visible'
 }
}


function PreLoader(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}

function changeImage(layer,imgName,imgObj) {
	if (document.images) {
		if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
		else document.images[imgName].src = eval(imgObj+".src")
	}
}

 // Description.. javascript:openWindow('Url.asp',560,360,1,0,0,0);
function openWindow(ContentUrl,theWidth,theHeight,theScroll,theStatus,theMenubar,theResizable) {
	var CoordX = (screen.width / 2) - (theWidth / 2);
	var CoordY = (screen.height / 2) - (theHeight / 2);
	var openNewWindow = window.open(ContentUrl, 'PMD', 'Left='+CoordX+',Top='+CoordY+',Width='+theWidth+',Height='+theHeight+',ScrollBars='+theScroll+',Status='+theStatus+',Menubar='+theMenubar+',Resizable='+theResizable+'');
}
// Description.. javascript:PopupModalDialog('Url.asp',700,520,1);
function PopupModalDialog(ContentUrl,theWidth,theHeight) {
	var showWindow = window.showModalDialog (ContentUrl,'PMD','dialogWidth='+theWidth+'px;dialogHeight='+theHeight+'px;Scrollbars=Yes;Center=1;Status=No;Help=No');
}

function favority(favName,favUrl) {

	var myWebName;
	var myAddress;
	myWebName = favName;
	myAddress = favUrl;

	if (navigator.appName!="Netscape"){
	window.external.AddFavorite(myAddress, myWebName);
	}else{
	window.location = myAddress;
	}
}

function getMmColor(theMmID,theMmColor) {
	document.getElementById(theMmID).style.backgroundColor=theMmColor;
}



function doButtonStyle(ButtonId,changeStyle,ButtonTableId,ButtonCss) {

	if(ButtonCss!=null&&ButtonCss!='')
	{document.getElementById(ButtonTableId).className=ButtonCss;}
		
	if (changeStyle == 'Over') 
		{
		document.images[ButtonId].src = Button_On.src;
		}
	else	if (changeStyle == 'Down') 
		{
		document.images[ButtonId].src = Button_On.src;
		}	
	else	// Out
		{
		document.images[ButtonId].src = Button_Off.src;
		}

}


function AreYouDel(ItemNAMEs) {
	return(confirm('\n請確認指令 !\n確定進行刪除工作 ?\n'));
}

function get_support(strName,strdoname) {
	top.location.href='mailto:' + strName + '@' + strdoname
}

function high(fadewhich) {
	theobject=fadewhich
	highlighting=setInterval("highlightit(theobject)",50)
}

function low(fadewhich) {
	clearInterval(highlighting)
	fadewhich.filters.alpha.opacity=60
}

function highlightit(fadeCur) {
	if (fadeCur.filters.alpha.opacity<100)
	fadeCur.filters.alpha.opacity+=5
	else if (window.highlighting)
	clearInterval(highlighting)
}
//-->