<!-- 
var subMenuTimeout;
var subMenuLastOpened = '';

function back() {
	history.back();
}

function findObj(n, d) {
	var p,i,x;

	if (!d) d = document;

	if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
		d = parent.frames[n.substring(p+1)].document;
		n = n.substring(0,p);
	}

	if (!(x = d[n]) && d.all) x = d.all[n];

	for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];

	for (i = 0; !x && d.layers && i < d.layers.length; i++) x = findObj(n,d.layers[i].document);

	if (!x && d.getElementById) x = d.getElementById(n);

	return x;
}

function goTo(strURL) {
	window.location = strURL;
}

function hideObj (strObj) {
	obj = findObj(strObj);
	obj.style.display = 'none';
}

function hoverLineOff (obj, strBgColor) {
	obj.style.background = strBgColor;
	obj.style.cursor = 'auto';
}

function hoverLineOn (obj, strBgColor) {
	obj.style.background = strBgColor;
	obj.style.cursor = 'hand';
}

function isNumeric(value) {
	return stringValidation(value, "1234567890");
}

function openWindow(Pagina, Largura, Altura, scrollbars, status) {
	window.open(Pagina, '', 'width=' + Largura + ',height=' + Altura + ',scrollbars=' + scrollbars + ',status=' + status + ',toolbar=no,location=no,directories=no,menubar=no,resizable=no,copyhistory=no');
}

function openInParent(url) {
	top.opener.window.location = url;
}

function resizeWindow(intW, intH) {
	window.resizeTo(intW, intH);
}

function stringValidation(value, validChars) {
	var rt = true;

	for (i = 0; i < value.length && rt == true; i++) {
		Char = value.charAt(i); 
		if (validChars.indexOf(Char) == -1) {
			rt = false;
		}
	}

	return rt;
}

function stripNonNumeric(value) {
	return value.replace(/[^0-9]/g ,'');
}

function showObj (strObj) {
	var obj = findObj(strObj);
	obj.style.display = 'block';
}

function showSubMenu(strMenu) {
	clearTimeout(subMenuTimeout);
	
	if (subMenuLastOpened != '') {
		_hideSubMenu(subMenuLastOpened);
	}

	var obj = findObj(strMenu);
	obj.style.visibility = 'visible';
	subMenuLastOpened = strMenu;
}

function hideSubMenu(strMenu) {
	subMenuTimeout = setTimeout('_hideSubMenu("' + strMenu + '")', 2000);
}

function _hideSubMenu(strMenu) {
	var obj = findObj(strMenu);
	obj.style.visibility = 'hidden';
	subMenuLastOpened = '';
}

function StringChunk (strTexto, intTamanho, strSeparador) {
	var Retorna, i;

	Retorna = '';

	for (i = 0; i <= strTexto.length; i++) {
		Retorna += strTexto.substr(i, 1);
		if ((i + 1) % intTamanho == 0 && i < strTexto.length - 1) {
			Retorna += strSeparador;
		}
	}

	return Retorna;
}

function StringRevert (strTexto) {
	var Retorna, i;

	Retorna = '';

	for (i = strTexto.length - 1; i >= 0; i--) {
		Retorna += strTexto.substr(i, 1);
	}

	return Retorna;
}

-->
