//　抽選結果表示
function r(kai) {
window.open("../result.cgi?s="+kai,"result","width=535,height=275");
}
function rml(kai) {
window.open("./rml.cgi?kai="+kai,"result","width=480,height=300");
}
function rl6(kai) {
window.open("./rml.cgi?kai="+kai,"result","width=500,height=330");
}
//表の説明
function sheetinfo(name) {
n34info=window.open("manual/"+name+".htm","n34info","width=500,height=350,scrollbars=yes,resizable=yes");
n34info.focus();
}
//予想覚書
function exptxt(num) {
	if(num==3){
		if(win_closed(window.n3exp)){
		n3exp=window.open("../expect/n3.htm","n3exp","width=440,height=240");
		}
		n3exp.focus();
	}
	if(num==4){
		if(win_closed(window.n4exp)){
		n4exp=window.open("../expect/n4.htm","n4exp","width=450,height=250");
		}
		n4exp.focus();
	}
	if(num==5){
		if(win_closed(window.n5exp)){
		n5exp=window.open("../expect/ml.htm","n5exp","width=450,height=260");
		}
		n5exp.focus();
	}
	if(num==6){
		if(win_closed(window.n6exp)){
		n6exp=window.open("../expect/l6.htm","n6exp","width=450,height=260");
		}
		n6exp.focus();
	}
}
function win_closed(winVar) {
    var ua = navigator.userAgent
    if( !!winVar )
        if( ( ua.indexOf('Gecko')!=-1 || ua.indexOf('MSIE 4')!=-1 )
             && ua.indexOf('Win')!=-1 ) 
             return winVar.closed
        else return typeof winVar.document  != 'object'
    else return true
  }