function verif()
{
	if (document.restrito.email.value == '' || document.restrito.email.value.indexOf("@")==-1 || document.restrito.email.value.indexOf(".")==-1)
	{
	alert('Campo EMAIL inválido!')
	}
	else
	document.restrito.submit();
}

function verif_eng()
{
	if (document.restrito.email.value == '' || document.restrito.email.value.indexOf("@")==-1 || document.restrito.email.value.indexOf(".")==-1)
	{
	alert('Field EMAIL incorrect!')
	}
	else
	document.restrito.submit();
}

// função que verifica as manifestações investor excessão até o momento IOCHPE
function verif_manifestacao()
{
	if (document.frm.assunto.value == '' || document.frm.assunto.value.indexOf("@")==-1 || document.frm.assunto.value.indexOf(".")==-1)
	{
	alert('Campo ASSUNTO inválido!')
	}
	else if (document.frm.comentario.value == '')	
	{
	alert('Campo Descrição não pode ser em branco!')	
	}
	else
	document.frm.submit();
}

function verif_manifestacao_eng()
{
	if (document.frm.assunto.value == '' || document.frm.assunto.value.indexOf("@")==-1 || document.frm.assunto.value.indexOf(".")==-1)
	{
	alert('Field ASSUNTO incorrect!')
	}
	else if (document.frm.comentario.value == '')	
	{
	alert('Field Message blank!')	
	}	
	else
	document.frm.submit();
}
 
function MostraMenu(obj){

	if(document.getElementById){
	var el = document.getElementById(obj);
		if(el.style.display != "block"){ //DynamicDrive.com change
			el.style.display = "block";			
		}else{
			el.style.display = "none";
			//MM_swapImgRestore()
		}
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function verif_email()
{
	if (document.form1.email.value == '' || document.form1.email.value.indexOf("@")==-1 || document.form1.email.value.indexOf(".")==-1)
	{
	alert('Campo EMAIL inválido!')
	}
	else if (document.form1.msg.value == '')	
	{
	alert('Campo Mensagem não pode ser em branco!')	
	}
	else
	document.form1.submit();
}

function verif_email_eng()
{
	if (document.form1.email.value == '' || document.form1.email.value.indexOf("@")==-1 || document.form1.email.value.indexOf(".")==-1)
	{
	alert('Field EMAIL incorrect!')
	}
	else if (document.form1.msg.value == '')	
	{
	alert('Field Message blank!')	
	}	
	else
	document.form1.submit();
}
 
function Imprimir(url) {
window.open(url, 'print', 'width=1,height=1,left=0,top=0,scrollbars=0,resizable=0,menubar=0,toolbar=0');
}

/* Menu */

/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/gallery/more_and_more.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

onload = function() {
	var e, i = 0;
	while (e = document.getElementById('menu').getElementsByTagName ('p') [i++]) {
		if (e.className == 'switch') {
		e.onclick = function () {
			var getEls = document.getElementById('menu').getElementsByTagName('DIV');
				for (var z=0; z<getEls.length; z++) {
				if (getEls[z].className == 'hide') {
				w=getEls[z].previousSibling;
				while (w.nodeType!=1) {
					w=w.previousSibling;
					}
				w.className=w.className.replace('switch over', 'switch');
				}
				if (getEls[z].className == 'show') {
				getEls[z].className=getEls[z].className.replace('show', 'hide');
				w=getEls[z].previousSibling;
				while (w.nodeType!=1) {
					w=w.previousSibling;
					}
				w.className=w.className.replace('switch off', 'switch over');
				}
			}
			this.className = this.className == 'switch' ? 'switch off' : 'switch';
			x=this.nextSibling;
			while (x.nodeType!=1) {
				x=x.nextSibling;
				}
			x.className = this.className == 'switch off' ? 'show' : 'hide';
			}
		}
	}
}
 
function abrePopup(){window.open("http://www.mzweb.com.br/jhsfri/web/Video_BoaVista_eng.asp", "nome", "width=400, height=350");}
