<!--
			var loaded=false

			PreLoader('Cf_mArrowOn','Button/menuArrowOn.gif');
			PreLoader('Cf_mArrowOff','Button/menuArrowOff.gif');

			PreLoader('Ctf_HomeOn','Button/mcTwButtonHomeOn.gif');
			PreLoader('Ctf_HomeOff','Button/mcTwButtonHomeOff.gif');
			PreLoader('Ctf_MaintenanceOn','Button/mcTwButtonMaintenanceOn.gif');
			PreLoader('Ctf_MaintenanceOff','Button/mcTwButtonMaintenanceOff.gif');
			PreLoader('Ctf_PUOEProtectionOn','Button/mcTwButtonPUOEProtectionOn.gif');
			PreLoader('Ctf_PUOEProtectionOff','Button/mcTwButtonPUOEProtectionOff.gif');
			PreLoader('Ctf_CompanyOn','Button/mcTwButtonCompanyOn.gif');
			PreLoader('Ctf_CompanyOff','Button/mcTwButtonCompanyOff.gif');
			PreLoader('Ctf_ContactUsOn','Button/mcTwButtonContactUsOn.gif');
			PreLoader('Ctf_ContactUsOff','Button/mcTwButtonContactUsOff.gif');

			PreLoader('Cf_HomeOn','Button/mcEnButtonHomeOn.gif');
			PreLoader('Cf_HomeOff','Button/mcEnButtonHomeOff.gif');
			PreLoader('Cf_PUOEProtectionOn','Button/mcEnButtonPUOEProtectionOn.gif');
			PreLoader('Cf_PUOEProtectionOff','Button/mcEnButtonPUOEProtectionOff.gif');
			PreLoader('Cf_CompanyOn','Button/mcEnButtonCompanyOn.gif');
			PreLoader('Cf_CompanyOff','Button/mcEnButtonCompanyOff.gif');
			PreLoader('Cf_ContactUsOn','Button/mcEnButtonContactUsOn.gif');
			PreLoader('Cf_ContactUsOff','Button/mcEnButtonContactUsOff.gif');

			// 車型選項
			function showCarModelLister(objBrands,objModels)
			{
				var brandIdx = objBrands.selectedIndex;

			    objModels.length = modelArray[brandIdx].length -1;
			    for (var idx=0; idx<modelArray[brandIdx].length; idx++)
			    {
			      var Model = modelArray[brandIdx][idx];			
			      objModels.options[idx].text = Model.slice (0,Model.indexOf('&&'));
			      objModels.options[idx].value = Model.slice (Model.indexOf('&&')+2,Model.length);
			    }
			    
			    objModels.selectedIndex = 0;
			}


			function SearchForm () {
					var errorMsg = "";
					if (document.SearchSendForm.rSearchValue.value==""){
						errorMsg += "Please input Search keyword... \n";
					}
					if (errorMsg != ""){
						msg = "____________________________________\t\n\n";
						errorMsg += alert(msg + errorMsg + msg);
						return false;
					}
					document.SearchSendForm.action = "default.asp?f=Search"
					document.SearchSendForm.target = "_self";
					return true;
			}
			
			function CheckMemberForm () {
					
					var errorMsg = "";
					var mask=/\w{1,}@.{1,}\.\w{1,}/; 
					
					if (document.MemberDataSendForm.rMemberEmail.value==""){
						errorMsg += " 請填寫 (電子信箱) ... \n";
					}
					
					if (document.MemberDataSendForm.rMemberEmail.value!=""){
						if (!mask.test(document.MemberDataSendForm.rMemberEmail.value)) 
						{ 
						  errorMsg += " 請檢查 (電子信箱格式) ... \n";
						}
					} 				
					
					if (document.MemberDataSendForm.rMemberId.value==""){
						errorMsg += " 請填寫 (登入帳號) ... \n";
					}
					if (document.MemberDataSendForm.rMemberUsername.value==""){
						errorMsg += " 請填寫 (您的姓名) ... \n";
					}
					
					if (document.MemberDataSendForm.rMemberEditorPassword.value=="1"){

						if (document.MemberDataSendForm.rMemberPassword.value==""){
							errorMsg += " 請填寫 (密碼設定) ... \n";
						}						
						if (document.MemberDataSendForm.rMemberConfigPassword.value==""){
							errorMsg += " 請填寫 (確認密碼) ... \n";
						}		
						if (document.MemberDataSendForm.rMemberPassword.value!=document.MemberDataSendForm.rMemberConfigPassword.value){							
							errorMsg += " 請檢查(密碼設定)及(確認密碼)不相同 ... \n";
						}
					}
					if (document.MemberDataSendForm.rMemberConfigSex.value==""){
						errorMsg += " 請選擇 (性別) ... \n";
					}


					if (errorMsg != ""){
						msg = "____________________________________\t\n\n";
						errorMsg += alert(msg + errorMsg + msg);
						return false;
					}
					document.MemberDataSendForm.action = "default.asp?f=MemberRegister"
					document.MemberDataSendForm.target = "_self";
					return true;
			}

											function uuCheckUserID()
											{
												if (document.MemberDataSendForm.rMemberId.value!="") {
												document.FormCheck.theUserID.value=document.MemberDataSendForm.rMemberId.value;
												var theWidth = 300;
												var theHeight = 120;
												var CoordX = (screen.width / 2) - (theWidth / 2);
												var CoordY = (screen.height / 2) - (theHeight / 2);
												var popupWin = window.open('#', 'CheckPreview', 'Left='+CoordX+',Top='+CoordY+',Width='+theWidth+',height='+theHeight+',Resizable=0');
												document.FormCheck.submit()
												}
												else
												{
												msg = "____________________________________\t\n\n";
												alert(msg + "您還沒有輸入檢測的用戶名稱 !\n" + msg + "\n");					
												return false
												}
											}


			function overMenuColor(theMmID) {
							document.getElementById(theMmID).style.backgroundColor='F5F5F5';
							document.images[theMmID].src=Cf_mArrowOn.src
			}
			function outMenuColor(theMmID) {
							document.getElementById(theMmID).style.backgroundColor='EFEFEF';
							document.images[theMmID].src=Cf_mArrowOff.src
			}
			
			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',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 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)
			}
			
// 跑馬燈 JS
function HScroll() {
this.name =" HScroll";
this.item = new Array();
this.itemcount = 0;
this.currentspeed = 0;
this.scrollspeed = 50;
this.pausedelay = 2000;
this.pausemouseover = false;
this.stop = false;
this.type = 1;
this.height = 100;
this.width = 550;
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			
//-->