<!-- hide this script from non-javascript-enabled browsers
/* Sorts option codes in ascending order. */
function codeSort(a,b) {
    return(a-b)
}
/* Hides the deselected option and shows the selected option */
function updateCurrentSelection() {
    var productCodes = new Array()
    var codeCount = 0
    var codeMap = ""
    // Loop through the form collecting codes of selected options
    for (i=0;i<document.forms['PRODUCTGUIDE'].elements.length;i++){
        if (document.forms['PRODUCTGUIDE'].elements[i].checked) {
            productCodes[codeCount]=document.forms['PRODUCTGUIDE'].elements[i].value
            codeCount++
        }
    }
    productCodes.sort(codeSort);
    // Loop through codes to prepare the map string
    for (i=0;i<productCodes.length;i++){
        codeMap=codeMap+productCodes[i]+"|" 
    }
    codeMap=codeMap.substring(0,codeMap.length-1);
    // Loop through "current selection" tables and hide them all
    currentSelections=document.getElementsByTagName("div");
    for (i=0;i<currentSelections.length;i++){
        if (currentSelections[i].className && currentSelections[i].className == "UNWRAPPER") { 
            currentSelections[i].className = "WRAPPER";
        }
    } 
    // Find the table that matches the selected options and make it visible
    if (document.getElementById(codeMap)) { 
        document.getElementById(codeMap).className = "UNWRAPPER";
    }  else {
        document.getElementById("DOESNOTEXIST").className = "UNWRAPPER";
    }
}
// stop hiding -->