function commonSearchKey(){
	if(document.commonSearch.qt.value.length == 0){
		alert("商品名や品番など検索したい情報を入力してください。");
		return false;
	} else {
		return true;
	}
}

function setvalue(id,sw){
	if (sw == 'on'){
		if (id.value.indexOf('サイト内検索') > -1) {
			id.value='';
		}
	} else {
		if (id.value == '') {
			id.value = '> サイト内検索';
		}
	}
}

function setvalue_E(id,sw){
	if (sw == 'on'){
		if (id.value.indexOf('search') > -1) {
			id.value='';
		}
	} else {
		if (id.value == '') {
			id.value = '> search';
		}
	}
}

function naviLink(obj_id,flg) {
	if (flg) {
		if(document.all){
			obj_id.parentElement.parentElement.style.backgroundColor = '#4c69af';
		}
		else if(document.styleSheets){
			obj_id.parentNode.parentNode.style.backgroundColor = '#4c69af';
		}
	}
	else {
		if(document.all){
			obj_id.parentElement.parentElement.style.backgroundColor = '#c6d8ea';
		}
		else if(document.styleSheets){
			obj_id.parentNode.parentNode.style.backgroundColor = '#c6d8ea';
		}
	}
}

function naviLink_p(obj_id,flg) {
	if (flg) {
		if(document.all){
			obj_id.parentElement.parentElement.style.backgroundImage = 'url("/common/img/spacer.gif")';
		}
		else if(document.styleSheets){
			obj_id.parentNode.parentNode.style.backgroundImage = 'url("/common/img/spacer.gif")';
		}
	}
	else {
		if(document.all){
			obj_id.parentElement.parentElement.style.backgroundImage = 'url("/common/img/np_nav_bg.gif")';
		}
		else if(document.styleSheets){
			obj_id.parentNode.parentNode.style.backgroundImage = 'url("/common/img/np_nav_bg.gif")';
		}
	}
}