//chama pop de impressão
function popPrint(vWidth,vHeight,varArea) {
	window.open( '_print.cfm?'+varArea, 'pop', 'width='+ vWidth +',height='+ vHeight +',scrollbars=yes,statusbar=yes');
}


//Facilitador de código
function $(id) {return document.getElementById(id);}
    
//Dar o id do layer e se quer aumentar ou diminuir a fonte.
function mudaFonte(id, opt) {
    var tamPadrao = 11;
    var lineHeight = 16;
    if(opt == 'a') {
    	var tamNovo = tamPadrao;
    	var	lineHeightNovo = lineHeight;
    }
    if(opt == 'aa') {
    	tamNovo = tamPadrao + 2;
    	lineHeightNovo = lineHeight + 2;
    }
    if(opt == 'aaa') {
    	tamNovo = tamPadrao + 3;
    	lineHeightNovo = lineHeight + 4;
    }
    $(id).style.fontSize = tamNovo+"px";
    $(id).style.lineHeight = lineHeightNovo+"px";
}
