function RedimensionaIframe() {
	var IFR = document.getElementById('conteudo_target');	
	IFR.style.height = "200px";
	IFR.style.height = (IFR.contentWindow)?
	IFR.contentWindow.document.body.scrollHeight:
	document.frames['conteudo_target'].document.body.scrollHeight;		
}


function RedimensionaIframeInterno() {
	var IFR = document.getElementById('conteudo_target2');	
	IFR.style.height = "250";
	IFR.style.height = (IFR.contentWindow)?
	IFR.contentWindow.document.body.scrollHeight:
	document.frames['conteudo_target2'].document.body.scrollHeight;		
}

function Valida(){

	if(document.all.nome.value == ""){
		alert("Digite seu Nome");
		document.all.nome.focus();
		return false;
	}
if (document.form1.email.value == ""){
	  alert("O campo E-mail deve ser preenchido!");
	  document.form1.email.focus();
	  return false;
	}
	//validar email(verificao de endereco eletrônico)
	parte1 = document.form1.email.value.indexOf("@");
	parte2 = document.form1.email.value.indexOf(".");
	parte3 = document.form1.email.value.length;
	if (!(parte1 >= 1 && parte2 >= 2 && parte3 >= 3)) {
	  alert ("O campo E-mail deve conter um endereco eletrônico!");
	  document.form1.email.focus();
	  return false;
	}
	if(document.all.cidade.value == ""){
		alert("Digite sua Cidade");
		document.all.cidade.focus();
		return false;
	}
	if(document.all.uf.value == ""){
		alert("Digite seu Estado");
		document.all.uf.focus();
		return false;
	}
	if(document.all.assunto.value == ""){
		alert("Digite um Assunto");
		document.all.assunto.focus();
		return false;
	}
	if(document.all.mensagem.value == ""){
		alert("Digite sua Mensagem");
		document.all.mensagem.focus();
		return false;
	}
return true;
}

	function MostraUsuario(id){
		if(document.getElementById('lin' + id).style.display == ''){
			document.getElementById('lin' + id).style.display = 'none';
		} else {
			document.getElementById('lin' + id).style.display = '';
			
		}
					parent.RedimensionaIframe()

	}
	

function open_popup(url, largura, altura) {
	window.open(url,'JANELA_FOTOS','width=' + largura + ',height=' + altura + ',top=' + ((screen.availHeight/2) - (altura/2)) + ',left=' + ((screen.availWidth/2) - (largura/2)));

	return ;
}


	function value_change(value, this_)
{
	if (value == this_.value) {
		this_.value = '';
	}
	else if(this_.valeu == '') {
		this_.value = value;
	}
	else {
		this_.value = this_.value;
	}
}


defaultStatus = ": : TargeTDown : :"
