function validarForm(){
	
// ENVIAR FOTO HOME
// -> Arquivo
if( document.sendPicForm.muralSendPic.value=="" || document.sendPicForm.muralSendPic.value.length < 3){
	document.getElementById('muralSendPic').style.borderColor="#ff8125";
	document.sendPicForm.muralSendPic.focus();
	document.getElementById('muralSendPicError').style.display='block';
	return false;
}else{
	document.getElementById('muralSendPicError').style.display='none';
}
// -> Nome
if( document.sendPicForm.muralSendPicName.value=="" || document.sendPicForm.muralSendPicName.value.length < 3){
	document.getElementById('muralSendPicName').style.borderColor="#ff8125";
	document.sendPicForm.muralSendPicName.focus();
	document.getElementById('muralSendPicError').style.display='block';
	return false;
}else{
	document.getElementById('muralSendPicName').style.borderColor="#e0e0e0";
	document.getElementById('muralSendPicError').style.display='none';
}
// -> E-mail
if( document.sendPicForm.muralSendPicEmail.value=="" || document.sendPicForm.muralSendPicEmail.value.indexOf('@')==-1 || document.sendPicForm.muralSendPicEmail.value.indexOf('.')==-1 ){
	document.getElementById('muralSendPicEmail').style.borderColor="#ff8125";
	document.sendPicForm.muralSendPicEmail.focus();
	document.getElementById('muralSendPicError').style.display='block';
	return false;
}else{
	document.getElementById('muralSendPicEmail').style.borderColor="#e0e0e0";
	document.getElementById('muralSendPicError').style.display='none';
}
// -> Mensagem
if( document.sendPicForm.muralSendPicMsg.value=="" || document.sendPicForm.muralSendPicMsg.value.length < 3){
	document.getElementById('muralSendPicMsg').style.borderColor="#ff8125";
	document.sendPicForm.muralSendPicMsg.focus();
	document.getElementById('muralSendPicError').style.display='block';
	return false;
}else{
	document.getElementById('muralSendPicError').style.display='none';
}
// -> Checkbox
if( document.sendPicForm.muralPicsAgree.checked == false ){
	document.getElementById('muralSendPicCheck').style.display='block';
	document.getElementById('enftWarn2').style.display='block';
	document.getElementById('enftWarn').style.display='none';
	document.getElementById('muralPicsAgree').style.borderColor="#ff8125";
	return false;
}else{
	document.getElementById('muralSendPicCheck').style.display='none';
	document.getElementById('enftWarn2').style.display='none';
	document.getElementById('enftWarn').style.display='block';
}

return true;
}

function reservasCheck(){
// FORMULARIO CONTATO/RESERVAS
	// Nome
	if(	document.formularioContato.fldContact_name.value=="" || document.formularioContato.fldContact_name.value.length < 3){
	//	document.getElementById('muralSendPicMsg').style.borderColor="#ff8125";
	//	window.alert("Você clicou no botão OK");
		document.formularioContato.fldContact_name.focus();
		document.getElementById('alertName').style.display='block';
		return false;
	}else{
		document.getElementById('alertName').style.display='none';
	}

	// E-mail
	if( document.formularioContato.fldContact_email.value=="" || document.formularioContato.fldContact_email.value.indexOf('@')==-1 || document.formularioContato.fldContact_email.value.indexOf('.')==-1 ){
		document.formularioContato.fldContact_email.focus();
		document.getElementById('alertEmail').style.display='block';
		return false;
	}else{
		document.getElementById('alertEmail').style.display='none';
	}

	// Assunto
	if( document.formularioContato.fldContact_assunto.value=="" || document.formularioContato.fldContact_assunto.value.length < 3){
		document.formularioContato.fldContact_assunto.focus();
		document.getElementById('alertSubject').style.display='block';
		return false;
	}else{
		document.getElementById('alertSubject').style.display='none';
	}

	// Mensagem
	if( document.formularioContato.fldContact_message.value=="" || document.formularioContato.fldContact_message.value.length < 3){
		document.formularioContato.fldContact_message.focus();
		document.getElementById('alertMessage').style.display='block';
		return false;
	}else{
		document.getElementById('alertMessage').style.display='none';
	}

	
	
return true;
}
/*


return true;
}
*/


function cleanbx(){
	telCampo = document.getElementById('fld_tel_ctc').value;

	if (telCampo == "(ddd) + telefone"){
		document.getElementById('fld_tel_ctc').value = "";
	}else{
		document.getElementById('fld_tel_ctc').value = telCampo;
	}
}       

function fillbx(){
	telCampo = document.getElementById('fld_tel_ctc').value;

	if(telCampo == ""){
		document.getElementById('fld_tel_ctc').value = "(ddd) + telefone";
	}else if((telCampo != "(ddd) + telefone") && (telCampo != "")){
		document.getElementById('fld_tel_ctc').value = telCampo;
	}
}
