function Filme(titulooriginal,linguaoriginal,tipofilme, legendas,anoproducao,paisorigem,festivais,premios,produtor,nomeprodutora,enderecoprodutora,telprodutora,faxprodutora,emailprodutora,nomedistribuidor,enderecodistribuidor,teldistribuidor,faxdistribuidor,emaildistribuidor,formato,som,tempo,diretor,fotografia,argumento,editor,musica,atores,sinopse){
       
    this.titulooriginal = titulooriginal;
    this.linguaoriginal = linguaoriginal;
    this.legendas = legendas;
    this.tipofilme = tipofilme;	
    this.anoproducao = anoproducao;
    this.paisorigem = paisorigem;
    this.festivais = festivais;
    this.premios = premios;
    this.produtor = produtor;
    this.nomeprodutora = nomeprodutora;
    this.enderecoprodutora = enderecoprodutora;
    this.telprodutora = telprodutora;
    this.faxprodutora = faxprodutora;
    this.emailprodutora = emailprodutora;		
    this.nomedistribuidor = nomedistribuidor;
    this.enderecodistribuidor = enderecodistribuidor;
    this.teldistribuidor = teldistribuidor;
    this.faxdistribuidor = faxdistribuidor;
    this.emaildistribuidor = emaildistribuidor;
    this.formato = formato;
    this.som = som;
    this.tempo = tempo;
    this.diretor = diretor;
    this.fotografia = fotografia;
    this.argumento = argumento;
    this.editor = editor;
    this.musica = musica;
    this.atores = atores;
    this.sinopse = sinopse;


	   
    d=document.f;
  
    this.validaTitulo = function(){
        var reg = /^[a-z A-Z0-9áéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
        if (d.titulooriginal.value.search(reg)==-1){
	
            document.getElementById("errotitulooriginal").innerHTML = "Mínimo 3 / Máximo 30 Letras";
            document.getElementById("errotitulooriginal").style.color="#FF0000";
            document.getElementById('errotitulooriginal').style.fontSize="11pt";
            document.getElementById("titulooriginal").style.background = "#FFCCCC";

            return false;
        }else{
	
            document.getElementById("titulooriginal").style.background = "#fff";
            document.getElementById("errotitulooriginal").innerHTML = "";
            document.getElementById("titulooriginal").style.background = "#90EE90";

	
            return true;
        }
    }
    
	
	this.validaLingua = function(){
        var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,20}$/
        if (d.linguaoriginal.value.search(reg)==-1){

            document.getElementById("errolinguaoriginal").innerHTML = "Mínimo 3 / Máximo 20 Letras";
            document.getElementById("linguaoriginal").style.background = "#FFCCCC";
            document.getElementById("errolinguaoriginal").style.color="#FF0000";
            document.getElementById('errolinguaoriginal').style.fontSize="11pt";
	


            return false;
        }else{


            document.getElementById("linguaoriginal").style.background = "#fff";
            document.getElementById("errolinguaoriginal").innerHTML = "";
            document.getElementById("linguaoriginal").style.background = "#90EE90";
            return true;
        }
    }
	
    this.validaLegendas = function(){
        var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
        if (d.legendas.value.search(reg)==-1){
	
            document.getElementById("errolegendas").innerHTML = "Mínimo 3 / Máximo 30 Letras";
            document.getElementById("legendas").style.background = "#FFCCCC";
            document.getElementById("errolegendas").style.color="#FF0000";
            document.getElementById('errolegendas').style.fontSize="11pt";

	
            return false;
        }else{
		

            document.getElementById("legendas").style.background = "#fff";
            document.getElementById("errolegendas").innerHTML = "";
            document.getElementById("legendas").style.background = "#90EE90";

            return true;
        }
    }
	
	this.validaTipofilme = function(){
	

        marcado = -1
        for (i=0; i<f.tipofilme.length; i++) {
            if (f.tipofilme[i].checked) {
                marcado = i
                resposta = f.tipofilme[i].value
            }
        }
	
        if (marcado == -1) {
            document.getElementById("errotipofilme").innerHTML = "Selecione o Tipo do Filme";
            document.getElementById("errotipofilme").style.color="#FF0000";
            document.getElementById("errotipofilme").style.fontSize="11pt";
            return false;
        } else {


            document.getElementById("errotipofilme").innerHTML = "";


            return true;
        }
	
    }

	
	
	this.validaAnoproducao = function(){
        var reg = /^[0-9]{4}$/
        if (d.anoproducao.value.search(reg)==-1){

            document.getElementById("erroanoproducao").innerHTML = "Somente Números / 4 Dígitos";
            document.getElementById("anoproducao").style.background = "#FFCCCC";
            document.getElementById("erroanoproducao").style.color="#FF0000";
            document.getElementById('erroanoproducao').style.fontSize="11pt";
            return false;
        }else{
            document.getElementById("anoproducao").style.background = "#fff";
            document.getElementById("erroanoproducao").innerHTML = "";
            document.getElementById("anoproducao").style.background = "#90EE90";
            return true;
        }
    }
	
	this.validaPaisorigem = function(){
        var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
        if (d.paisorigem.value.search(reg)==-1){
	
            document.getElementById("erropaisorigem").innerHTML = "Mínimo 3 / Máximo 30 Letras";
            document.getElementById("paisorigem").style.background = "#FFCCCC";
            document.getElementById("erropaisorigem").style.color="#FF0000";
            document.getElementById('erropaisorigem').style.fontSize="11pt";

            return false;
        }else{
            document.getElementById("paisorigem").style.background = "#fff";
            document.getElementById("erropaisorigem").innerHTML = "";
            document.getElementById("paisorigem").style.background = "#90EE90";
            return true;
        }
    }
	
	this.validaFestivais = function(){
        var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{0,30}$/
        if (d.festivais.value.search(reg)==-1){

            document.getElementById("errofestivais").innerHTML = "Máximo 30 Letras";
            document.getElementById("festivais").style.background = "#FFCCCC";
            document.getElementById("errofestivais").style.color="#FF0000";
            document.getElementById('errofestivais').style.fontSize="11pt";

            return false;
        }else{
            document.getElementById("festivais").style.background = "#fff";
            document.getElementById("errofestivais").innerHTML = "";
            document.getElementById("festivais").style.background = "#90EE90";
            return true;
        }
    }
	
	this.validaPremios = function(){
        var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{0,30}$/
        if (d.premios.value.search(reg)==-1){

            document.getElementById("erropremios").innerHTML = "Máximo 30 Letras";
            document.getElementById("premios").style.background = "#FFCCCC";
            document.getElementById("erropremios").style.color="#FF0000";
            document.getElementById('erropremios').style.fontSize="11pt";
	
            return false;
	
        }else{
            document.getElementById("premios").style.background = "#fff";
            document.getElementById("erropremios").innerHTML = "";
            document.getElementById("premios").style.background = "#90EE90";
            return true;
        }
    }
	
	this.validaProdutor = function(){
        var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
        if (d.produtor.value.search(reg)==-1){

            document.getElementById("erroprodutor").innerHTML = "Mínimo 3 / Máximo 30 Letras";
            document.getElementById("produtor").style.background = "#FFCCCC";
            document.getElementById("erroprodutor").style.color="#FF0000";
            document.getElementById('erroprodutor').style.fontSize="11pt";

            return false;
        }else{
            document.getElementById("produtor").style.background = "#fff";
            document.getElementById("erroprodutor").innerHTML = "";
            document.getElementById("produtor").style.background = "#90EE90";
            return true;
        }
    }
	
	this.validaNomeprodutora = function(){
        var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
        if (d.nomeprodutora.value.search(reg)==-1){

            document.getElementById("erronomeprodutora").innerHTML = "Mínimo 3 / Máximo 30 Letras";
            document.getElementById("nomeprodutora").style.background = "#FFCCCC";
            document.getElementById("erronomeprodutora").style.color="#FF0000";
            document.getElementById('erronomeprodutora').style.fontSize="11pt";

            return false;
        }else{
            document.getElementById("nomeprodutora").style.background = "#fff";
            document.getElementById("erronomeprodutora").innerHTML = "";
            document.getElementById("nomeprodutora").style.background = "#90EE90";
            return true;
        }
    }
	
	this.validaEnderecoprodutora = function(){
        var reg = /^[a-z A-Z0-9áéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ,-.()º]{10,200}$/
        if (d.enderecoprodutora.value.search(reg)==-1){
	
        document.getElementById("erroenderecoprodutora").innerHTML = "Mínimo 10 / Máximo 200 Letras e/ou Números";
        document.getElementById("enderecoprodutora").style.background = "#FFCCCC";
        document.getElementById("erroenderecoprodutora").style.color="#FF0000";
        document.getElementById('erroenderecoprodutora').style.fontSize="11pt";
        return false;
    }else{
        document.getElementById("enderecoprodutora").style.background = "#fff";
        document.getElementById("erroenderecoprodutora").innerHTML = "";
        document.getElementById("enderecoprodutora").style.background = "#90EE90";
        return true;
    }
}
	
this.validaTelprodutora = function(){
    var reg = /^[0-9]{3,30}$/
    if (d.telprodutora.value.search(reg)==-1){

        document.getElementById("errotelprodutora").innerHTML = "Mínimo 3 / Máximo 30 Números";
        document.getElementById("telprodutora").style.background = "#FFCCCC";
        document.getElementById("errotelprodutora").style.color="#FF0000";
        document.getElementById('errotelprodutora').style.fontSize="11pt";

        return false;
    }else{
        document.getElementById("telprodutora").style.background = "#fff";
        document.getElementById("errotelprodutora").innerHTML = "";
        document.getElementById("telprodutora").style.background = "#90EE90";
        return true;
    }
}
	
this.validaFaxprodutora = function(){
    var reg = /^[0-9]{3,30}$/
    if (d.faxprodutora.value.search(reg)==-1){
	
        document.getElementById("errofaxprodutora").innerHTML = "Mínimo 3 / Máximo 30 Números";
        document.getElementById("faxprodutora").style.background = "#FFCCCC";
        document.getElementById("errofaxprodutora").style.color="#FF0000";
        document.getElementById('errofaxprodutora').style.fontSize="11pt";

        return false;
    }else{
        document.getElementById("faxprodutora").style.background = "#fff";
        document.getElementById("errofaxprodutora").innerHTML = "";
        document.getElementById("faxprodutora").style.background = "#90EE90";
        return true;
    }
}
	
this.validaEmailprodutora = function(){
    var reg = /^[a-zA-Z0-9._-]+@.+\.[a-z]+$/
    if (d.emailprodutora.value.search(reg)==-1){

        document.getElementById("erroemailprodutora").innerHTML = "Email Inválido";
        document.getElementById("emailprodutora").style.background = "#FFCCCC";
        document.getElementById("erroemailprodutora").style.color="#FF0000";
        document.getElementById('erroemailprodutora').style.fontSize="11pt";

        return false;
    }else{
        document.getElementById("emailprodutora").style.background = "#fff";
        document.getElementById("erroemailprodutora").innerHTML = "";
        document.getElementById("emailprodutora").style.background = "#90EE90";
        return true;
    }
}
	
this.validaNomedistribuidor = function(){
    var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{0,30}$/
    if (d.nomedistribuidor.value.search(reg)==-1){
	
        document.getElementById("erronomedistribuidor").innerHTML = "Máximo 30 Letras";
        document.getElementById("nomedistribuidor").style.background = "#FFCCCC";
        document.getElementById("erronomedistribuidor").style.color="#FF0000";
        document.getElementById('erronomedistribuidor').style.fontSize="11pt";

        return false;
    }else{
        document.getElementById("nomedistribuidor").style.background = "#fff";
        document.getElementById("erronomedistribuidor").innerHTML = "";
        document.getElementById("nomedistribuidor").style.background = "#90EE90";
        return true;
    }
}
	
this.validaEnderecodistribuidor = function(){
    var reg = /^[a-z A-Z0-9áéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ,-º()]{0,200}$/
    if (d.enderecodistribuidor.value.search(reg)==-1){
	
	document.getElementById("erroenderecodistribuidor").innerHTML = "Máximo 200 Caracteres";
    document.getElementById("enderecodistribuidor").style.background = "#FFCCCC";
    document.getElementById("erroenderecodistribuidor").style.color="#FF0000";
    document.getElementById('erroenderecodistribuidor').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("enderecodistribuidor").style.background = "#fff";
    document.getElementById("erroenderecodistribuidor").innerHTML = "";
    document.getElementById("enderecodistribuidor").style.background = "#90EE90";
    return true;
}
}
	
this.validaTeldistribuidor = function(){
var reg = /^[0-9]{0,30}$/
if (d.teldistribuidor.value.search(reg)==-1){
	
	document.getElementById("erroteldistribuidor").innerHTML = "Máximo 30 Números";
    document.getElementById("teldistribuidor").style.background = "#FFCCCC";
    document.getElementById("erroteldistribuidor").style.color="#FF0000";
    document.getElementById('erroteldistribuidor').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("teldistribuidor").style.background = "#fff";
    document.getElementById("erroteldistribuidor").innerHTML = "";
    document.getElementById("teldistribuidor").style.background = "#90EE90";
    return true;
}
}
	
this.validaFaxdistribuidor = function(){
var reg = /^[0-9]{0,30}$/
if (d.faxdistribuidor.value.search(reg)==-1){

	document.getElementById("errofaxdistribuidor").innerHTML = "Máximo 30 Números";
    document.getElementById("faxdistribuidor").style.background = "#FFCCCC";
    document.getElementById("errofaxdistribuidor").style.color="#FF0000";
    document.getElementById('errofaxdistribuidor').style.fontSize="11pt";
	
    return false;
}else{
    document.getElementById("faxdistribuidor").style.background = "#fff";
    document.getElementById("errofaxdistribuidor").innerHTML = "";
    document.getElementById("faxdistribuidor").style.background = "#90EE90";
    return true;
}
}

	
	
this.validaEmaildistribuidor = function(){
var obj = eval("document.forms[0].emaildistribuidor");
var txt = obj.value;
if ((txt.length != 0) && ((txt.indexOf("@") < 1) || (txt.indexOf('.') < 7)))
{

	document.getElementById("erroemaildistribuidor").innerHTML = "Email Inválido";
    document.getElementById("emaildistribuidor").style.background = "#FFCCCC";
    document.getElementById("erroemaildistribuidor").style.color="#FF0000";
    document.getElementById('erroemaildistribuidor').style.fontSize="11pt";
	
    return false;
}else{
    document.getElementById("emaildistribuidor").style.background = "#fff";
    document.getElementById("erroemaildistribuidor").innerHTML = "";
    document.getElementById("emaildistribuidor").style.background = "#90EE90";
    return true;
}
}
	
this.validaFormato = function(){
var reg = /^[a-z A-Z0-9áéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
if (d.formato.value.search(reg)==-1){
	
	document.getElementById("erroformato").innerHTML = "Mínimo 3 / Máximo 30 Letras e/ou Números";
    document.getElementById("formato").style.background = "#FFCCCC";
    document.getElementById("erroformato").style.color="#FF0000";
    document.getElementById('erroformato').style.fontSize="11pt";
	
    return false;
}else{
    document.getElementById("formato").style.background = "#fff";
    document.getElementById("erroformato").innerHTML = "";
    document.getElementById("formato").style.background = "#90EE90";
    return true;
}
}
	
this.validaSom = function(){
var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
if (d.som.value.search(reg)==-1){

   	document.getElementById("errosom").innerHTML = "Mínimo 3 / Máximo 30 Letras";
    document.getElementById("som").style.background = "#FFCCCC";
    document.getElementById("errosom").style.color="#FF0000";
    document.getElementById('errosom').style.fontSize="11pt";
	
    return false;
}else{
    document.getElementById("som").style.background = "#fff";
    document.getElementById("errosom").innerHTML = "";
    document.getElementById("som").style.background = "#90EE90";
    return true;
}
}
	
this.validaTempo = function(){
var reg = /^[0-9]{1,5}$/
if (d.tempo.value.search(reg)==-1){

	document.getElementById("errotempo").innerHTML = "Mínimo 1 / Máximo 5 Números";
    document.getElementById("tempo").style.background = "#FFCCCC";
    document.getElementById("errotempo").style.color="#FF0000";
    document.getElementById('errotempo').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("tempo").style.background = "#fff";
    document.getElementById("errotempo").innerHTML = "";
    document.getElementById("tempo").style.background = "#90EE90";
    return true;
}
}
	
this.validaDiretor = function(){
var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
if (d.diretor.value.search(reg)==-1){

	document.getElementById("errodiretor").innerHTML = "Mínimo 3 / Máximo 30 Letras";
    document.getElementById("diretor").style.background = "#FFCCCC";
    document.getElementById("errodiretor").style.color="#FF0000";
    document.getElementById('errodiretor').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("diretor").style.background = "#fff";
    document.getElementById("errodiretor").innerHTML = "";
    document.getElementById("diretor").style.background = "#90EE90";
    return true;
}
}
	
this.validaFotografia = function(){
var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
if (d.fotografia.value.search(reg)==-1){
    
	document.getElementById("errofotografia").innerHTML = "Mínimo 3 / Máximo 30 Letras";
    document.getElementById("fotografia").style.background = "#FFCCCC";
    document.getElementById("errofotografia").style.color="#FF0000";
    document.getElementById('errofotografia').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("fotografia").style.background = "#fff";
    document.getElementById("errofotografia").innerHTML = "";
    document.getElementById("fotografia").style.background = "#90EE90";
    return true;
}
}
	
this.validaArgumento = function(){
var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
if (d.argumento.value.search(reg)==-1){

	document.getElementById("erroargumento").innerHTML = "Mínimo 3 / Máximo 30 Letras";
    document.getElementById("argumento").style.background = "#FFCCCC";
    document.getElementById("erroargumento").style.color="#FF0000";
    document.getElementById('erroargumento').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("argumento").style.background = "#fff";
    document.getElementById("erroargumento").innerHTML = "";
    document.getElementById("argumento").style.background = "#90EE90";
    return true;
}
}
	
this.validaEditor = function(){
var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{3,30}$/
if (d.editor.value.search(reg)==-1){

	document.getElementById("erroeditor").innerHTML = "Mínimo 3 / Máximo 30 Letras";
    document.getElementById("editor").style.background = "#FFCCCC";
    document.getElementById("erroeditor").style.color="#FF0000";
    document.getElementById('erroeditor').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("editor").style.background = "#fff";
    document.getElementById("erroeditor").innerHTML = "";
    document.getElementById("editor").style.background = "#90EE90";
    return true;
}
}
	
this.validaMusica = function(){
var reg = /^[a-z A-ZáéóíúÁÉÍÚÓãÃõÕÇçêÊôÔâÂîÎûÛ]{0,30}$/
if (d.musica.value.search(reg)==-1){

	document.getElementById("erromusica").innerHTML = "Máximo 30 Letras";
    document.getElementById("musica").style.background = "#FFCCCC";
    document.getElementById("erromusica").style.color="#FF0000";
    document.getElementById('erromusica').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("musica").style.background = "#fff";
    document.getElementById("erromusica").innerHTML = "";
    document.getElementById("musica").style.background = "#90EE90";
    return true;
}
}

this.validaAtores = function(){
    
if (d.atores.value.length >= 301){

	document.getElementById("erroatores").innerHTML = "Máximo 300 Caracteres";
    document.getElementById("atores").style.background = "#FFCCCC";
    document.getElementById("erroatores").style.color="#FF0000";
    document.getElementById('erroatores').style.fontSize="11pt";

    return false;
}else{
    document.getElementById("atores").style.background = "#fff";
    document.getElementById("erroatores").innerHTML = "";
    document.getElementById("atores").style.background = "#90EE90";
    return true;
}
}
	
this.validaSinopse = function(){
   
if (d.sinopse.value.length >= 301 || d.sinopse.value.length < 10){

	document.getElementById("errosinopse").innerHTML = "Mínimo 10 / Máximo 300 Caracteres";
    document.getElementById("sinopse").style.background = "#FFCCCC";
	document.getElementById("errosinopse").style.color="#FF0000";	
	document.getElementById('errosinopse').style.fontSize="11pt";

    return false;
}else{
	document.getElementById("sinopse").style.background = "#fff";
    document.getElementById("errosinopse").innerHTML = "";
    document.getElementById("sinopse").style.background = "#90EE90";
    return true;
}
}

this.concordoreg=function(){	
if(d.input.checked){

    return true;

}else{

    alert('Deve-se concordar com o regulamento');
 
    return false;
}	

}
}
    
	
function main(){
d = document.f;
	

var fi = new Filme(d.titulooriginal.value, d.linguaoriginal.value,d.legendas.value,d.tipofilme.value,d.anoproducao.value,d.paisorigem.value,d.festivais.value,d.premios.value,d.produtor.value,d.nomeprodutora.value,d.enderecoprodutora.value,d.telprodutora.value,d.faxprodutora.value,d.emailprodutora.value,d.nomedistribuidor.value,d.enderecodistribuidor.value,d.teldistribuidor.value,d.faxdistribuidor.value,d.emaildistribuidor.value,d.formato.value,d.som.value,d.tempo.value,d.diretor.value,d.fotografia.value,d.argumento.value,d.editor.value,d.musica.value,d.atores.value,d.sinopse.value)
var resp1 = fi.validaTitulo();
var resp2 = fi.validaLingua();
var resp3 =fi.validaLegendas();
var resp4 =fi.validaTipofilme();
var resp5 =fi.validaAnoproducao();
var resp6 =fi.validaPaisorigem();
var resp7 =fi.validaFestivais();
var resp8 =fi.validaPremios();
var resp9 =fi.validaProdutor();
var resp10 =fi.validaNomeprodutora();
var resp11 =fi.validaEnderecoprodutora();
var resp12 =fi.validaTelprodutora();
var resp13 =fi.validaFaxprodutora();
var resp14 =fi.validaEmailprodutora();
var resp15 =fi.validaNomedistribuidor();
var resp16 =fi.validaEnderecodistribuidor();
var resp17 =fi.validaTeldistribuidor();
var resp18 =fi.validaFaxdistribuidor();
var resp19 =fi.validaEmaildistribuidor();
var resp20 =fi.validaFormato();
var resp21 =fi.validaSom();
var resp22 =fi.validaTempo();
var resp23 =fi.validaDiretor();
var resp24 =fi.validaFotografia();
var resp25 =fi.validaArgumento();
var resp26 =fi.validaEditor();
var resp27 =fi.validaMusica();
var resp28 =fi.validaAtores();
var resp29 =fi.validaSinopse();
var resp30 = fi.concordoreg();

	
if(resp1&& resp2 && resp3 && resp4  && resp5 && resp6 && resp7 && resp8 && resp9 && resp10 && resp11 && resp12 && resp13 && resp14 && resp15 && resp16 && resp17 && resp18 && resp19 && resp20 && resp21 && resp22 && resp23 && resp24 && resp25 && resp26 && resp27 && resp28 && resp29 && resp30){
document.getElementById("f").submit();
}else{
	
alert('Verifique os Dados');
	
}

    
function limparDiv (str1, str2) {
document.getElementById(str1).style.background = "#fff";
document.getElementById(str2).innerHTML = "";
}
}