/*Script utilizado para validar la informacion del correo*/
function enviarcorreo()
	{
	//valores que se deben especificar
	Nombre = F_Contacto.Name.value;
	Email = F_Contacto.Email.value;
	Country = F_Contacto.country.value;
				
	if (Nombre != '')
	{
		if (Country != '')
		{
				if (Email != '')
				{
					if (Email.search('@')>=1)
					{
							F_Contacto.submit();
					}
					else
					{
						alert("Please Insert the mail at nombre@dominio");
					}
				}
				else
				{
					alert("Please specify a mail");
					F_Contacto.Email.focus();
				}
		}
		else
		{
			alert("Please specify your country");
			F_Contacto.Country.focus();
		}
	}
	else
	{
		F_Contacto.Name.focus();
		alert("Please specify your name");
		
	}

}


function limpiar()
{
F_Contacto.Name.value = "";
F_Contacto.Email.value= "";
F_Contacto.country.value= "";


}

/*FORMULARIOS DE ENVIO DE CORREO PARA LA PAGINA DE CONTACT US*/
/*Script utilizado para validar la informacion del correo*/
function sendmail()
	{
	//valores que se deben especificar
	Nombre = F_Contactus.Name.value;
	Email = F_Contactus.Email.value;
	Country = F_Contactus.City.value;
				
	if (Nombre != '')
	{
		if (Country != '')
		{
				if (Email != '')
				{
					if (Email.search('@')>=1)
					{
							F_Contactus.submit();
					}
					else
					{
						alert("Please Insert the mail at nombre@dominio");
					}
				}
				else
				{
					alert("Please specify a mail");
					F_Contactus.Email.focus();
				}
		}
		else
		{
			alert("Please specify your country");
			F_Contactus.Country.focus();
		}
	}
	else
	{
		F_Contactus.Name.focus();
		alert("Please specify your name");
		
	}

}

function clearcontactus()
{
F_Contactus.Name.value = "";
F_Contactus.Email.value= "";
F_Contactus.City.value= "";
F_Contactus.Phone1.value = "";
F_Contactus.Phone2.value= "";
F_Contactus.Fax.value= "";
F_Contactus.Comments.value= "";
}

/*FORMULARIOS DE ENVIO DE CORREO PARA LA PAGINA DE INFORMACION*/
/*Script utilizado para validar la informacion del correo*/

function sendinformation()
	{
	//valores que se deben especificar
	Nombre = F_information.ques_1.value;
	Email = F_information.ques_4.value;
	x=F_information.ques_4.value.split("@");
				
	if (Nombre != '')
	{
		if (Email != '')
		{            
			if( x.length != 2 || x[0].length < 2 || x[1].length<4)
			{
				alert("Please Insert the mail at nombre@dominio");
				F_information.ques_4.focus();
			}
			else
			{
					F_information.submit();
										
			}
		}
		else
		{
		   alert("Please insert a valid email");
		   F_information.ques_4.focus();
		}
	}
    else
	{
		alert("Please specify your name");
		F_information.ques_1.focus();
		
	}

}



