I have a rather challenging question. Best asked by explaining:

1- We have a form which has a Select item, which Select item is like:
<select name="country[]" size="5" onclick="get_state_vals(this.value)" class="select_width input_text" multiple>

2- What we want to do is to take a different action based on how many Options they have selected. To be exact if they have selected only one country we want to call: onclick="get_state_vals(this.value)", but if they have selected more than one country then we want to call a different function

How can this be done?