/////////////////////////////////////////////
//   functions that run on every page load //
function runGlobals()
{

	
	
	

}
//                                         //
/////////////////////////////////////////////


// declare which functions will run on which pages
onload = function()
{
	runGlobals();

	// 1. add an invisible div with id matching the screen code on the page you want to trigger specific functions on
			//<div id="SCREEN_CODE" style="display:none;"></div>
	// 2. add a variable here matching the screen code you want to trigger specific functions on
			//var SCREEN_CODE = ( document.getElementById( 'SCREEN_CODE' ) )? true : false;
	// 3. add an if statment that tests the SCREEN_CODE variable and fires it's function list if SCREEN_CODE is true
			//if( SCREEN_CODE ){ mySpecialFunction(); }
	var authors_page = ( document.getElementById( 'authors_page' ) )? true : false;
	if( authors_page ){ addLists(); }
}




// removes dotted outline from links in Firefox
function fixLinks()
{
	var all_links = document.links;
	for( var i=0; i<all_links.length; i++ )
	{
		all_links[i].onfocus = function()
		{
			if( this.blur )
			{
				this.blur();
			}

		}
	}
}






// validates email address for newsletter signup
function checkEmail(myForm)
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.to.value))
	{
		return (true)
	}
		alert("Invalid E-mail Address! Please re-enter.");
		return (false);
}