﻿function ValidateSudoku(form, totalSlots) {
    for (i = 0; i < totalSlots; i++)
        if (form.elements['slot_' + i].value == '') {
        alert('Please fill all the grid before submitting');
        return false;
    }
    return true;
}

function Solver_ValidateLoadText(length, failMessage) {
    if ($('#LoadPuzzleContent').val().length != length) {
        alert(failMessage);
        return false;
    }
    else
        return true;
}
