function CheckSelection (Object)
{
  var index = Object.selectedIndex;

  //return the default index if the selected item is a separator
  if (Object.options[Object.selectedIndex].value=='separator')
  {
    index = -1;
  }

  return index;

}