function newWindow(file, window, width, height) {
	if (! (width > 0)) width = 475;
	if (! (height > 0)) height = 300;
	msgWindow=open(file,window,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=' + width + ',height=' + height);
	if (msgWindow.opener == null) msgWindow.opener = self;
}
