OCULTO="none";
VISIBLE="block";
OCULTO2="none";
VISIBLE2="block";
OCULTO3="none";
VISIBLE3="block";
OCULTO4="none";
VISIBLE4="block";
/////////////////////////////////////////////////////////////////////////////
function mostrar(correo) {
  document.getElementById(correo).style.display=VISIBLE;
  document.getElementById('ver_off').style.display=VISIBLE;
  document.getElementById('ver_on').style.display=OCULTO;
}
function ocultar(correo) {
  document.getElementById(correo).style.display=OCULTO;
  document.getElementById('ver_off').style.display=OCULTO;
  document.getElementById('ver_on').style.display=VISIBLE;
}
/////////////////////////////////////////////////////////////////////////////
function mostrar(ceviche) {
  document.getElementById(ceviche).style.display=VISIBLE2;
  document.getElementById('ver_off_ceviche').style.display=VISIBLE2;
  document.getElementById('ver_on_ceviche').style.display=OCULTO2;
}
function ocultar(ceviche) {
  document.getElementById(ceviche).style.display=OCULTO2;
  document.getElementById('ver_off_ceviche').style.display=OCULTO2;
  document.getElementById('ver_on_ceviche').style.display=VISIBLE2;
}
/////////////////////////////////////////////////////////////////////////////
function mostrar(chorito) {
  document.getElementById(chorito).style.display=VISIBLE3;
  document.getElementById('ver_off_chorito').style.display=VISIBLE3;
  document.getElementById('ver_on_chorito').style.display=OCULTO3;
}
function ocultar(chorito) {
  document.getElementById(chorito).style.display=OCULTO3;
  document.getElementById('ver_off_chorito').style.display=OCULTO3;
  document.getElementById('ver_on_chorito').style.display=VISIBLE3;
}
/////////////////////////////////////////////////////////////////////////////
function mostrar(lomo) {
  document.getElementById(lomo).style.display=VISIBLE4;
  document.getElementById('ver_off_lomo').style.display=VISIBLE4;
  document.getElementById('ver_on_lomo').style.display=OCULTO4;
}
function ocultar(lomo) {
  document.getElementById(lomo).style.display=OCULTO4;
  document.getElementById('ver_off_lomo').style.display=OCULTO4;
  document.getElementById('ver_on_lomo').style.display=VISIBLE4;
}
/////////////////////////////////////////////////////////////////////////////



//Generar Ajax 

function nuevoAjax()
{ 
	var xmlhttp=false; 
	try 
	{ 
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
	}
	catch(e)
	{ 
		try
		{ 
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
		} 
		catch(E) { xmlhttp=false; }
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp=new XMLHttpRequest(); } 

	return xmlhttp; 
}
function fvaldat()
{
//alert("Pisco");
send_mail();
}
function fvaldat2()
{
//alert("Ceviche");
send_mail2();
}
function fvaldat3()
{
//alert("Chorito");
send_mail3();
}
function fvaldat4()
{
//alert("Lomo");
send_mail4();
}

function send_mail()
{
var str_email = document.getElementById("email").value;
var str_name = document.getElementById("name").value;
var str_file = document.getElementById("filename").value;

var send_info = "/include/attachments.php?email="+str_email+"&name="+str_name+"&filename="+str_file;

//alert(send_info);

document.getElementById("correo").style.display = "block";
document.getElementById("correo").innerHTML="<span class='texto_neg_normal'>Sending...</span>";
ajax_dat=nuevoAjax();

ajax_dat.open("GET", send_info, true);
		ajax_dat.onreadystatechange=function() 
		{ 
			if (ajax_dat.readyState==1)
			{
				//cargando	
			}
			if (ajax_dat.readyState==4)
			{ 
				document.getElementById("correo").innerHTML="<span class='texto_neg_normal'>Sent!</span>";
				setTimeout("document.getElementById(\"correo\").style.display =\"none\";",3000);
//				document.getElementById("email").value="";
			} 
		}
		ajax_dat.send(null);
}





function send_mail2()
{
var str_email = document.getElementById("email").value;
var str_name = document.getElementById("name").value;
document.getElementById("ceviche").style.display = "block";
document.getElementById("ceviche").innerHTML="<span class='texto_neg_normal'>Sending...</span>";
ajax_dat=nuevoAjax();
ajax_dat.open("GET", "/include/enviarcorreoconadjunto2.php?email="+str_email+"&name="+str_name, true);
		ajax_dat.onreadystatechange=function() 
		{ 
			if (ajax_dat.readyState==1)
			{
				//cargando	
			}
			if (ajax_dat.readyState==4)
			{ 
				document.getElementById("ceviche").innerHTML="<span class='texto_neg_normal'>Sent!</span>";
				setTimeout("document.getElementById(\"ceviche\").style.display =\"none\";",3000);
//				document.getElementById("email").value="";
			} 
		}
		ajax_dat.send(null);
}
function send_mail3()
{
var str_email = document.getElementById("email").value;
var str_name = document.getElementById("name").value;
document.getElementById("chorito").style.display = "block";
document.getElementById("chorito").innerHTML="<span class='texto_neg_normal'>Sending...</span>";
ajax_dat=nuevoAjax();
ajax_dat.open("GET", "/include/enviarcorreoconadjunto_chorito.php?email="+str_email+"&name="+str_name, true);
		ajax_dat.onreadystatechange=function() 
		{ 
			if (ajax_dat.readyState==1)
			{
				//cargando	
			}
			if (ajax_dat.readyState==4)
			{ 
				document.getElementById("chorito").innerHTML="<span class='texto_neg_normal'>Sent!</span>";
				setTimeout("document.getElementById(\"chorito\").style.display =\"none\";",3000);
//				document.getElementById("email").value="";
			} 
		}
		ajax_dat.send(null);
}

function send_mail4()
{
var str_email = document.getElementById("email").value;
var str_name = document.getElementById("name").value;
document.getElementById("lomo").style.display = "block";
document.getElementById("lomo").innerHTML="<span class='texto_neg_normal'>Sending...</span>";
ajax_dat=nuevoAjax();
ajax_dat.open("GET", "/include/enviarcorreoconadjunto_lomo.php?email="+str_email+"&name="+str_name, true);
		ajax_dat.onreadystatechange=function() 
		{ 
			if (ajax_dat.readyState==1)
			{
				//cargando	
			}
			if (ajax_dat.readyState==4)
			{ 
				document.getElementById("lomo").innerHTML="<span class='texto_neg_normal'>Sent!</span>";
				setTimeout("document.getElementById(\"lomo\").style.display =\"none\";",3000);
//				document.getElementById("email").value="";
			} 
		}
		ajax_dat.send(null);
}