agt = navigator.userAgent.toLowerCase();
is_ie= ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
is_mac	   = (agt.indexOf("mac") != -1);
is_mac_ie = (is_ie && is_mac);

old_ob=false;

function trace(o) {
	var out="";
	for (z in o) {
		if (o[z]!="" && o[z]!=null)	out+=z+" = "+o[z]+"; <br>";
	}
	debug(out)
}
function debug(msg) {
	if (typeof w == "undefined" || w.closed ) {
		w=window.open('','w','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=640,height=600');
	}
	w.document.write(msg+"<br>");
}

function show(ob) {
	if (old_ob!==false) hide(old_ob);
	var div=document.getElementById(ob);
	div.style.display="block";
	old_ob=ob;
}
function hide(ob) {
	var div=document.getElementById(ob);
	div.style.display="none";
}
function openWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}