// JavaScript Document
function valida_envia(){
//	valido el nombre
	if (document.frmcontacto.txtnom.value.length==0){
		alert("Escriba un nombre");
		document.frmcontacto.txtnom.focus();
		return false;
}

if ((document.frmcontacto.txtmail.value == "") || 
(document.frmcontacto.txtmail.value.indexOf('@') == -1) || 
(document.frmcontacto.txtmail.value.indexOf('.') == -1)) {
alert("Por favor ingresa tu mail o verifica que sea correcto.") 
  return 0;
}

	if (document.frmcontacto.txtubi.value.length==0){
		alert("Escriba ubicacion");
		document.frmcontacto.txtubi.focus();
		return false;
}
	if (document.frmcontacto.txta.value.length==0){
		alert("Escriba comentario");
		document.frmcontacto.txta.focus();
		return false;
}

document.frmcontacto.action = "enviacontactos.php";
	document.frmcontacto.submit();
	
}


function validarecomnedacion(){
//	valido el nombre
	if (document.frmrecomienda.txtnom.value.length==0){
		alert("Escriba un nombre");
		document.frmrecomienda.txtnom.focus();
		return false;
}

	if (document.frmrecomienda.txtamix.value.length==0){
		alert("Escriba el nombre de sus amigos");
		document.frmrecomienda.txtamix.focus();
		return false;
}

if ((document.frmrecomienda.txtmail.value == "") || 
(document.frmrecomienda.txtmail.value.indexOf('@') == -1) || 
(document.frmrecomienda.txtmail.value.indexOf('.') == -1)) {
alert("Por favor ingresa tu mail o verifica que sea correcto.") 
  return 0;
}

	

	if (document.frmrecomienda.txta.value.length==0){
		alert("Escriba comentario");
		document.frmrecomienda.txta.focus();
		return false;
}

document.frmrecomienda.action = "recomineda.php";
	document.frmrecomienda.submit();
	
}


// JavaScript Document
function valida_plan(){
//	valido el nombre
	if (document.frmplan.txtnom.value.length==0){
		alert("Escriba un nombre");
		document.frmplan.txtnom.focus();
		return false;
}

if ((document.frmplan.txtmail.value == "") || 
(document.frmplan.txtmail.value.indexOf('@') == -1) || 
(document.frmplan.txtmail.value.indexOf('.') == -1)) {
alert("Por favor ingresa tu mail o verifica que sea correcto.") 
  return 0;
}


	if (document.frmplan.txtubi.value.length==0){
		alert("Escriba ubicacion");
		document.frmplan.txtubi.focus();
		return false;
}
	if (document.frmplan.txta.value.length==0){
		alert("Escriba comentario");
		document.frmplan.txta.focus();
		return false;
}

document.frmplan.action = "solicitaplan.php";
	document.frmplan.submit();
	
}




// JavaScript Document
function valida_presu(){
//	valido el nombre
	if (document.frmpresupuesto.txtnom.value.length==0){
		alert("Escriba un nombre");
		document.frmpresupuesto.txtnom.focus();
		return false;
}



if ((document.frmpresupuesto.txtmail.value == "") || 
(document.frmpresupuesto.txtmail.value.indexOf('@') == -1) || 
(document.frmpresupuesto.txtmail.value.indexOf('.') == -1)) {
alert("Por favor ingresa tu mail o verifica que sea correcto.") 
  return 0;
}

if (document.frmpresupuesto.txta.value.length==0){
		alert("Escriba comentario");
		document.frmpresupuesto.txta.focus();
		return false;
}

document.frmpresupuesto.action = "solicitaplan.php";
	document.frmpresupuesto.submit();
	
}


