// Attive - Soluções Web

function rolar(quantovai){

	var posicao = quantovai;
	var x = 0;
	while (x<posicao) {
	
		window.scrollTo(x,0);
		x = x + 30;
	}
	
	document.orcamento.moco.value = posicao;
 
}
function volta() {

	var posatual = document.orcamento.moco.value;
	var novo = 0;
	while (novo<posatual) {
	
	window.scrollTo(posatual,0);
	
	posatual = posatual - 30;
	}
document.orcamento.moco.value = 0;
}

/////
var state = 'hidden'; 

function showhide(layer_ref) { 

	if (state == 'visible') { 
		state = 'hidden'; 
	} 
	else { 
		state = 'visible'; 
	} 
	if (document.all) { //IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + layer_ref + ".style.visibility = state"); 
	} 
	if (document.layers) { //IS NETSCAPE 4 or below 
		document.layers[layer_ref].visibility = state; 
	} 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(layer_ref); 
		hza.style.visibility = state; 
	} 
} 
function abreport(endereco,largura,altura) {
    window.open( endereco, "Janela", "status = 1, height = "+altura+", width = "+largura+", resizable = 0" );

}
