function tabChange(){
var tabobj = document.getElementsByTagName('a');
for(var i=0; i < tabobj.length; i++){
if(tabobj[i].className == 'tab_A'){
	tabobj[i].onclick = function(){
	tab_h('tabA','url(/img/search_01_on.jpg)');
	tab_b('tab1');
	return false;
	}
}else if(tabobj[i].className == 'tab_B'){
	tabobj[i].onclick = function(){
	tab_h('tabB','url(/img/search_02_on.jpg)');
	tab_b('tab2');
	return false;
	}
}else if(tabobj[i].className == 'tab_C'){
	tabobj[i].onclick = function(){
	tab_h('tabC','url(/img/search_03_on.jpg)');
	tab_b('tab3');
	return false;
	}
}
}
}
function addEvent(init) {
	if (window.addEventListener) {
		window.addEventListener("load",init, false);
	} else if (window.attachEvent) {
		window.attachEvent("onload",init);
	}
}
addEvent(function(){ tabChange(); tab_h('tabA','url(/img/search_01_on.jpg)'); tab_b('tab1'); });
function tab_h(tabh,tabi) {
	document.getElementById('tabA').style.backgroundImage = 'url(/img/search_01_off.jpg)';
	document.getElementById('tabB').style.backgroundImage = 'url(/img/search_02_off.jpg)';
	document.getElementById('tabC').style.backgroundImage = 'url(/img/search_03_off.jpg)';
if(tabh) {
	document.getElementById(tabh).style.backgroundImage = tabi;
	}
}
function tab_b(tabb) {
	document.getElementById('tab1').style.display = 'none';
	document.getElementById('tab2').style.display = 'none';
	document.getElementById('tab3').style.display = 'none';
if(tabb) {
	document.getElementById(tabb).style.display = 'block';
	}
}
