function openW(mypage,myname,w,h,tb,sb,rs,features) {
	if(screen.width){
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
		}else{winl = 0;wint =0;}
		if (winl < 0) winl = 0;
		if (wint < 0) wint = 0;
		var settings = 'height=' + h + ',';
		settings += 'width=' + w + ',';
		settings += 'top=' + wint + ',';
		settings += 'left=' + winl + ',';
		settings += 'toolbar=' + tb + ',';
		settings += 'scrollbar=' + sb + ',';
		settings += 'resizable=' + rs + ','; 
		settings += features;
		win = window.open(mypage,myname,settings);
		win.window.focus();
	}

/*
toolbar=0|1	 Specifies whether to display the toolbar in the new window.
location=0|1	 Specifies whether to display the address line in the new window.
directories=0|1	 Specifies whether to display the Netscape directory buttons.
status=0|1	 Specifies whether to display the browser status bar.
menubar=0|1	 Specifies whether to display the browser menu bar.
scrollbars=0|1	 Specifies whether the new window should have scrollbars.
resizable=0|1	 Specifies whether the new window is resizable.
width=pixels	 Specifies the width of the new window.
height=pixels	 Specifies the height of the new window.
top=pixels	 Specifies the Y coordinate of the top left corner of the new window.
left=pixels	 Specifies the X coordinate of the top left corner of the new window.
*/