function lexopenframe(pType) {
	if (pType == "leaderj" || pType == "leadert") {
		if (pType == "leaderj") {
			win = window.open("http://www.horsenavi.com/html/homepage/lexasp/hplexsei.asp?TYPE=" + pType,pType,"scrollbars=yes,menubar=yes,resizable=yes,width=740,height=" + (screen.availHeight - 100) + ",screenX=0,screenY=0,left=0,top=0");
		} else {
			win = window.open("http://www.horsenavi.com/html/homepage/lexasp/hplexsei.asp?TYPE=" + pType,pType,"scrollbars=yes,menubar=yes,resizable=yes,width=690,height=" + (screen.availHeight - 100) + ",screenX=0,screenY=0,left=0,top=0");
		}
	} else {
		win = window.open("",pType,"scrollbars=yes,menubar=yes,resizable=yes,width=800,height=" + (screen.availHeight - 100) + ",screenX=0,screenY=0,left=0,top=0");
		if (navigator.appName.charAt(0) == "N") {
			var wkrow = 75;
		} else {
			var wkrow = 85;
		}
		with(win.document) {
			open("text/html");
			clear();
			write("<HTML>" + "\n");
			write("<HEAD>" + "\n");
			write("<META http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">" + "\n");
			switch(pType){
				case "cyuousg":
					title="レックスホームページ　リーディングサイアーデータ　中央総合リーディングサイアー";
					break;
				case "cyuou2s":
					title="レックスホームページ　リーディングサイアーデータ　中央２歳リーディングサイアー";
					break;
				case "banusi":
					title="レックスホームページ　各種ランキング　馬主収得賞金";
					break;
				case "kyusya":
					title="レックスホームページ　各種ランキング　調教師収得賞金";
					break;
				case "seisan":
					title="レックスホームページ　各種ランキング　生産者収得賞金";
					break;
				case "sedaicyuou":
					title="レックスホームページ　リーディングサイアーデータ　中央世代別リーディングサイアー";
					break;
				case "leadert":
					title="www.horsenavi.com　調教師勝ち星ランキング";
					break;
				case "leaderj":
					title="www.horsenavi.com　ジョッキー勝ち星ランキング";
					break;
			}
			write("<TITLE>" + title +"</TITLE>" + "\n");
			write("</HEAD>" + "\n");
			write("<FRAMESET rows=\"" + wkrow + ",*\" frameborder=\"NO\" framespacing=\"0\" border=\"0\">" + "\n");
			write("<FRAME src=\"http://www.horsenavi.com/html/homepage/lexasp/hplexsei.asp?TYPE=" + pType + "\" noresize scrolling=\"NO\" name=\"uframe\" marginwidth=\"8\" marginheight=\"5\">" + "\n");
			write("<FRAME src=\"http://www.horsenavi.com/html/homepage/dummy.html\" noresize scrolling=\"AUTO\" name=\"dframe\" marginwidth=\"8\" marginheight=\"0\">" + "\n");
			write("<NOFRAMES>" + "\n");
			write("<BODY>" + "\n");
			write("<P>このページをご覧いただくにはフレーム対応のブラウザが必要です。</P>" + "\n");
			write("</BODY>" + "\n");
			write("</NOFRAMES>" + "\n");
			write("</FRAMESET>" + "\n");
			write("</HTML>" + "\n");
			close();
		}
	}
	win.focus();
}
