var AllSatWindows = new Array();
var LoadTime = new Date();
var ParantWinName = 'hyWin' + LoadTime.getHours() + LoadTime.getMinutes() + LoadTime.getSeconds();
var Debug = 0;

if (Debug) alert( "NewWin.js: Debog mode is on" );

function makeNewWindowNoNav( href ) {


	if (Debug) alert( 'In NewWin.makeNewWindowNoNav( ' + href +  ' )' );

	var myBars = 'directories=no,location=no,menubar=no,status=yes,titlebar=no,toolbar=no,scrollbars=yes';
	var myOptions = 'resizable=yes';
	var winName = ParantWinName + '_' + AllSatWindows.length;
	var newWindowHdl;
	var isNetscape = (navigator.appName == "Netscape")
	var indx = AllSatWindows.length;

	if (Debug) alert( 'IsNetscape = ' + isNetscape + '   ' + navigator.appName + ' ' + navigator.appVersion );
	if (Debug) alert( 'window.open(' + href + ',' + winName + ',' + '\'' +myBars + ',' +  myOptions + '\'' );        

	newWindowHdl = window.open( href, winName, myBars + ',' +  myOptions );
		 
        AllSatWindows.push( newWindowHdl );
	newWindowHdl.focus();
}

function makeNewWindowNav( href ) {


	if (Debug) alert( 'In NewWin.makeNewWindowNav( ' + href +  ' )' );

	var myBars = 'directories=no,location=no,menubar=no,status=yes,titlebar=no,toolbar=yes,scrollbars=yes';
	var myOptions = 'resizable=yes';
	var winName = ParantWinName + '_' + AllSatWindows.length;
	var newWindowHdl;
	var isNetscape = (navigator.appName == "Netscape")
	var indx = AllSatWindows.length;

	if (Debug) alert( 'IsNetscape = ' + isNetscape + '   ' + navigator.appName + ' ' + navigator.appVersion );
	if (Debug) alert( 'window.open(' + href + ',' + winName + ',' + '\'' +myBars + ',' +  myOptions + '\'' );        

	newWindowHdl = window.open( href, winName, myBars + ',' +  myOptions );
		 
        AllSatWindows.push( newWindowHdl );
	newWindowHdl.focus();
}

function makeNewWindow( href ) {

	if (Debug) alert( 'In NewWin.makeNewWindow( ' + href +  ' )' );

	var myBars = 'directories=no,location=no,menubar=yes,status=yes,titlebar=no,toolbar=yes,scrollbars=yes';
	var myOptions = 'resizable=yes';
	var winName = ParantWinName + '_' + AllSatWindows.length;
	var newWindowHdl;
	var isNetscape = (navigator.appName == "Netscape")
	var indx = AllSatWindows.length;

	if (Debug) alert( 'IsNetscape = ' + isNetscape + '   ' + navigator.appName + ' ' + navigator.appVersion );
	if (Debug) alert( 'window.open(' + href + ',' + winName + ',' + '\'' +myBars + ',' +  myOptions + '\'' );        

	newWindowHdl = window.open( href, winName, myBars + ',' +  myOptions );
		 
        AllSatWindows.push( newWindowHdl );
	newWindowHdl.focus();
}


