// JavaScript Document
function openAWindow( pageToLoad, winName, width, height, center)
   3  {
   4      xposition=0; yposition=0;
   5      if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
   6          xposition = (screen.width - width) / 2;
   7          yposition = (screen.height - height) / 2;
   8      }
   9  	
  10  	//0 => no
  11  	//1 => yes
  12      var args = "";
  13      	args += "width=" + width + "," + "height=" + height + ","
  14  		+ "location=0,"
  15  		+ "menubar=0,"
  16  		+ "resizable=0,"
  17  		+ "scrollbars=0,"
  18  		+ "statusbar=false,dependent,alwaysraised,"
  19  		+ "status=false,"
  20  		+ "titlebar=no,"
  21  		+ "toolbar=0,"
  22  		+ "hotkeys=0,"
  23  		+ "screenx=" + xposition + ","  //NN Only
  24  		+ "screeny=" + yposition + ","  //NN Only
  25  		+ "left=" + xposition + ","     //IE Only
  26  		+ "top=" + yposition;           //IE Only
  27  		//fullscreen=yes, add for full screen
  28      	var dmcaWin = window.open(pageToLoad,winName,args );
  29      	dmcaWin.focus();
  30      //window.showModalDialog(pageToLoad,"","dialogWidth:650px;dialogHeight:500px");

