function window01(URL){
	window.open(URL,"window01","width=840,height=650,status=yes,scrollbars=yes,resizable=yes");
}

// ************　別ウィンドウ　*************

function SubWin(filename, w, h){
			 h = h + 55;
                popup = window.open(filename,"subwin1","width="+w+",height="+h+",scrollbars=yes,resizable=no,toolbar=no");
                                popup.focus(); 
                if ( popup.document.close() ) {
                        popup.document.close();
                }
                popup.resizeTo(w, h);
}


// ************　別ウィンドウ（スタンダードサイズ）　*************

function SubWin_m(filename){
			 w = 650;
			 h = 650 + 55;
				popup = window.open(filename,"subwinm","width="+w+",height="+h+",scrollbars=yes,resizable=yes,toolbar=no");
                                popup.focus(); 
                if ( popup.document.close() ) {
                        popup.document.close();
                }
                popup.resizeTo(w, h);
}

// ************　別ウィンドウ（スモールサイズ）　*************

function SubWin_s(filename){
			 w = 450;
			 h = 450 + 55;
                popup = window.open(filename,"subwins","width="+w+",height="+h+",scrollbars=yes,resizable=yes,toolbar=no");
                                popup.focus(); 
                if ( popup.document.close() ) {
                        popup.document.close();
                }
                popup.resizeTo(w, h);
}


// ************　別ウィンドウ（ラージサイズ）　*************

function SubWin_l(filename){
			 w = 750;
			 h = 650 + 55;
                popup = window.open(filename,"subwins","width="+w+",height="+h+",scrollbars=yes,resizable=yes,toolbar=no");
                                popup.focus(); 
                if ( popup.document.close() ) {
                        popup.document.close();
                }
                popup.resizeTo(w, h);
}


// ************　別ウィンドウ（ラージサイズ2）　*************

function SubWin_xl(filename){
			 w = 800;
			 h = 650 + 55;
                popup = window.open(filename,"subwins","width="+w+",height="+h+",scrollbars=yes,resizable=yes,toolbar=no");
                                popup.focus(); 
                if ( popup.document.close() ) {
                        popup.document.close();
                }
                popup.resizeTo(w, h);
}


// ************　別ウィンドウ（モニタ中央）　*************

function SubWin_center(filename, w, h){  
	var win_width = screen.width;
	var win_height = screen.height;
                popup = window.open(filename,"subwin2","width="+w+",height="+h+",scrollbars=no,resizable=no,toolbar=no");
                                popup.focus(); 
                if ( popup.document.close() ) {
                        popup.document.close();
                }
       popup.moveTo((win_width-w)/2-10, (win_height-h)/2-30);
 	if(document.all){ // IE
	//popup.resizeTo(w, h);
	}
	if(document.layers){ // NN
	popup.outerWidth = win_width/2;
	popup.outerHeight = win_height/2;
	}
}


// ************　元のウィンドウを変化　*************
	
function ctrlWin(url) {
	window.opener.location.href = url;
	opener.focus();
}