/*

This is a very handy function written by Simon Willison:
http://simon.incutio.com/archive/2004/05/26/addLoadEvent

It allows you to queue up a whole series of events to be triggered when the document loads.

If you simply use window.onload = func, then you run the risk of overwriting existing functions that are supposed to run when the onload event is triggered.

*/

function addLoadEvent(func) {

	var oldonload = window.onload;

	if (typeof window.onload != 'function') {

		window.onload = func;

	} else {

		window.onload = function() {

			oldonload();

			func();

		}
	}
}

//his function adds a class to an element and is used by the table striping script. 
//If the element already has a class, the class is added after a space after the existing class
function addClass(element, value) {
	if (!element.className) {
		element.className = value;
	} else {
		newClassName = element.className;
		newClassName+= " ";
		newClassName+= value;
		element.className = newClassName;
	}
}


<!-- email protection -->
function email(alias,url,lnktext, subject){
    document.write ("<a href='mailto:" + alias + "@" + url + "?subject=" + subject + "' target='_blank'>" + lnktext + "</a>");	
}