$(function(){
	$("#boton1").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton2").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton3").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton4").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton5").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton6").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton7").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton8").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton9").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});

$(function(){
	$("#boton10").hover(
		function () {
	      $(this).fadeTo("fast", 0.7);
	      },
	  function () {
	      $(this).fadeTo("fast", 1);
    });
});


function valida_envia(){
    //valido el nombre
    if (document.fvalida.titulo.value.length==0){
       alert("Debe especificar un título")
       document.fvalida.titulo.focus()
       return 0;
    }
    if (document.fvalida.duracion.value.length==0){
       alert("Debe especificar la duracion")
       document.fvalida.duracion.focus()
       return 0;
    }
    if (document.fvalida.categoria.value.length==0){
       alert("Debe especificar una categoria")
       document.fvalida.categoria.focus()
       return 0;
    }
    if (document.fvalida.lugar.value.length==0){
       alert("Debe especificar lugar y año de producción")
       document.fvalida.lugar.focus()
       return 0;
    }
    if (document.fvalida.nombre_d.value.length==0){
       alert("Debe estar el nombre de la directora")
       document.fvalida.nombre_d.focus()
       return 0;
    }
    if (document.fvalida.dni_d.value.length==0){
       alert("Debe estar el dni de la directora")
       document.fvalida.dni_d.focus()
       return 0;
    }
    if (document.fvalida.direccion_d.value.length==0){
       alert("Debe estar la dirección de la directora")
       document.fvalida.direccion_d.focus()
       return 0;
    }
    if (document.fvalida.mail_d.value.length==0){
       alert("Debe estar el mail de la directora")
       document.fvalida.mail_d.focus()
       return 0;
    }
    if (document.fvalida.tel_d.value.length==0){
       alert("Deben estar los teléfonos de la directora")
       document.fvalida.tel_d.focus()
       return 0;
    }
    if (document.fvalida.sinopsis.value.length==0){
       alert("Debe estar la sinopsis")
       document.fvalida.sinopsis.focus()
       return 0;
    }
    //el formulario se envia

    document.fvalida.submit();
    

    
} 
