function onloadAction() {
	try{
		document.categoryForm2.categoryList2.selectedIndex =0;
		document.categoryForm3.categoryList3.selectedIndex =0;
	} catch(Exception) {
	}
}

function changeFrame(obj) {
	try{
		if(obj.value=='undefined' || obj.value=='null' || obj.value=='') {
			document.categoryForm1.categoryList1.selectedIndex =-1;
			document.categoryForm2.categoryList2.selectedIndex =0;
			document.categoryForm3.categoryList3.selectedIndex =0;
			return;
		}
		
		miniFrame.location.href = "./" + obj.value + ".html";

		if (obj.name == "categoryList1") {
			document.categoryForm2.categoryList2.selectedIndex =0;
			document.categoryForm3.categoryList3.selectedIndex =0;

		} else if (obj.name == "categoryList2") {
			document.categoryForm1.categoryList1.selectedIndex =-1;
			document.categoryForm3.categoryList3.selectedIndex =0;

		} else if (obj.name == "categoryList3") {
			document.categoryForm1.categoryList1.selectedIndex =-1;
			document.categoryForm2.categoryList2.selectedIndex =0;

		} else {
			document.categoryForm1.categoryList1.selectedIndex =-1;
			document.categoryForm2.categoryList2.selectedIndex =0;
			document.categoryForm3.categoryList3.selectedIndex =0;

		}

	} catch(Exception) {
		try{
			document.categoryForm1.categoryList1.selectedIndex =-1;
			document.categoryForm2.categoryList2.selectedIndex =0;
			document.categoryForm3.categoryList3.selectedIndex =0;
		} catch(Exception) {
		}
	}
}

function selectboxFocusOut() {
	try{
		document.categoryForm1.categoryList1.selectedIndex =-1;
		document.categoryForm2.categoryList2.selectedIndex =0;
		document.categoryForm3.categoryList3.selectedIndex =0;

	} catch(Exception) {
		//return false;
	}
}

function addBookmark(title, url) {
	try {
		if(navigator.userAgent.indexOf("MSIE") > -1) { 
			window.external.addFavorite(url, title);
		} else if(navigator.userAgent.indexOf("Firefox") > -1) {
			window.sidebar.addPanel(title, url, "");
		} else {
			alert("お気に入りへの追加はできません。");
		}
	} catch(Exception) {
	}
} 

