
/*************************************************
*   MIDAS Information Pages Web Site Scripts     *
*************************************************/

/*
**
** Function that gets the current date and formats it into a string that is displayed
** in each page's header area.
*/
function headerDate()
{
	var now = new Date();

	var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];

	var date = now.getDate();
	var month = months[now.getMonth()];
	var year = now.getFullYear();

	document.write(date + ' | ' + month + ' | ' + year);
}

/* 
** Function that handles jumps to URLs from scripted drop-down menu clicks.
*/
function MM_jumpMenu(targ,selObj,restore)
	{ 
  	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  	if (restore) 
		selObj.selectedIndex=0;
	}

/* 
** Function that opens a pop-up browser window used 
** to display extra information.
*/
function MM_openBrWindow(theURL,winName,features)
	{
	window.open(theURL,winName,features);
	}

/* End of scripts */
