NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;

function mOvr (src, clCor) {
	if (IE4) {
		if (!src.contains (event.fromElement)) {
			src.style.cursor = 'hand';
			src.bgColor = clCor;
		}
	} else {
		this.bgColor = clCor;
	}
}

function mOut (src, clrIn) {
	if (IE4) {
		if (!src.contains (event.toElement)) {
			src.style.cursor = 'default';
			src.bgColor = clrIn;
		}
	} else {
		this.bgColor = clrIn;
	}
}

function mClk (src) {
	if (event.srcElement.tagName == 'TD') {
		src.children.tags('A')[0].click();
	}
}

function abreTermo() {
	window.open ('/sac/regulamentos.html','viewer','scrollbars=yes,status=no,toolbar=no,menubar=no,width=470,height=500');
}

function textCounter (campoTexto, limite) {
	if (campoTexto.value.length > limite) {
		campoTexto.value = campoTexto.value.substring (0, limite);
		alert ("Você está excedendo o número de caracteres permitidos para esse campo.");
		return false;
	} else {
		return true;
	}
} 

