// Print this page Main Window
function printThis() {
	window.parent.content.focus();
	window.print();
}

// Print this page Work Folder
function printThis() {
	window.parent.workFolderContent.focus();
	window.print();
}

// Generic centred PopUp window
var win= null;
function openPopup(mypage,myname,w,h,resize,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='resizable='+resize+',';
	  	settings +='scrollbars='+scroll+',';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

// CloseWindow with delay for Netscape-bug
function closeWindow() 
{
   setTimeout("window.close()", 500);
}



//-->