﻿// http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_21324403.html
function SelectOptionInList( lstSelectList, intID )
  {
            try
        {
              var intIndex = 0;
              // Loop through all the options
              for( intIndex = 0; intIndex < lstSelectList.options.length; intIndex++ )
              {
                    // Is this the ID we are looking for?
                    if( lstSelectList.options[intIndex].value == intID )
                    {
                          // Select it
                          lstSelectList.selectedIndex = intIndex;
                          // Yes, so stop searching
                          break;
                    }
              }
        }
        catch( expError )
        {
              alert( "ClientUtilities1.js::SelectOptionInList( ).\n" +
                          "Error:" + expError.number + ", " + expError.description );
        }
  } // SelectOptionInList
  

function displayRegisterDetails(registrationFormID)
{
    // remove the link
    if (document.getElementById("displayRegisterDetailsLink"))
        document.getElementById("displayRegisterDetailsLink").style.display="none";
    
    if (document.getElementById("hideme"))
        document.getElementById("hideme").style.display="block";
        
//    if (document.getElementById("regButton"))
//        document.getElementById("regButton").style.display="block";
//    
}