// JavaScript Document
function change(obj1,obj2) //選單功能
       {
           vv = obj1.options[obj1.selectedIndex].value;
           value_temp = "";
           text_temp = "";;
           len = obj2.options.length;
           for(i=0;i<=len;i++)
           {
                obj2.options[0]=null;                                             
           }
           for(i=0;i<aryv.length;i++)
           {
                if(aryv[i].substring(0,2) == vv || obj1.selectedIndex==0)
                {                                                                      
                     value_temp +=aryv[i].substring(3,5) + ",";                                                       
                     text_temp += aryt[i] + ",";                                                                 
                }                                             
                
           }
           bound = obj2.options.length;                                                                                          
           value_temp = value_temp.split(",");
           text_temp = text_temp.split(",");     
                                                   
           for(k=0;k<value_temp.length-1;k++)
           {                                        
                temp= new Option(text_temp[k],value_temp[k]+","+text_temp[k]);                                                  
                obj2.options[k]=temp;
           }
          
      } 
var aryv = new Array();
var aryt = new Array();	  

// QA 展開功能

imgfile = new Array(2);			
imgfile[0] = "../images/boder/qa1.gif"
imgfile[1] = "../images/boder/qa2.gif"
function showhide(what){
	imgobj = new Array(10);
	imgobj[1] = document.qa1;
	imgobj[2] = document.qa2;
	imgobj[3] = document.qa3;
	imgobj[4] = document.qa4;
	imgobj[5] = document.qa5;
	imgobj[6] = document.qa6;
	imgobj[7] = document.qa7;
	imgobj[8] = document.qa8;
	imgobj[9] = document.qa9;
	imgobj[10] = document.qa10;
	imgobj[11] = document.qa11;
	imgobj[12] = document.qa12;
	var subs = document.getElementById("q"+what).style;
	if(subs.display=='none') {// 若物件為隱藏則設回預設值
		subs.display=''; // 預設值為'inline'										
		imgobj[what].src = imgfile[1];					 
	}
	else{
		subs.display='none'; // 若物件不為隱藏則隱藏
		imgobj[what].src = imgfile[0];
	}
}


