﻿var graphicshop = {};


/* begin: toggler =========================================================== */
graphicshop.toggler = {};

graphicshop.toggler.init = function(arOpt, arCtl) {
    return;
    
    for (ix = 0; ix < arOpt.length; ix++) {
        var opt = document.getElementById(arOpt[ix]);
        opt.ctlRef = document.getElementById(arCtl[ix]);
        opt.onclick = function() { graphicshop.toggler.disableAll(arCtl); this.ctlRef.disabled = false; }
    }

    graphicshop.toggler.disableAll(arCtl);
    document.getElementById(arCtl[0]).disabled = false;
}

graphicshop.toggler.disableAll = function(arCtl) {
    for (ix = 0; ix < arCtl.length; ix++) {
        document.getElementById(arCtl[ix]).disabled=true;
    }
}

//graphicshop.toggler.init( ['opt1', 'opt2', 'opt3'], ['s1', 't1', 'tH'] );

// end: toggler ===========================================================
