
function hiddenDiv(DivName, Fieldname){

		/* Oculta mensagem para campo ser preenchido */
		/* Propriedades do CSS a ser controlado pelo JS */
		state = 'hidden';
		display = 'none';
		
		/* Variaveis que estao vindo da funcao */
		layer_ref = DivName;
		field     = Fieldname;
		
		if (document.all) { //IS IE 4 or 5 (or 6 beta)
			eval( "document.all." + layer_ref + ".style.visibility = state");
			eval( "document.all." + layer_ref + ".style.display = display");
		}
		if (document.layers) { //IS NETSCAPE 4 or below
			document.layers[layer_ref].visibility = state;
			document.layers[layer_ref].display = display;
		}
		if (document.getElementById && !document.all) {
			maxwell_smart = document.getElementById(layer_ref);
			maxwell_smart.style.visibility = state;
			maxwell_smart.style.display = display;
		}

		eval( "document.inputForm." + field + ".style.border=''" );
		
}


