Javascript Dropdown Values Swap On Change Event Technique is Not Working Correctly?
===

i trying to swap value of drop down if any other drop down have the same value but my techinique not working correctly as i am generating 10 select by generating there id numbering1,numbering2... .numbering10 in javascript i pass the id of select whose value has changed by compare all ten select value and if have same value then select having same value has changed to "selected id - 1" as shown in my code,

    function OnChangeSelection(selection,selectid)
    {
       var count=1;
       var showMe = (selectid.substring(9,10)-1);
       alert(selectid);
       alert(showMe);
        for(var j=5;j<=14;j++)
        {
            var c_id= "Numbering"+count;
            if (c_id == selectid) {count++;continue;}
            if (document.getElementById(selectid).value == document.getElementById(c_id).value) 
            {
    document.getElementById(c_id).selectedIndex=showMe;
            }
            count++
        }
    }


one more technique i have in my mind that when condition get true then i got the index value of that select whose value has changed how to get it ??
Hopes for your suggestion

Thanks in advance