// SUPRESS JS ERRORS - SHUT OFF TO TEST SCRIPTS
	
function errorsuppressor() {
return true
}

window.onerror=errorsuppressor


// GLOBAL FUNCTIONS FOR ALL TF.N IMAGE ROLLOVERS

function rollOn(imgName, button) {
if (document.images) {
	document[imgName].src=eval(button + "_on.src");
	}
}

function rollOff(imgName, button) {
if (document.images) { 
	document[imgName].src=eval(button + "_off.src");
	}
}	

function buttonOn(imgName) {
  if (document.images) {
      document[imgName].src = eval(imgName + "_on.src");
	}
}

function buttonOff(imgName) {
  if (document.images) {
      document[imgName].src = eval(imgName + "_off.src");
	}
}

function changeImages() {
if (document.images) {
	for (var i=0; i<changeImages.arguments.length; i+=2) {
		document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		}
	}
}



// GLOBAL SELECTNAVS

AlertMsg = "Sorry, that\'\s not a valid page, please choose another."

function GlobalNavSelect() {

if(document.selectglobalnav.gnav.options[document.selectglobalnav.gnav.selectedIndex].value == 0) {
alert(AlertMsg);
document.selectglobalnav.gnav[0].selected='true';
} else {
window.location = document.selectglobalnav.gnav.options[document.selectglobalnav.gnav.selectedIndex].value;
	}
}

function LocalNavSelect() {
	
if(document.selectlocalnav.lnav.options[document.selectlocalnav.lnav.selectedIndex].value == 0) {
alert(AlertMsg);
document.selectlocalnav.lnav[0].selected='true';
} else {
window.location = document.selectlocalnav.lnav.options[document.selectlocalnav.lnav.selectedIndex].value;
	}
}

function ArchiveSelect() {

window.location = document.selectarchive.anav.options[document.selectarchive.anav.selectedIndex].value;

}

// SEND ARTICLE

function msgsnd(p,t) {
window.open("/email_friend.asp?p=" + p + "&t=" + t,"","width=600,height=412,scrollbars=0")
}


// GET YEAR

function y2k(number) { return (number < 1000) ? number + 1900 : number; }

var today = new Date();
var year  = y2k(today.getYear());