function d(di){
	return document.getElementById(di);
}
function d2(fr,di){
	return eval(fr+".document.getElementById('"+di+"')");
}
function dh(di,ct){
	d(di).innerHTML=ct;
}
function dhg(di){
	return d(di).innerHTML;
}
function dh2(fr,di,ct){
	eval(fr+".document.getElementById('"+di+"').innerHTML="+ct);
}
function dv(di,ct){
	d(di).value=ct;
}
function dvg(di,ct){
	return d(di).value;
}
function cc(di){
	d(di).click();
}
function ffd(x){
d('if_xcv').src="xcv.php?_xcv="+x;
}
function sn(di){
	d(di).style.display="none"
}
function sb(di){
	d(di).style.display="block"
}
function sn2(fr,di){
	eval(fr+".document.getElementById('"+di+"').style.display='none'");
}
function sb2(fr,di){
	//alert(fr+".document.getElementById('"+di+"').style.display='block'");
	eval(fr+".document.getElementById('"+di+"').style.display='block'");
}

function ab(ar){
	var arr=ar.split(",");
	for (i=0;i<arr.length;i++){
	sb(arr[i])
	}
}

function fe(ar){
	var arr=ar.split(",")
	for (i=0;i<arr.length;i++){
	sn(arr[i])
	}
}
function mov(dc)
{
dc.style.filter="alpha(opacity=75)";
dc.style.MozOpacity=0.75; 
}
function mou(dc){
dc.style.filter="alpha(opacity=100)";
dc.style.MozOpacity=1.00;
}
function mudaCampo(cp,vl){
d(cp).value=vl;
}

function mOvrMenu(src){
	if(event.srcElement.tagName=='TD'){
	src.style.cursor = 'default';
	src.className="fmenu"
	src.children.tags('A')[0].click();
	}
}

function msg(txt) {
self.status = txt
}
function nomsg() {
     self.status = ""
	 }
	 
function desfoca(x){
	d(x).disabled=true;
	d(x).disabled=false;
}

function ajuda(x){
	alert(x);
}

function voltaPagina(){
	window.history.go(-1);
	}

function fc(x){
	d(x).focus();
	}
function clientex(x,y){
parent.parent.rodape.nomeCli(x,y);
}
clientexx="  Programa licenciado para: Visitante Teste - ";
autorx="Autor: Renato Rodrigues da Costa - Goiânia - GO - Brasil - renatorodrigues@correios.net.br";

function hidestatus(){
window.status='    Setor Coimbra';
return true;
}
function imprimir(){
	window.print();
	}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
document.onmouseover=hidestatus;
document.onmouseout=hidestatus;
document.onmousedown=hidestatus;
document.onmouseup=hidestatus;
document.onmousemove=hidestatus;

function Enum(num){
	if (document.all)
		var tecla = event.keyCode;
	else if(document.layers)
		var tecla = num.which;
		if (tecla > 47 && tecla < 58)
			return true;
		else
			{
				if (tecla != 8)
					event.keyCode = 0;
				else
					return true;
			}
}

function ieupdate(){
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}}


