var popupactive = false;
var PopupWin

//*  Pop-Ups called by openWin('####.htm')"
function openWin(url,w,h)
   {
   if(popupactive) {popupWin.close(); popupactive=0;}	

   var sw=screen.width
   var sh=screen.height
   var sb=0;
   
   w = w + 20;	// "pad" the window
   h = h + 30;
   popupactive=1;

   if (h>screen.height){
	sb=1;
	h = sh - 100;
	w = w + 20;    }

   if (w>screen.width){
	sb=1;
	h = h + 20;
	w = sw -100;    }

   windowprops='width='+w+',height='+h+',left=40,top=30,scrollbars='+sb+',menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=0';

   popupWin=window.open(url,'window',windowprops);
   popupWin.focus();
   }

//* Force to break out of frames
function framebreaker()
   {
   if (top.location != location) {
   top.location.href = document.location.href ;	}
   }

//*  Hide Status Bar
function hidestatus()
   {
   window.status=''
   return true
   }

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus


//* Displays today's date
var now = new Date();	// Get today's current date.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate(); // Calculate the number of the current day in the week.
function fourdigits(number)	{  // Calculate four digit year.
	return (number < 1000) ? number + 1900 : number; }
// Join it all together
today =  days[now.getDay()] + ", " +		// Insert <br> for new line
         months[now.getMonth()] + " " +
         date + ", " +
        (fourdigits(now.getYear())) ;