﻿//Function called on custom validator for dropdown with listing melon components.
//If component is not selected the selection in the dropdown is not valid.
function checkComponentSelection(source, args) {
    if (args.Value == "0") {
        args.IsValid = false;
    }
    else {
        args.IsValid = true;
    }
}

function validateAcceptTermsOfUse(checkbox) {
    if (checkbox.checked == true) {
        document.getElementById("lblAcceptError").style.display = "none";
    }
    else {
        document.getElementById("lblAcceptError").style.display = "block";
    }
}


