function form_jump(targ,selObj,restore){
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 if (restore) selObj.selectedIndex=0;
}

function view_image(url)
{ 
new_window = window.open(url,'window_name','toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width=500,height=360,left=25,top=25')
}

	function tx2(){
	new_window = open("tx2","displayWindow","width=450,height=550,left=50,top=30");
	}

	function validacamposcontato(){
		var contato=document.contato;
		var msg="";	
		
		if(contato.nome.value == "") {msg=msg + "\n Digite seu nome.";}
		if(contato.email.value == ""){msg=msg + "\n Digite seu email.";}
		if(contato.email.value.indexOf('@', 0) == -1){msg=msg + "\n Digite um e-mail valido.";}
		if(contato.assunto.value == "") {msg=msg + "\n Selecione um assunto.";}
		if(contato.texto.value == "") {msg=msg + "\n Escreva algo na mensagem."; }
			
		if(msg != ""){
			msg="Erro no preenchimento dos campos:\n" + msg;
			alert(msg);
			return false;
		} else {
			return true;
		}
	}
	
	function foconome(){
	document.contato.nome.focus();
	}