function validaForm(theForm,itens){

    var total = eval(itens);
    for(i=0; i < total; i++){
        if(theForm[i].value == ""){
            alert("ERRO:\nAlgum campo não foi preenchido!");
            theForm[i].focus();
            return false;
        }
    }
    return true;
}
