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 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 cccf(di,c){
	d(di).click();
	cf(c);
}
function cf(di){
	d(di).focus();
	}
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 mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'hand';
src.bgColor = clrIn;}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();}
}
function voltar(){
	history.go(-1);
	}
days = new Array(7)
    days[1] = "Domingo";
    days[2] = "Segunda";
    days[3] = "Terça"; 
    days[4] = "Quarta";
    days[5] = "Quinta";
    days[6] = "sexta";
    days[7] = "Sábado";
    months = new Array(12)
    months[1] = "Janeiro";
    months[2] = "Fevereiro";
    months[3] = "Março";
    months[4] = "Abril";
    months[5] = "Maio";
    months[6] = "Junho";
    months[7] = "Julho";
    months[8] = "Agosto";
    months[9] = "Setembro";
    months[10] = "Outubro"; 
    months[11] = "Novembro";
    months[12] = "Dezembro";
    today = new Date(); day = days[today.getDay() + 1]
    month = months[today.getMonth() + 1]
    date = today.getDate()
    year=today.getYear(); 
if (year < 2000)
year = year + 1900;
//alert("boooooo");
function go() {
    window.location.href = document.formName.passwordName.value + '.htm';
    return false;
}
function  imprimePagina(){
window.print();
}
function desfoca(x){
	d(x).disabled=true;
	d(x).disabled=false;
}
function sobe(){
window.scrollTo(0,0)
}