var option_object = new Object();

// Activates the given option
function activate_current()
{
    // Get the current value
    var value = document.getElementById('type_id').value;
    
    // Hide everything
    for (var key in option_object)
    {
        // Check if the current key equals the value given
        if (value === key)
        {
            // Show this
            var display_string = '';
        }
        else 
        {
            // Hide this
            var display_string = 'none';
        }
        
        // Get the element
        var element = document.getElementById('user_search_sub_' + option_object[key]);
        
        if (element)
        {
            // Change the styling
            element.style.display = display_string;
        }
    }
}
