
// Detect MAC IE5
	
// convert all characters to lowercase to simplify testing
var agt=navigator.userAgent.toLowerCase();
    
var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_mac    = (agt.indexOf("mac")!=-1);
	
	
function init()	{		
	if (is_ie && is_mac) {		//corrects MacIE5 scrollbar wierdness
		window.resizeBy(-1, -1);
	}	
}
	
	
//this is current date

var myDate=new Date();
var monthnum=myDate.getMonth() + 1;
var date=myDate.getDate();
var year=myDate.getFullYear();
//if (year < 2000) 
//	year = year + 1900; 



// The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu)
// See:  http://www.msc.cornell.edu/~houle/javascript/randomizer.html

rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};

// end central randomizer. -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function foo () {
	window.alert ("blah!");
}

/*
	This function logs *offsite* links. Use it in anchors that 
	refer to a page outside the site. So, only target value we 
	care about is "_blank" -- _self, _parent, _top refer inside 
	the site. Internal pages track themselves; no reason to track 
	them from the caller. This currently won't support tracking 
	links to offsite pages that target a frame we own.

	Usage:
	<a href="http://some.other.site/page.html" 
			onclick="return log(this)" [target="_blank"]>
*/
function log(anchor)	{			// take an <a> object
	var axsurl = "/cgi/caa/axs/ax.pl";	// modify this if AXS is elsewhere

	var fullurl = axsurl + "?" + anchor.href;
	if ( anchor.target == "_blank" ) {
		window.open(fullurl); 		// open in new win
	} else {
		location.href = fullurl;	// open in this win
	}
	return false; 					// suppress browser's link behavior
}