function newWindow(file, contextPath, window) {
    msgWindow=open(contextPath+file,window,'toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width=800,height=800');
    if (msgWindow.opener == null) msgWindow.opener = self;
}
function SetupWindowClose() {
	window.setTimeout("window.close()",1000);
}