/*VALIDA FORMULARIO CONTACTO*/

function validaContacto(form)
{
	
	if(Empty(form.nombre.value)) 
	{
		alert('Ingrese su nombre');  
		form.nombre.focus(); 
		return false; 
	}
	

	if(!isMail(form.email.value)) 
	{
		alert('Ingrese su e-mail')  
		form.email.focus(); 
		return false; 
	}
	
	if(!isInteger(form.telefono.value)) 
	{
		alert('Ingrese su teléfono') 
		form.telefono.focus(); 
		return false; 
	}
	
	
	if(Empty(form.motivo.value)) 
	{
		alert('Ingrese motivo contacto');  
		form.motivo.focus(); 
		return false; 
	}
	
	
	if(Empty(form.motivo.value)) 
	{
		alert('Ingrese motivo contacto');  
		form.motivo.focus(); 
		return false; 
	}
	
	
	
	
	return; 

}

function habilita(){
    if(document.formulario.otro.checked == true){
        document.formulario.input_otro.disabled = false;
		document.formulario.input_otro.style.background = "#E5E5E5";
	}
    else{
        document.formulario.input_otro.disabled = true;
		document.formulario.input_otro.style.background = "#999";
    }
} 