// JavaScript Document


function resizeMe(){
	docHeight = conteudo.document.body.scrollHeight
	document.getElementById('conteudo').style.height = docHeight + 0 + 'px'
}
 
function resizeMe2(obj){
docHeight = solucoes.document.body.scrollHeight;
obj.style.height = docHeight + 0 + 'px';

	docHeight = parent.conteudo.document.body.scrollHeight;
	parent.document.getElementById('conteudo').style.height = docHeight + 0 + 'px';


}
	function valida_form_email() {
		if (document.webmail.f_email.value == "") {
			alert("Favor informar seu email!");
			document.webmail.f_email.focus();
			return false;
		} 
		if (document.webmail.f_pass.value == "") {
			alert("Favor informar sua senha!");
			document.webmail.f_pass.focus();
			return false;
		} 
		return true;
	}
	
	function valida_form() {
		if (document.enviar_email.nome.value == "") {
			alert("Favor informar seu nome!");
			document.enviar_email.nome.focus();
			return false;
		} 
		if (document.enviar_email.email.value == "") {
			alert("Favor informar seu e-mail!");
			document.enviar_email.email.focus();
			return false;
		} 
		if (document.enviar_email.mensagem.value == "") {
			alert("Favor escrever uma mensagem!");
			document.enviar_email.mensagem.focus();
			return false;
		} 
		return true;
	}

function abre_site(width, height, nome) {
   		var top; var left;
  		top = ( (screen.height/2) - (height/2) )
  		left = ( (screen.width/2) - (width/2) )
		window.open(nome, "","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=1,width="+width+			 					",height="+height+",left="+left+",top="+top);
	}


