function ShowExplanationType(strType){

    strType = new String(strType);
   
    var blnShowSimple = true;
    if (strType == "simple"){
        blnShowSimple = true;
    }
    else if (strType == "scorm"){
        blnShowSimple = false;
    }
    else{
        alert("invalid type passed to ShowExplanationtype");
    }
    
    var spans = document.getElementsByTagName("span");
        
        for (var i=0; i< spans.length; i++){
            
            var style = spans[i].className;
            
            if (style == "scormexplanation"){
               
                if (blnShowSimple == true){
                    spans[i].style.display = "none";
                }
                else{
                    spans[i].style.display = "block";
                }
            }
            else if (style == "simpleexplanation"){
                if (blnShowSimple == true){
                    spans[i].style.display = "block";
                }
                else{
                    spans[i].style.display = "none";
                }
            }
            
        }
}