// used to seutp onLoads, rather than through <body onload=...>
function handleEvent(obj, event, func){
	try{
		obj.addEventListener(event, func, false);
		} catch (e) {
			if (typeof obj['on'+event] == "function"){
				var existing = obj['on'+event];
				obj['on'+event] = function () { existing(); func(); };
			} else {
			obj['on'+event] = func;                        
			}
	}
}