function nw(URL, width, height) {

  var maxHeight = screen.availHeight - 100;
  var maxWidth  = screen.availWidth - 100;

  if (width > maxWidth) { 
    midth = maxWidth;
  }

  if (height > maxHeight) { 
    height = maxHeight;
  }

  param = "dependent=yes,height="
		+ height
		+",left=20,location=no,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=20,width="
		+width;

  windowHandle = window.open(URL,"nw",param);
  if( windowHandle ){
		if (navigator.appName == "Netscape") {
			windowHandle.focus(); 
	}
  }
}



