
var type = "IE";
BrowserSniffer();
function BrowserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		
	else if (document.all) type="IE";									
	else if (document.layers) type="NN";									
	else if (!document.all && document.getElementById) type="MO";						
	else type = "IE";
}

function ChangeLayerBgColor(id, color){
	if (type=="IE") document.all[id].style.backgroundColor=color;
	if (type=="NN") document.layer['id'].bgColor=color;
	if (type=="MO" || type=="OP") document.getElementById(id).style.backgroundColor=color;
}


function setfocus(id) {
	if (type=="MO" || type=="OP") document.addTix.getElementById(id).focus();
}
