I have a function that should be called, but its name is dynamically mounted, based on a variable that will come as a parameter.
Follow the functions as an example. The first one is called and takes the name of the program. Call the second one by passing the name, which should call the third case if necessary.
// Primeira
function CarregarPrograma(){
// Códigos.....
sPrg = $("div#id_prg").attr("data-programa");
FuncaoEspecifica(sPrg);
}
// Segunda
function FuncaoEspecifica(prg){
if ($("div#" + prg).attr("data-inicio") == "1"){
Inicio_ (valor que vier no parãmetro) ;
}
}
// Terceira que deve ser chamada da segunda.
function Inicio_admcad00002(){
// Código a ser executado...
}