function win_open(win_name, where, type_val) {
	var win_type = new Array();
	var W = new Array();
	var H = new Array();

	win_type[0]="width=750,height=450,left=25,top=25";	W[0]="750";	H[0]="450";
	win_type[1]="width=600,height=500,left=100,top=50,RESIZABLE,TOOLBAR,DIRECTORIES,TITLEBAR,STATUS,SCROLLBARS";	W[1]="600";	H[1]="500";
	win_type[2]="width=500,height=400,left=250,top=100,RESIZABLE,SCROLLBARS";	W[2]="500";	H[2]="400";

	win_name = window.open(where, win_name, win_type[type_val]);
	try {
		var l = (screen.width) ? (screen.width - W[type_val])/2 : 0;
		var t = (screen.height) ? (screen.height - H[type_val])/2 : 0;
		win_name.moveTo(l,t);
	}
	catch(e) {}
	win_name.focus();
}
