// ===================================================================
// Author: Brian Lonardo and Corey Christensen
// Date:  7/1/02
// Here you'll find all AOC created Javascript functions for this site
// ===================================================================




// Start functions


function win(fileName) {
     myWin = window.open('','myWindow','scrollbars=no,directories=no,status=no,resizable=no,toolbar=no,copyhistory=no,location=no,menubar=no,width=500,height=400,scrollbars=yes,top=10,left=10')
     myWin.location.href = fileName;
}

function autotab(original,destination){
if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
destination.focus()
}

function launch(url) {
	  self.name = "opener";
	  remote = open(url, "remote", "scrollbars,width=425,height=500,left=0,top=0");
	}

	function disp1(){
		var mymonth=document.calendarform.month.options[document.calendarform.month.selectedIndex].value;
		var myyear=document.calendarform.year.options[document.calendarform.year.selectedIndex].value;
		window.location="?fa=calendar.home.cfm&year="+myyear+"&month="+mymonth;
	}
	function disp2(){
		var mymonth=document.calendarform.month.options[document.calendarform.month.selectedIndex].value;
		var myyear=document.calendarform.year.options[document.calendarform.year.selectedIndex].value;	
		window.location="?fa=calendar.home.cfm&year="+myyear+"&month="+mymonth;
	}
	
	function clearText(thefield)
	{
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
	} 
	
	function openWindow(url, name, w, h) 
	{ popupWin = window.open(url, name, 'width=380,height=320'); }
	
	// How many pixels from the top to display the content
var topOffset = 80

function keepAlive() {
	// Move the content into view
	document.all.navBar.style.pixelTop = document.body.scrollTop + topOffset
}

function doLoad() {
	// Initialize DHTMLLib
	setup()
	// When the page scrolls, move the content
	window.onscroll = keepAlive;
	// Initialize the position
	keepAlive()
}
window.onload = doLoad;
// -->

