// JavaScript Document
function openWin(theURL,winName,features,winWidth,winHeight) { //v2.0
  if(winWidth > 0 && winHeight > 0){
  	monitorWidth = screen.width;
	monitorHeight = screen.height;
	xPos = Math.round(monitorWidth - winWidth) / 2;	
	yPos = Math.round(monitorHeight - winHeight) / 2;
	features += ',left='+xPos+',top='+yPos;	
  }
  window.open(theURL,winName,features);
}