var page_properties = new Array();

page_properties[ "childWin" ] = "";
page_properties[ "childWinClosed" ] = true;


function FENSTER( url, height, width, scrollbar)
{
  if ( page_properties[ "childWin" ].closed == true )
  {
  	page_properties[ "childWinClosed" ] = true;
  }
  else if ( page_properties[ "childWinClosed" ] == false )
  {
  	page_properties[ "childWin" ].close();
	page_properties[ "childWinClosed" ] = true;
  }
  var h_center = ( screen.height - height ) / 2;
  var w_center = ( screen.width - width ) / 2;
  if ( scrollbar == true) {
  page_properties[ "childWin" ] = window.open( url , 'another' , 'width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=0,menuBar=0,toolbar=no,scrollBars=1,scrollbars=yes,resizable=0,resizable=no,top=' + h_center + ',left=' + w_center ); 
  page_properties[ "childWinClosed" ] = false;
  }
  if ( scrollbar == false) {
  page_properties[ "childWin" ] = window.open( url , 'another' , 'width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=0,menuBar=0,toolbar=no,scrollBars=0,scrollbars=no,resizable=0,resizable=no,top=' + h_center + ',left=' + w_center ); 
  page_properties[ "childWinClosed" ] = false;
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

