//Formulario de Contacto

function validaContacto(form)
{
	
	if(Empty(form.nombre.value)) 
	{
		alert('Ingrese su Nombre y Apellido'); 
		form.nombre.focus(); 
		return false; 
	}
	
	if(!isMail(form.email.value))  
	{
		alert('Ingrese su e-mail')  
		form.email.focus(); 
 		form.email.select(); 
		return false; 
	}
	
	if(!isInteger(form.telefono.value)) 
	{
		alert('Ingrese su teléfono (sólo números)') 
		form.telefono.focus(); 
		form.telefono.select(); 
		return false; 
	}
	
	
	if(Empty(form.comentario.value) || (form.comentario.value.length >= 400))
	{
		alert('Ingrese el motivo de contacto. (Máximo permitido de caracteres: 400), ahora existen '+ form.comentario.value.length);
		form.comentario.focus();
		return false;
	}

	return; 

}


function validaNewsletter(form)
{
	
	if(Empty(form.nombre.value) || form.nombre.value=="Ingrese su Nombre")
	{
		alert('Ingrese su Nombre');
		form.nombre.value="";
		form.nombre.focus(); 
		return false; 
	}
	
	if(!isMail(form.email.value) || form.email.value=="Ingrese su E-mail")  
	{
		alert('Ingrese su e-mail')  
		form.email.focus(); 
 		form.email.select(); 
		return false; 
	}
	

}


//Formulario Trabaje aqui

function validaTrabaje(form)
{
	
	if(Empty(form.nombre.value)) 
	{
		alert('Ingrese su Nombre y Apellido'); 
		form.nombre.focus(); 
		return false; 
	}
	
	if(!isMail(form.email.value))  
	{
		alert('Ingrese su e-mail')  
		//form.email.focus(); 
 		form.email.select(); 
		return false; 
	}
	
	if (form.cargos.selectedIndex==0) {
		alert('Seleccione cargo al que postula');
		form.cargos.focus();
        return false;
    }

	
	if(!isInteger(form.telefono.value)) 
	{
		alert('Ingrese su teléfono (sólo números)') 
		//form.telefono.focus(); 
		form.telefono.select(); 
		return false; 
	}
	

	if(Empty(form.ciudad.value)) 
	{
		alert('Ingrese su ciudad de residencia'); 
		form.ciudad.focus(); 
		return false; 
	}

	if(Empty(form.adjuntar.value)) 
	{
		alert('Ingrese su documento en formato word o pdf'); 
		form.adjuntar.focus(); 
		return false; 
	}

	return; 

}

// validaciones en ingles
//Formulario de Contacto

function validaContactoeng(form)
{
	
	if(Empty(form.nombre.value)) 
	{
		alert('Enter your Name'); 
		form.nombre.focus(); 
		return false; 
	}
	
	if(!isMail(form.email.value))  
	{
		alert('Enter your Email')  
		form.email.focus(); 
 		form.email.select(); 
		return false; 
	}
	
	if(!isInteger(form.telefono.value)) 
	{
		alert('Enter your Phone (only numbers)') 
		form.telefono.focus(); 
		form.telefono.select(); 
		return false; 
	}
	
	
	if(Empty(form.comentario.value) || (form.comentario.value.length >= 400))
	{
		alert('Enter the reason of Comments (Maximum characters allowed: 400), there are now '+ form.comentario.value.length);
		form.comentario.focus();
		return true;
	}

	return; 

}


function validaNewslettereng(form)
{
	
	if(Empty(form.nombre.value) || form.nombre.value=="Enter your Name")
	{
		alert('Enter your Name');
		form.nombre.value="";
		form.nombre.focus(); 
		return false; 
	}
	
	if(!isMail(form.email.value) || form.email.value=="Enter your E-mail")  
	{
		alert('Enter your E-mail')  
		form.email.focus(); 
 		form.email.select(); 
		return false; 
	}
	

}


//Formulario Trabaje aqui INGLES

function validaTrabajoen(form)
{
	
	if(Empty(form.nombre.value)) 
	{
		alert('Enter your Name'); 
		form.nombre.focus(); 
		return false; 
	}
	
	if(!isMail(form.email.value))  
	{
		alert('Enter your Email')  
		form.email.focus(); 
 		form.email.select(); 
		return false; 
	}
	
	if (form.cargos.selectedIndex==0) {
		alert('Select from the postulates that');
		form.cargos.focus();
        return false;
    }

	
	if(!isInteger(form.telefono.value)) 
	{
		alert('Enter your Phone (only numbers)') 
		form.telefono.focus(); 
		form.telefono.select(); 
		return false; 
	}
	

	if(Empty(form.ciudad.value)) 
	{
		alert('Ingrese su ciudad de residencia'); 
		form.ciudad.focus(); 
		return false; 
	}

	if(Empty(form.adjuntar.value)) 
	{
		alert('Ingrese su documento en formato word o pdf'); 
		form.adjuntar.focus(); 
		return false; 
	}

	return; 

}
