function Schange(elm){

    var method = elm;


    if(method == 'm') {
       document.srh.k.name = 'k';
	   document.srh.SRHB.title = '得奬者名搜尋';
	   document.srh.SRHB.value = '得奬者名搜尋';
	   document.srh.hl.value = '0';	
	   document.srh.t.value = 'm';
	   document.getElementById("srh").action = 'http://www.taiwanart.org.tw/search/?t=m&';
	   document.getElementById("srh").target = '_parent';
	   
	   document.getElementById("ME").style.background = "#FFCC33";
	   document.getElementById("GA").style.background = "";
       document.getElementById("SE").style.background = "";
	   document.getElementById("img").style.display = 'none';
	
	
    }else if(method == 'S') {
       document.srh.k.name = 'q';
	   document.srh.SRHB.title = '網頁搜尋';
	   document.srh.SRHB.value = '網頁搜尋';
	   document.srh.hl.value = 'zh-TW';
	   document.srh.t.value = 'w';
	   document.getElementById("srh").action = 'http://www.google.com.tw/search';
	   document.getElementById("srh").target = '_blank';
	   
       
	   document.getElementById("SE").style.background = "#FFCC33";
	   document.getElementById("ME").style.background = "";
       document.getElementById("GA").style.background = "";
	   document.getElementById("img").style.display = 'block';
	 
	 
	}else if(method == 'g') {
       document.srh.k.name = 'k';
	   document.srh.SRHB.title = '作品名稱搜尋';
       document.srh.SRHB.value = '作品名稱搜尋';
	   document.srh.hl.value = '0';
	   document.srh.t.value = 'g';
       document.getElementById("srh").action = 'http://www.taiwanart.org.tw/search/';
	   document.getElementById("srh").target = '_parent';
	   
	   document.getElementById("GA").style.background = "#FFCC33";
	   document.getElementById("ME").style.background = "";
	   document.getElementById("SE").style.background = "";
	   document.getElementById("img").style.display = 'none';
	 
     }

}


function GoS(){
if(document.srh.k.value!=""){
document.srh.submit();
}
}


function showthis() { 

document.getElementById("img").style.display = "none";
document.getElementById("ME").style.background = "#FFCC33";

document.srh.k.name = 'k';
document.srh.hl.value = '0';
document.srh.t.value = 'm';
document.srh.SRHB.title = '得奬者名搜尋';
document.srh.SRHB.value = '得奬者名搜尋';
document.getElementById("srh").action = 'http://www.taiwanart.org.tw/search/';
document.getElementById("srh").target = '_parent';

}






function lielm(id,status){
elm = document.getElementById(id).style;

if(status == 1){
elm.background = "#FFCC33";
}else{
elm.background = "";
}
}