// cross browser function to toggle DHTML help box
function toggleHelp(id) {
    if (document.getElementById && document.getElementById(id) != null) // IE5+ NS6+
         document.getElementById(id).style.display = (document.getElementById(id).style.display != 'block') ? 'block' : 'none';
    else if (document.layers && document.layers[id] != null) // NS4
		// replace this ALERT with text string from external js file?
        alert("Help not available in Netscape 4");
    else if (document.all) // IE4+
	    eval ("document.all." +id+ ".style.display = (document.all." +id+ ".style.display!='block') ? 'block' : 'none';")
}

// function to draw a 'helpbox' containing the strings defined in the helpfile array (helpfiles.txt)
/*
function drawHelpbox(id) {
// split the helpfile into two bits - keywords and explanatory paragraph
var keywords = help[id].split(":")[0];
var para = help[id].split(":")[1];
var helpBox = ("<p>" + para + "</p>");

document.write(helpBox);
}
*/
