<!--
			var loaded=false

			PreLoader('ImgObjectBlank','images/icon_blank.gif');

			PreLoader('ImgCEMProfessionalServiceOn','MainButton/CHMenuProfessionalServiceOn.gif');
			PreLoader('ImgCEMProfessionalServiceOff','MainButton/CHMenuProfessionalServiceOff.gif');
			PreLoader('ImgCEMCompanyOn','MainButton/CHMenuCompanyOn.gif');
			PreLoader('ImgCEMCompanyOff','MainButton/CHMenuCompanyOff.gif');
			PreLoader('ImgCEMContactUsOn','MainButton/CHMenuContactUsOn.gif');
			PreLoader('ImgCEMContactUsOff','MainButton/CHMenuContactUsOff.gif');

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

				function CheckAdminForm () {
					var errorMsg = "";
					if (document.SignatureAdminForm.rSignature_Name.value==""){
						errorMsg += "\n 請填留言管理簽名... \n";
					}
					if (errorMsg != ""){
						msg = "____________________________________\t\n\n";
						errorMsg += alert(msg + errorMsg + msg + "\n");
						return false;
					}
					document.SignatureAdminForm.action = "default.asp?f=Admin&Option=ContactsInquiry"
					document.SignatureAdminForm.target = "_self";
					return true;
				}

			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 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")
				}
			}

			function objectTabDisplayCtrl(objNeme,displayStyle){
						var TabObj = document.getElementById(objNeme);
						TabObj.style.display = displayStyle;
			} 
			
			function WebmapDisplayTabCtrl(objNeme1,displayStyle1,objNeme2,displayStyle2){
						if(objNeme1 != ""){
						var TabObj1 = document.getElementById(objNeme1);
						TabObj1.style.display = displayStyle1;
						}
						if(objNeme2 != ""){
						var TabObj2 = document.getElementById(objNeme2);
						TabObj2.style.display = displayStyle2;
						}
			} 
		
			function changeSelectTable(selectTableId,tabNumber) {
				// INITIAL SELECT TABLE HIDDEN
				
				for (i=1;i<tabNumber+1;i++){ 
				document.getElementById('selectTable_'+i).className='selectTableStyleOff';
				document.getElementById('selectTable_'+i+'_head').style.backgroundColor='BFBFBF';
				document.getElementById('selectTable_'+i+'_Issus').style.display='none';
				}

				// SET SELECT TABLE ON-BLOCK
				document.getElementById(selectTableId).className='selectTableStyleOn';
				document.getElementById(selectTableId+'_head').style.backgroundColor='FFCC77';
				document.getElementById(selectTableId+'_Issus').style.display='block';
			}
			
			function changeSelectHorizontalTable(selectTableId,tabNumber) {
				// INITIAL SELECT TABLE HIDDEN
				
				for (i=1;i<tabNumber+1;i++){ 
				document.getElementById('selectHorizontalStyle_'+i).className='selectHorizontalStyleOff';
				document.getElementById('selectHorizontalStyle_'+i+'_head').style.backgroundColor='BFBFBF';
				document.getElementById('selectHorizontalStyle_'+i+'_Issus').style.display='none';
				}

				// SET SELECT TABLE ON-BLOCK
				document.getElementById(selectTableId).className='selectHorizontalStyleOn';
				document.getElementById(selectTableId+'_head').style.backgroundColor='FFCC77';
				document.getElementById(selectTableId+'_Issus').style.display='block';
			}

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

			function fadeObjectHighligh(objNeme,speedValue) {
				// speedValue = onMouseOver Opacity speed Value E.G. = 5
				fadeTheoObject=document.getElementById(objNeme);
				highlighting=setInterval("highlighRedirect(fadeTheoObject)",speedValue)
			}
			
			function fadeObjectLowligh(objNeme,opacityValue) {
				// opacityValue = onMouseOut Opacity Value
				clearInterval(highlighting)
				fadeTheoObject=document.getElementById(objNeme);
				fadeTheoObject.filters.alpha.opacity=opacityValue
			}
			
			function highlighRedirect(fadeCur) {
				if (fadeCur.filters.alpha.opacity<100)
				fadeCur.filters.alpha.opacity+=5
				else if (window.highlighting)
				clearInterval(highlighting)
			}
			
			 // Description.. javascript:openWindow('Url.asp',500,300,0,0,0,0);
			getNewWindow=null;
			function openWindow(ContentUrl,theWidth,theHeight,theScroll,theStatusbar,theMenubar,theResizable) {

			        if(getNewWindow==null){
								var CoordX = (screen.width / 2) - (theWidth / 2);
								var CoordY = (screen.height / 2) - (theHeight / 2);
								getNewWindow = window.open(ContentUrl, 'PMD', 'Left='+CoordX+',Top='+CoordY+',Width='+theWidth+',Height='+theHeight+',ScrollBars='+theScroll+',Status='+theStatusbar+',Menubar='+theMenubar+',Resizable='+theResizable+'');
			        }else{
			                try{
			                        getNewWindow.status;
			                        alreadyOpenMsg = "_______________________________________________________\t\n";
			                        alert(alreadyOpenMsg + "\n 該子視窗已經打開, 若將重新開啟請先關閉子視窗 !\n 檢查一下是否隱藏到背後了 ! \n" + alreadyOpenMsg + "\n");
			                }catch(e){
			                        getNewWindow=null;
							   openWindow(ContentUrl,theWidth,theHeight,theScroll,theStatusbar,theMenubar,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 AreYouDel(ItemNAMEs) {
				return(confirm('\n請確認指令 !\n確定進行刪除工作 ?\n'));
			}
			
			function get_support(strName,strdoname) {
				top.location.href='mailto:' + strName + '@' + strdoname
			}
			
			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 GotoUrl(linkObjValue) {
				top.location.href = linkObjValue;
			}

			// dropShowSubmenu JScript
			var disappearDelay=600  //menu disappear speed onMouseout (in miliseconds)
			var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)
			var ie4=document.all
			var ns6=document.getElementById&&!document.all
			
			if (ie4||ns6)
			document.write('<div id="dropSubmenuStyle" style="visibility:hidden;width: 100px" onMouseover="clearDropHidemenu()" onMouseout="dynamichide(event)"></div>')
			
			function getposOffset(what, offsettype){
			var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
			var parentEl=what.offsetParent;
			while (parentEl!=null){
			totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
			parentEl=parentEl.offsetParent;
			}
			return totaloffset;
			}
			
			
			function showhide(obj, e, visible, hidden, menuwidth){
			if (ie4||ns6)
			dropmenuobj.style.left=dropmenuobj.style.top=-500
			dropmenuobj.widthobj=dropmenuobj.style
			dropmenuobj.widthobj.width=menuwidth
			if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
			obj.visibility=visible
			else if (e.type=="click")
			obj.visibility=hidden
			}
			
			function iecompattest(){
			return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
			}
			
			function clearBrowserEdge(obj, whichedge){
			var edgeoffset=0
			if (whichedge=="rightedge"){
			var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
			dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
			if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
			edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
			}
			else{
			var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
			var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
			dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
			if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
			edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
			if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
			edgeoffset=dropmenuobj.y
			}
			}
			return edgeoffset
			}
			
			function popUlateMenu(what){
			if (ie4||ns6)
			dropmenuobj.innerHTML=what.join("")
			}
			
			
			function dropShowSubmenu(obj, e, menucontents, menuwidth){
			if (window.event) event.cancelBubble=true
			else if (e.stopPropagation) e.stopPropagation()
			clearDropHidemenu()
			dropmenuobj=document.getElementById? document.getElementById("dropSubmenuStyle") : dropSubmenuStyle
			popUlateMenu(menucontents)
			
			if (ie4||ns6){
			showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
			dropmenuobj.x=getposOffset(obj, "left") -3
			dropmenuobj.y=getposOffset(obj, "top") -2
			dropmenuobj.style.left=dropmenuobj.x-clearBrowserEdge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
			dropmenuobj.style.top=dropmenuobj.y-clearBrowserEdge(obj, "bottomedge")+"px"
			}
			
			return clickReturnValue()
			}
			
			function clickReturnValue(){
			if (ie4||ns6) return false
			else return true
			}
			
			function contains_ns6(a, b) {
			while (b.parentNode)
			if ((b = b.parentNode) == a)
			return true;
			return false;
			}
			
			function dynamichide(e){
			if (ie4&&!dropmenuobj.contains(e.toElement))
			dropHideSubmenu()
			else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
			dropHideSubmenu()
			}
			
			function hidemenu(e){
			if (typeof dropmenuobj!="undefined"){
			if (ie4||ns6)
			dropmenuobj.style.visibility="hidden"
			}
			}
			
			function dropHideSubmenu(){
			if (ie4||ns6)
			delayhide=setTimeout("hidemenu()",disappearDelay)
			}
			
			function clearDropHidemenu(){
			if (typeof delayhide!="undefined")
			clearTimeout(delayhide)
			}


			// 跑馬燈 JScript
			function HScroll() {
			this.name =" HScroll";
			this.item = new Array();
			this.itemcount = 0;
			this.currentspeed = 0;
			this.scrollspeed = 50;
			this.pausedelay = 1000;
			this.pausemouseover = false;
			this.stop = false;
			this.type = 1;
			this.height = 100;
			this.width = 450;
			this.stopHeight=0;
			
			this.add =function () {
				var text = arguments[0];
				this.item[this.itemcount] = text;
				this.itemcount = this.itemcount + 1;
			};
			
			this.start = function () {
				this.display();
				this.currentspeed = this.scrollspeed;
				setTimeout(this.name+'.scroll()',this.currentspeed);
			};
			
			this.display =function () {
				document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
				for(var i = 0; i < this.itemcount; i++) {
					if ( this.type == 1) {
						document.write('<div id="'+this.name+'item'+i+'"style="left:0px;width:'+this.width+';position:absolute;top:'+(this.height*i+1)+'px;">');
						document.write(this.item[i]);
						document.write('</div>');
					} else if ( this.type == 2 ) {
						document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i+1)+'px;width:'+this.width+';position:absolute;top:0px;">');
						document.write(this.item[i]);
						document.write('</div>');
					}
				}
				document.write('</div>');
			};
			
			this.scroll = function () {
				this.currentspeed = this.scrollspeed;
				if ( !this.stop ) {
					for (i = 0; i < this.itemcount; i++) {
						obj = document.getElementById(this.name+'item'+i).style;
						if ( this.type == 1 ) {
							obj.top = parseInt(obj.top) - 1;
							if ( parseInt(obj.top) <= this.height*(-1) ) obj.top = this.height * (this.itemcount-1);
							if ( parseInt(obj.top) == 0 || ( this.stopHeight > 0 && this.stopHeight - parseInt(obj.top) == 0 ) ) this.currentspeed = this.pausedelay;
						} else if ( this.type == 2 ) {
							obj.left = parseInt(obj.left) - 1;
							if ( parseInt(obj.left) <= this.left*(-1) ) obj.left = this.left* (this.itemcount-1);if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;
						}
					}
				}
				window.setTimeout(this.name+".scroll()",this.currentspeed);
			};
			
			this.onmouseover = function () {
				if ( this.pausemouseover ) {
					this.stop = true;
				}
			};
			
			this.onmouseout = function () {
				if ( this.pausemouseover ) {
					this.stop = false;
				}
			};
			
			} // 跑馬燈.END
						
			//-->