
//<script language="javascript" type="text/javascript">

    // show Benefits div and 'Hide' div, and hide 'Show' div
function ShowBenefits(key) {
    
    var a = document.getElementById("Show_" + key);
    var b = document.getElementById("Hide_" + key);
    var c = document.getElementById("Benefits_" + key);

    a.style.display = "none";
    b.style.display = "block";
    c.style.display = "block";
            
    a.setAttribute("style", "display:none;");
    b.setAttribute("style", "display:block;");
    c.setAttribute("style", "display:block;");
       
}

// hide 'Hide' div & Benefits div, and Show 'Show' div
function HideBenefits(key) {
    var a = document.getElementById("Show_" + key);
    var b = document.getElementById("Hide_" + key);
    var c = document.getElementById("Benefits_" + key);

    a.style.display = "block";
    b.style.display = "none";
    c.style.display = "none";

    a.setAttribute("style", "display:block;");
    b.setAttribute("style", "display:none;");
    c.setAttribute("style", "display:none;");
}

//</script>


// Function to navigate to the member page and display opened Level as specified in param
function GoTo(key) {
    window.location.href = "/member/#" + key;
    ShowBenefits(key);  // call the ShowBenefits fn to open that level's Details box
}


// Function to clear text from Search box upon focus
function meFocus() {
    var a = document.getElementById("attr1");
    if (a.value == "Search") a.value = "";
}

// Function to display the text 'Search' in the Search box upon losing focus
function meBlur() {
    var a = document.getElementById("attr1");
    if (a.value == "") a.value = "Search";
}
