function byid(id) { return document.getElementById(id); }
function byname(name) { return document.getElementsByName(name)[0]; }
function redirect(url) { window.location=url; }
function jumpto(name) { window.location.hash = name; }
function timeout(func,delay) 
{
	if (typeof(func)=='string') { return setTimeout(func, delay); }
	
	var now = new Date();
	var unique = now.getMinutes()+""+now.getSeconds()+""+now.getMilliseconds();

	if (!timeout.funcs) { timeout.funcs = new Array(); }
	timeout.funcs[unique] = func;
	
	return setTimeout("timeout.funcs["+unique+"](); timeout.funcs["+unique+"]=null", delay);
}
