// JavaScript Document
 function abrir(pagina, largura, altura) {
   // Definindo meio da tela
   var esquerda = (screen.width - largura)/2;
   var topo = (screen.height - altura)/2;

   // Abre a nova janela 
   window.open(pagina,'','height=' + altura + ', width=' + largura + ', top=' + topo + ', left=' + esquerda); 
 }
 
 tms=new Array()
		
		//Mostra o submenu no mouseover
		function over(n){
			if(typeof(tms[n])!="undefined")clearTimeout(tms[n])
			document.getElementById("s"+n).style.visibility="visible"
		}
		//Esconde o submenu no mouseout
		function out(n){
			tms[n]=setTimeout('document.getElementById("s'+n+'").style.visibility="hidden"',200)
		}
		
		
 function fs_validar_campos(formulario) {		
	for (i=0;i<formulario.elements.length;i++) {
		if (formulario.elements[i].id.toLowerCase().toString() == 'obrigatorio' && 
			formulario.elements[i].value.toString().length < 	2) {
				alert('Os campos com (*) são obrigatório.');
			formulario.elements[i].focus();
			return false;
		}
	}
}
