
function show_hide(element)
{
    var div = document.getElementById(element);
    
    if (div.style.display == "none")
    {
        div.style.display = "block";
    }
    else div.style.display = "none";
}

function hide_all_help() 
{
    arrayOfDivs = document.getElementsByTagName('div');

    for (var i = 0; i < arrayOfDivs.length; i++) 
    {
        if (arrayOfDivs[i].className == "section_help") 
        {
            // FJ 14/09/2011 (54090) -- Extended the existing JavaScript function so that now 
            //                          the sShowHelp parameter passed from the WizardBuilder
            //                          can be manipulated and consumed in an if statement to
            //                          determine whether or not to show the help
            var showHelp = arrayOfDivs[i].id;
            var iPos = showHelp.lastIndexOf('_')
            if (iPos != -1) 
            {

                // Manipulation of the string to retrieve the showHelp passed as the third parameter of the showHelp  
                // string i.e. 0_0_0*_help * The third value indicating, using a bit, whether to show or hide the help 
                showHelp = showHelp.substring(iPos - 1);
                showHelp = showHelp.substring(0, 1);
                if (showHelp == "0") 
                { 
                    arrayOfDivs[i].style.display = "none";
                }
            }
        }  
    }
}
