	var bV=parseInt(navigator.appVersion);
		var NS4=(document.layers) ? true : false;
		var IE4=((document.all)&&(bV>=4))?true:false;
		var ver4 = (NS4 || IE4) ? true : false;
		var a=0;
		function expandIt(){return}
		function expandAll(){return}
		function nomsg(){self.status="";}

		if(ver4){
		  document.write("<SCR"+"IPT LANGUAGE=\"JavaScript\" SRC=\"/public/dropdown.js\"></SCR"+"IPT>");
		}

		if(NS4){
		  firstEl = "elOneParent";
		  firstInd = getIndex(firstEl);
		  showAll();
		  arrange();
	   }
                
				function Oenpwindows(no) 
				{
				addr="index3show.asp?id="+no
				newwindow = window.open(addr,"留言內容","toolbar=no,status=no",width=100 ,height=100);
				}




                 function isReady()
                    {
                    if (isFilled(document.post.Name) == false ) 
                       {
                        alert("請輸入您的大名！");
                        document.post.Name.focus();
                        return false;
                       }
                       
                    if (isEmail(document.post.Email) == false )
                       {
                        alert("請輸入合法的電子信箱！")
                        document.post.Email.focus();
                        return false;
                       }
                       
                    if ( isFilled(document.post.Subject) == false) 
                       {
                        alert("請輸入留言標題！")
                        document.post.Subject.focus();
                        return false;
                       }
                       
                    if ( isFilled(document.post.message) == false)
                       {
                        alert("您的留言沒有內容，\n請再檢查一遍！")
                        document.post.message.focus();
                        return false;
                       }
                    
                    return true;
                    }

                 function isEmail(elm) 
                    {
                     if ( elm.value.indexOf("@") != "-1" && elm.value.indexOf(".") != "-1" && elm.value != "")               
                        return true;
                     else
                        return false;
                    }
                 function isFilled(elm) 
                    {
                     if ( elm.value == "" || elm.value == null )
                        return false;
                     else
                        return true;
                    } 
                
        function load()
        {
		
		expandIt1('el41'); 
        }
        
		function expandIt1(el) {
		if (!ver4) return;
		if (IE4) {expandIE1(el)} else {expandNS1(el)}
			}

			function expandIE1(el) { 
			 
			  whichEl = eval(el + "Child");
		      whichEl.style.display = "none";
			   //whichIm = event.srcElement;
			   
				
				
			   if (whichEl.style.display == "none") {
				//whichEl.style.display = "none";
				whichEl.style.display = "block";
				//whichIm.src = "include/images/line.gif";
				//alert("下拉");		
			   }
			   else {
				//whichEl.style.display = "block";
				whichEl.style.display = "none";
				//whichIm.src = "include/images/line.gif";
				//alert("上提");
			   }
		}	
	
function isReadyuser(){
        if (isFilled(document.login.id) == false ) {
                alert("請輸入ID！");
                document.login.id.focus();
                return false;
        }
      
        if ( isFilled(document.login.psw) == false) {
                alert("請輸入密碼！")
                document.login.psw.focus();
                return false;
        }
 
        
        return true;
       
}

function isFilled(elm) {
        if ( elm.value == "" || elm.value == null )
                return false;
        else
                return true;
}

//開新視窗
function newwindow(url,px,py,scollbar)
{
	if (scollbar=='')
	{
		scollbar='auto';
	}
	var x,y
	if (screen.width>640)
	{
		x=(screen.width-640)/2;
		y=(screen.height-480)/2;
	}
	else
	{
		x=0;
		y=0;
	}
	var gt = unescape('%3e');
	var popup = null;
	var over = "Launch Pop-up Navigator";
	popup = window.open('', 'popupnav', 'width=' +px +',height=' +py +',scrollbars=' +scollbar +',resizable=0');
	popup.moveTo(x,y);
	popup.focus();
	if (popup != null)
	{
		if (popup.opener == null)
		{
			popup.opener = self;
		}
	popup.location.href = url;
	}
}