// SEARCH // var myHosts = ''; var srhActBgColor = 'url('+myHosts+'/mainImage/srhAct.png)'; var srhItemBgColor = 'url('+myHosts+'/mainImage/srhBtn.png)'; var srhItemOnColor = '#FAF7AB'; function bgc(num,status){ bgBox = document.getElementById('srhItem'+num).style; fra = document.getElementById('fra').value; if(fra != num){ if(status == 1){ bgBox.backgroundImage = srhItemOnColor; }else{ bgBox.backgroundImage = srhItemBgColor; } } } function srh(num,items){ divBox = document.getElementById('srhItem'+num).style; divAct = document.getElementById('srhAct'); values = document.getElementById('srhB'); txtBox = document.getElementById('txt'); fra = document.getElementById('fra'); numInt = parseInt(num); for (i=1; i<11; i++){ //検索BOX数 if(i != num){ document.getElementById('srhItem'+i).style.background = srhItemBgColor; } } divBox.background = srhActBgColor; fra.value = num; srhBoxM =document.getElementById('sBox').style; srhBoxG = document.getElementById('sBoxG').style; if(num == 7){ srhBoxG.display = 'block'; srhBoxM.display = 'none'; }else{ srhBoxG.display = 'none'; srhBoxM.display = 'block'; if(num == 1){ divAct.action = myHosts+'/new/search/'; txtBox.style.background = '#FFFFFF'; }else if(num == 2){ divAct.action = myHosts+'/tips/search/'; txtBox.style.background = '#FFFFFF'; }else if(num == 3){ divAct.action = myHosts+'/dictionary/'; txtBox.style.background = '#FFFFFF'; }else if(num == 4){ divAct.action = myHosts+'/tdb/search/'; txtBox.style.background = '#FFFFFF'; }else if(num == 5){ divAct.action = myHosts+'/stock/search/'; txtBox.style.background = '#FFFFFF'; }else if(num == 6){ divAct.action = myHosts+'/stock/'; txtBox.style.background = '#FFFFFF'; }else if(num == 8){ divAct.action = myHosts+'/release/search/'; txtBox.style.background = '#FFFFFF'; }else if(num == 9){ divAct.action = myHosts+'/cat/search/'; txtBox.style.background = '#FFFFFF'; }else if(num == 10){ divAct.action = myHosts+'/map/'; txtBox.style.background = 'url('+myHosts+'/mainImage/mapInfoBk.gif)'; txtBox.style. backgroundPosition = 'right'; }else{ divAct.action = myHosts+'/search/'; } values.value = items+' 検索'; } } // END SEARCH