function resizeIframepesquisa() {
	h = parent.document.getElementById('icatalogo');
	hHeight = document.body.scrollHeight;
	h.style.height = hHeight + 0 + 'px';
	h.style.width = 620;
	
}

function resizeIframecatalogo() {
	y = parent.document.getElementById('icatalogo');
	yHeight = document.body.scrollHeight;
	y.style.height = yHeight + 0 + 'px';
	y.style.width = 620;
	
}


function resizeIframeAcesso() {
	x = parent.document.getElementById('iacesso');
	xHeight = document.body.scrollHeight;
	x.style.height = xHeight + 3 + 'px';
	x.style.width = 181;
}

function number_format(val, numDec) {
	resultado = "";
	tam = val.length;
	contador=0;

	while ((tam-numDec)>0) {
		resultado = "." + val.substring(tam-numDec,tam) + resultado;
		tam = tam-numDec;
		contador++;
	}

	if (contador>1) {
		resultado = val.substring(0,tam) + "," + resultado.substring(1,resultado.length);
	} else if (contador==0) {
		while (tam<numDec) {
			val = "0" + val;
			tam++;
		}
	}
}
