// global members
var _d2hSecondaryWindowsByTopics = null;
var _d2hAppletInitialized = 0;

function d2hInitSecondaryWindows()
{
    if (_d2hSecondaryWindowsByTopics == null)
    {
        _d2hSecondaryWindowsByTopics = new Array();
        _d2hSecondaryWindowsByTopics["gloss_plottype.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_activeplottype.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_initialtimedelay.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_iec6026816.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_iso3382.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_edr.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_mtf.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_mti.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_mtfr.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_mtir.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_snr.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_stirmal.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_stirfem.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_scopemode.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_rt60.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_edt.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_t20.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_t30.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_measurementsystemcorrection.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_activemeasurement.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_activewindow.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_activeplot.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_channel1.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_ch1.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_channel2.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_ch2.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_corr.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_dbv.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_dbu.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_transducer.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_setup.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_soundcard.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_impulseresponse.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_mls.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_transferfunction.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_toolbar.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_tooltip.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_fullduplex.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_dbfs.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_spl.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_ad.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_da.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_emphasis.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_zeropadding.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_step3bselectmixerinputline.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_step3cselectmixeroutputline.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_step3dmixercalibrationoptional.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_foragainof0dba10dbumaximuminputsignalgives0dbfs.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_standbymode.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_advancedinformationaboutthemixerlevels.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["helpmenu.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_olddriverversion.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_savetheconfiguration.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_digitalinputoutput.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_noteaboutcalibration.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_selectinganalogordigitalgain.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_ifyouneedsampleaccurateinitialtimedelay.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_breakoutcables.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_heatingofthecardmayslightlyaffectstheabsolutelevelcalibration.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_loopbackusingtwophysicalsoundcardinputs.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_loopbackusingsoundcardinternalloopback.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_411measureimpulseresponseusingloudspeaker.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_impulseresponse1.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_settingsamplingfrequencyandsweeprange.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_alternative1measureusingasinglesinesweep.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_alternative2measureusingmultiplesweeps.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_alternative3measureusingmls.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_usingmusicasexcitationsignal.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_results.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_addanewwizardstep.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_inserttitleandtext.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_selectimage.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_lockprogramwhilethewizardisshown.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_showthiswizardstep.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_selectwhattobedonewhenthenextbuttonisclicked.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_decidehowmanymeasurementstoperformbeforedisplayinganewwizardstep.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_selectwhattobedonewhenthehelpbuttonisclicked.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_transducer1.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_selecthowtocalibratetheinputchain.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_soundcardcalibration.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_amplifiergain.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_transducercalibration.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_finetuningthefrequency.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_samplingfrequency.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_lengthofrecordeddatams.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_mode.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_saving.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_decaytime.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_systemdelay.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_performingatestmeasurement.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_moreaboutmeasurementduration.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_singleormultimode.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_savingandmeasurementtasks.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_length.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_type6.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_calculation.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_sequenceorder.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_sequenceduration.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_noofmeascyclesaverages.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_noofpresendcycles.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_sequencetype.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_step3bmixerinput.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_step3cmixeroutput.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_step3dmixercalibration.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_donotexport.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_exporttotextfile.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_appendtotextfile.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_selectharmonics.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_weights.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_dividewithfundamental.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_plotfundamental.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_frequencyresolution.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_upperfrequency.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_interpolationtype.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_smoothingbandwidth.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_interpolatebacktooriginaldatapoints.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_dontsmoothiftoofewdatapoints.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_powersmoothing.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_smoothoveroctaves.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_smoothoverpointsperdivision.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_smoothoverhz.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_startoctavesmoothingathz.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_separatelineswaterfall.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_waterfall.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_surface.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_spectrogramcolorgrid.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_roomacousticsbandpasssettings.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_computefrommeasurementusinginitialtimedelay.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_specifyinmetersmeasinitialtimedelayisnotused.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_wholeresponseanechoic.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_50msrectangularanechoic.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_5mshalfhamminginsitunonstandard.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_howtoeraseacurvefromtheplot.htm"] = "d2hWnd_SecondaryPopup";
_d2hSecondaryWindowsByTopics["gloss_qualitycheckofreverberationtimemeasurements.htm"] = "d2hWnd_SecondaryPopup";

    }
}

function newDocContext(strTitle, strData)
{
    var elem = "<html><head>"
    if (strTitle != "")
        elem += "<title>" + strTitle + "</title>";
    elem += "</head><body>";
    elem += strData;
    elem += "</body></html>";
    document.clear();
    document.write(elem);
}

function browserNotSupported()
{
    var strData = MSG_BROWSERNOTSUPPORTED;
    document.forms[1].innerHTML = strData;
}

function errorHandler(error)
{
    var strData = error == 0 ? MSG_SEARCHENGINENOTLOADED : MSG_SEARCHENGINENOTLOADED_PATHCONTAINSNONASCII;
    document.forms[1].innerHTML = strData;
    return true;
}

function d2hAppletInitialized()
{
    _d2hAppletInitialized = -1;
}

function accessibilityTest(win, app, func)
{
    if (_d2hAppletInitialized != -1 && _d2hAppletInitialized < 50)
    {
        _d2hAppletInitialized ++;
        setTimeout("processQuery()", 100);
    }
    else if (_d2hAppletInitialized == -1)
        return true;
    else
    {
        var root = d2hGetRoot(win.location.pathname);
        root = unescape(root);
        if (d2hIsAsciiOnly(root))
            func(0);
        else
            func(1);
    }
    return false;
}

function search(doc, app, strQuery)
{
    var elem = doc.forms[1];
    if (elem.parentNode)
        elem.parentNode.setAttribute("nowrap", true);
    waitCursor(doc, true);
    elem.innerHTML = app.execQuery(strQuery);
    waitCursor(doc, false);
}

function waitCursor(doc, isWait)
{
}
