
// Disables the second path selection if the first path selection is "None"
function TogglePathOrder() {
    var oSelectItemFirstPath = document.getElementById("FirstPathSelect");
    var oSelectItemSecondPath = document.getElementById("SecondPathSelect");

    if (oSelectItemFirstPath.value == "1")
        oSelectItemSecondPath.disabled = true;
    else
        oSelectItemSecondPath.disabled = false;
}

function ToggleCustomDateRange() {
    var oSelectedItem = document.getElementById("Date_Range");
    var oCustomRange = document.getElementById("Custom_Range");
    if (oSelectedItem.value == "custom")        
        oCustomRange.style.visibility = "visible";    
    else
        oCustomRange.style.visibility = "hidden";    
}