// 2002.20.06 Mark Rovendro
// Copyright 2002 Mark Rovendro - All rights reserved

// GLOBAL VARS
var detailWin = "" ;	// Handler to detail window

// Open a detail info window.
// If the window is already open reuse it and bring it to the foreground.
function openDetailWindow( URL ) {
  // Reuse window if exists
  if ( detailWin != "" && detailWin.closed == 0 ) {
    // Check if a new URL was provided
	if ( URL != openDetailWindow.url ) {
	  //alert("Using new URL: " + URL + " Old: " + openDetailWindow.url ) ;
	  openDetailWindow.url = URL ;
	  detailWin.location = URL ;
	}
    detailWin.focus() ;
  } else {
  // Create the window
    openDetailWindow.url = URL ;
	detailWin = window.open( URL,"detail","toolbar=no,scrollbars=yes,height=700,width=450,resizable=yes") ;
  }
} //openDetailWindow




