function openwin(name) {
	var filename = "profile/mem_" + name + ".html";
	window.open(filename, "", "scrollbars=yes,width=670,height=550");
}
/* パスワードチェック */
function checkpass(){
	var inputPass = document.inputpass.typepass.value;
	if(inputPass == "agplus") {
		check=inputPass+"/index.html";
	}
	else if(inputPass == "") {
		window.alert("パスワードを入力してください。");
		document.inputpass.typepass.focus();
		return false;
	}
	else {
		window.alert("パスワードが間違っています");
		document.inputpass.typepass.focus();
		document.inputpass.typepass.select();
		return false;
	}
	location.href=check;
}

/* tabをenterに変換 */
function chgKeycode(){
	if(13==event.keyCode) {
			
		event.keyCode=9;
	}
	return true;
} 

/****************************************************************  
* 機　能： オブジェクトの表示非表示を制御する 1  
*        （表示している場合は非表示、非表示の場合は表示）  
* 引　数： ch 表示/非表示を切り替えるオブジェクト名  
* 戻り値： なし  
****************************************************************/ 
function showHide(targetID) { //functionの宣言。受けとったIDは変数targetIDに格納。
        if( document.getElementById(targetID)) { //指定のIDのついたオブジェクトがあったら処理する
                //指定されたIDのstyle.displayがnoneなら
                if( document.getElementById(targetID).style.display == "none") {
                    //blockに変更する
                    document.getElementById(targetID).style.display = "block";
                } else { //noneでなければ、つまりblockなら
                    //noneにする
                    document.getElementById(targetID).style.display = "none";
                }
        }
}

