function getStyleObj(id) {
	if (document.getElementById || // DOM-compliant browsers (MSIE5, NSN6, O5)
		document.all) {			// or MSIE 4
		return getObj(id).style;
	} else return getObj(id); // NSN4
}


function getObj(id) {
	if (document.getElementById) { // DOM-compliant browsers (MSIE5, NSN6, O5)
		return document.getElementById(id);
	} else if (document.all) { // MSIE4
		return document.all[id];
	} else if (document.layers) { // NSN4
		return document.layers[id];
	} else { // Trap DHTML-impaired browsers 
		//alert("Your browser does not support DHTML!");
		//showMenu(1);
	}
}


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;                        
		}
	}
}


function a(string)
{
	window.alert(string);
}
