//form input areaの初期値を消す

function formClear(targetElement){

	if(targetElement.value == targetElement.defaultValue){

		targetElement.value = "";

	}

}





//マイページPOPUP

function blankWindow(url) {

 sealWin=window.open(url,"win",'toolbar=1,location=0,directories=0,status=0,menubar=1, scrollbars=yes,resizable=yes,width=850,height=610,top=10,left=10');

	sealWin.focus();

}






function productSortChangeSelectUrl(){
  mySelect = document.PublicProductSortChangeForm.productSortChangeSelect.selectedIndex;
  location.href = document.PublicProductSortChangeForm.productSortChangeSelect.options[mySelect].value;
}



// フリーワード検索時、エンターキーでのsubmitを防ぐ（ラジオボタン(上記関数)でsubmit先を切り替える必要がある為）
function enterBtnCheck(e) {
    if (!e) var e = window.event;
    if(e.keyCode == 13){
        changeAction();
    }
}

function category_select(obj) {
    obj = document.categoly.select;

    index = obj.selectedIndex;
    if (index != 0){
        id = obj.options[index].value;
		switch (id){
			case "all":	//総合ランキング
		        location.href = "ranking_list.php";
			break;
			default:
		        location.href = "ranking_list.php?category_id="+id+"&category_layer=1";
			break;
		}
    }
}

