var UpdateList = {
    init: function() {
        Event.observe($('customer_type'), 'change', UpdateList.OEMcheck);
    },

    OEMcheck: function(event) {

        if (this.options[this.selectedIndex].value == '1') {
            $('oemrow').show();
            $('oemrow2').show();
            ValidatorEnable($('oem_validator'), true);
            ValidatorEnable($('dealercode_validator'), true);

        }
        else {
            $('oemrow').hide();
            $('oemrow2').hide();
            ValidatorEnable($('oem_validator'), false);
            ValidatorEnable($('dealercode_validator'), false);

        }
    }
};    


Event.observe(window, 'load', UpdateList.init);



