// For use with the jellyfish-customselect
// © Jellyfish 2010

// Sample
process_cascading_changes = function(controlid, valueid) {
    switch (controlid) {
        case "cascading1_customselect":
            getcascading2(valueid, "cascading2");
        break;
    }
}

getcascading2 = function(sitemapid, target) {
    cleardropdown(target);
    setdropdowntext(target, "Loading...");
    $.getJSON("/ajax/GetProductsForSitemap/" + sitemapid, function(data) {
        loadcustomselectdata(target, data, "Select a service...");        
    });
};
