function chatWindow(){
	var frameWindow=window.open("phchat.html","f2");
	frameWindow.document.close();
}
function newWindow(win,w,h,l,t){
	var frameWindow=window.open(win,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,titlebar=0,left=10,top=10,width="+w+",height="+h+",left="+l+",top="+t);
	frameWindow.document.close();
}
function addFavorite(){
	if(navigator.appName.charAt(0)=="M"){
		window.external.AddFavorite("http://homepage3.nifty.com/puzzlehouse/","【パズルハウス】");
	}else{
		alert("大変申し訳ありません。\nこのボタンで「お気に入り」に登録できるのは Internet Explorer だけです。\nNetscape Navigator をご利用の方は、右の画面の空白部分を\n右クリックして「このページにブックマークを付ける」を選択してください。");
	}
}
function mysteryLink(){
	var newWindow=window.open();
	var goJump=Math.floor(Math.random()*15);
	if(goJump>=2){goJump=Math.floor(Math.random()*(document.links.length-13));}
	newWindow.location.href=document.links[goJump];
}
function mysteryGame(){
	var goJump=Math.floor(Math.random()*(document.links.length-14));
	var frameWindow=window.open("","f2");
	frameWindow.location.href=document.links[goJump];
	frameWindow.document.close();
}
