  //var bw = new verifyCompatibleBrowser();
  var contentLoaded=false;

  var newwin;
  function launchwin(winurl,winname,width,height,scroll)
  {
	  if (scroll!=1) {scroll = 0;}
		  
	  // makes sure the windows opens in the center of the screen
 	  var top = (window.screen.height-height)/2;
	  var left = (window.screen.width-width)/2;
		  
	  //This launches a new window and then focuses it, if window.focus() is supported
	  newwin = window.open(winurl,winname,'scrollbars='+scroll+',toolbar=0,location=0,menubar=0,resizable=0,width='+width+',height='+height+',screenX='+left+',screenY='+top+',left='+left+',top='+top);
      newwin.focus();
 }
