function divToSelect( id )
{
     var d  = document.getElementById(id);
     var as = d.getElementsByTagName('a');
     var o  = "<select name='"+id+"Options' ";
         o += "onChange='location.href = this[this.selectedIndex].value'>";
         o += "<option value='#' selected>--Please Select Your County--</option>";

     for(var i=0;i<as.length;i++) {
           var a   = as[i];
           url = a.href;
           txt = a.innerHTML;
           o  += "<option value='"+url+"'>"+txt+"</option>";
     }

     o += "</select>";
     d.innerHTML = o;
}