<!--
var isGecko = window.navigator.userAgent.indexOf('Gecko') > -1; 
var isIE = window.navigator.userAgent.indexOf('MSIE') > -1; 
var isOpera = window.navigator.userAgent.indexOf('Opera') > -1; 
var isNS4 = (document.layers?true:false); 
var isIE4 = (document.all?true:false); 
var isDOM = (document.getElementById?true:false); 
var eo = null;

function _mt(obj) {
	obj.style.backgroundColor ='orange';
}

function _mo(obj) {
	if (eo != null) {
		eo.style.backgroundColor = 'orange';
	}
	
	obj.style.backgroundColor = '#ffdd33';
	
	eo = obj;
}

function getElement(el_id) {
	if (isDOM)
		return document.getElementById(el_id);
	else if (isIE4)
		return document.all[el_id];
	else
		return null;
}

function openwindow(fln, wd, hg, fixed) {
	var w = screen.availWidth;
	var h = screen.availHeight;
	
	if (w > 1500)
		w = parseInt(w / 2);
	
	var fnm = '';

	for (i = fln.length; i < fln.length; i++)
		if (!((fln.charAt(i) < 'a') | (fln.charAt(i) > 'z'))) 
				fnm += fln.charAt(i);
	
	w = (w - wd) / 2;
	h = (h - hg) / 2;
	wd = wd;
	hg = hg;
	
	if (fixed) 
		window.open(fln, fnm, 'left=' + w + ', top='+ h +', toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, menubar=no, resizable=no, copyhistory=no, width=' + wd + ', height=' + hg).focus()
	else
		window.open(fln, fnm, 'left=' + w + ', top='+ h +', toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, menubar=no, resizable=yes, copyhistory=no, width=' + wd + ', height=' + hg).focus();
}
//-->