function focusThis(object){
	if (object.value == "検索ワード"){
		object.value="";
	}
	object.style.backgroundColor = "#fee";
	object.style.borderStyle = "inset";
	object.style.borderWidth = "1px";
}
function blurThis(object){
	if (object.value == ""){
		object.value = "検索ワード";
	}
	object.style.backgroundColor = "transparent";
	object.style.borderStyle = "solid";
	object.style.borderWidth = "1px";
	object.style.borderColor = "#a5acb2";
}
function goToList(){
	var uniKeyword = encodeURI(document.getElementById("keyw").value);
	if(document.getElementById("keyw").value != "検索ワード"){
		var linkUrl = "/list.html?type=" + document.getElementById("tp").options[document.getElementById("tp").selectedIndex].value + "&keyword=" + uniKeyword;
		window.location.href = linkUrl;
	}
}
function goToListFF(keyw){	// Firefox タイムラグ設けないと location.href 動作しない
	var uniKeyword = encodeURI(keyw);
	if(keyw != "検索ワード"){
		var linkUrl = "/list.html?type=" + document.getElementById("tp").options[document.getElementById("tp").selectedIndex].value + "&keyword=" + uniKeyword;
		setTimeout(function(){
			window.location.href = linkUrl;
		}, 1)
	}
}
function enterCheck(){
	if (window.event.keyCode == 13) {
  	goToList();
  }
}
function enterCheckFF(kc){	// Firefox keyCode の取得タイミングが違う
  if (kc == 0x0d){
    var keyw = document.getElementById("keyw").value;
    goToListFF(keyw);
  }
}