function swapSelected(select, newSelection)
{
  for (loop=0; loop < select.options.length; loop++)
  {
    if (select.options[loop].text == newSelection)
    {
      select.selectedIndex = loop;
      return;
    }
  }
}
// takes a date select option matching a value and set the selected attribute
takes a date select option matching a value and set the selected attribute
takes a date select option matching a value and set the selected attribute
function swapSelected(select, newSelection)
{
  for (loop=0; loop < select.options.length; loop++)
  {
    if (select.options[loop].text == newSelection)
    {
      select.selectedIndex = loop;
      return;
    }
  }
}
function swapSelected ( select , newSelection ) { for ( loop = 0 ; loop < select . options . length ; loop ++ ) { if ( select . options [ loop ] . text == newSelection ) { select . selectedIndex = loop ; return ; } } }
takes a date select option matching a value and set the selected attribute
takes a date select option matching a value and set the selected attribute