﻿
stepcarousel.setup({
    galleryid: 'mygallery', //id of carousel DIV
    beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
    panelclass: 'panel', //class of panel DIVs each holding content
    autostep: { enable: true, moveby: 1, pause: 5000 },
    panelbehavior: { speed: 500, wraparound: false, persist: true },
    defaultbuttons: { enable: true, moveby: 1, leftnav: ['/imagens/seta_left.gif', 0, 20], rightnav: ['/imagens/seta_right.gif', -6, 20] },
    statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
    contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})

function validaBusca() {
    var tx = document.getElementById("ctl00_CPHMallumarDireita_BuscaProdutos1_referencia");
    var sel = document.getElementById("ctl00_CPHMallumarDireita_BuscaProdutos1_ddlSecoes");

    if (tx.value == "Referencia" || tx.value == "") {
        if (sel.value == "0") {
            alert('Selecione o "produto" ou informe a "referencia"');
            return false;
        } else {
            return true;
        }
    } else {
        return true;
    }
}

function alertar(msg){
    alert(msg);
}
