function Select_GetValue(sel)
{
   return(sel.value);
}

function Select_SetValue(sel, val)
{
   sel.value = val;
   if(sel.value != val)
   {
      sel.selectedIndex = 0;
   }
}

function Select_Clear(sel)
{
   sel.options.length = 0;
}

function Select_Add(sel, text, value)
{
   var opt = document.createElement("OPTION");
   opt.text = text;
   opt.value = value;
   sel.options[sel.options.length] = opt;
}

function Select_Enable(sel, enable)
{
   sel.disabled = !enable;
}