function hidediv(valor) { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById(valor).style.display = 'none'; 
} 
else { 
if (document.layers) { // Netscape 4 
document.hideshow.display = 'none'; 
} 
else { // IE 4 
document.all.hideshow.style.display = 'none'; 
} 
} 
} 

function showdiv(valor) { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById(valor).style.display = 'block'; 
} 
else { 
if (document.layers) { // Netscape 4 
document.hideshow.display = 'block'; 
} 
else { // IE 4 
document.all.hideshow.style.display = 'block'; 
} 
} 
} 

function selOver(objeto) {
	objeto.style.backgroundColor='#316ac5';
	objeto.style.color='#FFFFFF';
}
function selOut(objeto) {
	objeto.style.backgroundColor='';
	objeto.style.color='';
}
function tituloOver(objeto) {
	objeto.style.backgroundColor='#FFFFFF';
	objeto.style.borderBottomColor='#f9b119';
}
function tituloOut(objeto) {
	objeto.style.backgroundColor='';
	objeto.style.borderColor='';
}
function popup(url, name, width, height)
{
   var str = "height=" + height + ",innerHeight=" + height;
		str += ",width=" + width + ",innerWidth=" + width;
		str += ",status=no,scrollbars=yes,resizable=no";
		  if (window.screen)
		{
				var ah = screen.availHeight - 30;
				var aw = screen.availWidth - 10;
				var xc = (aw - width) / 2;
				var yc = (ah - height) / 2;

				str += ",left=" + xc + ",screenX=" + xc;
				str += ",top=" + yc + ",screenY=" + yc;
		}
		var win = window.open(url, name, str);
}
function listagem(url)
{
	var height = "450";
	var width = "600";
	var name = "Resultado";
   var str = "height=" + height + ",innerHeight=" + height;
		str += ",width=" + width + ",innerWidth=" + width;
		str += ",status=yes,scrollbars=yes,resizable=no";
		  if (window.screen)
		{
				var ah = screen.availHeight - 30;
				var aw = screen.availWidth - 10;
				var xc = (aw - width) / 2;
				var yc = (ah - height) / 2;

				str += ",left=" + xc + ",screenX=" + xc;
				str += ",top=" + yc + ",screenY=" + yc;
		}
		var win = window.open(url, name, str);
}
function formulario(url)
{
	var height = "400";
	var width = "400";
	var name = "Formulario";
   var str = "height=" + height + ",innerHeight=" + height;
		str += ",width=" + width + ",innerWidth=" + width;
		str += ",status=yes,scrollbars=yes,resizable=no";
		  if (window.screen)
		{
				var ah = screen.availHeight - 30;
				var aw = screen.availWidth - 10;
				var xc = (aw - width) / 2;
				var yc = (ah - height) / 2;

				str += ",left=" + xc + ",screenX=" + xc;
				str += ",top=" + yc + ",screenY=" + yc;
		}
		var win = window.open(url, name, str);
}
