var Models = {
    setUpVariantAutoPostBack: function()
    {
        // Do the form exist?  (some models only have one variant, so the form is not created)
        if ($('form1'))
        {
            // Hide the Submit button
            $('pickVariant').style.display = 'none';
            
            // Set the post back event
            Event.observe($('variantName'), 'change', function() { $('form1').submit() });
        }
    }
    
}