  <!-- hide script from old browsers

  //----------------------------------------------------------------------------------
  //  miscellaneous.js
  //
  //    This script contains miscellaneous functions shared by all of aaaonline.
  //      
  //----------------------------------------------------------------------------------

  //----------------------------------------------------------------------------------
  //  this method automatically sets the return month to match the selected departure month (sqa4286).
  //
  //  for example in airCriteria.wod:
  //
  //    DisplayDate2: RCDisplayDateField {
  //      date = airRequest.depDate;
  //      validateFailed = airRequest.depDateError;
  //      labelText = "Departure Day:";
  //      errorMsg = "Outbound date is invalid.";
  //      index = 0;
  //      inputDescriptionsList = dateDescriptions;
  //      labelClass="fieldLabel";
  //      styleClass="bodytext";
  //      onClickHandler = "javascript:setMonth( this.name, this.value )" ;
  //    }
  //----------------------------------------------------------------------------------
  function setMonth( currElement, currValue )
  {
    //check all month drop-downs in case the form has multiple
    for ( var i = 0; i < document.FormData.elements.length; i++ )
    {
      //sample month name:  'rcddf_month6_85'
      if ( ( document.FormData.elements[ i ].name.substr( 0, 11 ) == 'rcddf_month' ) && ( document.FormData.elements[ i ].name != currElement ) )
      {
        document.FormData.elements[ i ].value = currValue ;
      }
    }
  }

  // end hiding from old browsers -->
