		function newWindow(myUrl,w,h,features) {
			var settings = "";
			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;
			settings = 'height=' + h + ',';
			settings += 'width=' + w + ',';
			settings += 'top=' + wint + ',';
			settings += 'left=' + winl;
			if (features != "") settings += ',' + features;
			myWin = window.open(myUrl,"myWin",settings);
			myWin.window.focus();
			return myWin;
		}
		
		function init(myPage,myWidth,myHeight) {
			var myWin = newWindow(myPage, myWidth, myHeight, "resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,statusbar=no");
		}