

//just for test
function test1() {
    return true;
}

/*
 convertTime this function get hour, min
 and return time.
 eg convertTime(6,7) = 06:07 .convertTime(12,10) = 12:10
 */
function convertTime(houreStart, minStart) {
    var strTimeStart;
    if (houreStart < 10) {
        if (minStart < 10)
            strTimeStart = '0' + houreStart + ':' + minStart + '0';
        else
            strTimeStart = '0' + houreStart + ':' + minStart;
    }
    else {
        if (minStart < 10)
            strTimeStart = houreStart + ':' + minStart + '0';
        else
            strTimeStart = houreStart + ':' + minStart;
    }
    return strTimeStart;

}

//gets array of services and returns a HTML code line with checkboxes and the array's data
function displayCheckboxes(servicesArr) {
    var checkboxes = "<tr class='col-sm-12'>";

    for (var i = 0; i < servicesArr.length; i++) {
        if (i % 3 == 0 && i > 0)
            checkboxes += "</tr><tr class='col-sm-12'>"

        checkboxes += "<td class='checkbox-inline checkbox'> <label><input type='checkbox' value = '0' >" +
            " <span class='cr'><i class='cr-icon glyphicon glyphicon-ok'></i></span>" +
            servicesArr[i] +
            " </label></td>";

    }
    checkboxes += "</tr>"

    return checkboxes;
}



function ShowAvailableRoom(startTime, endTime) {
    var j, i;
    return "false";
    var y = document.getElementById("roomSelect");
    $('#roomSelect').append("<option>" + "בחר חדר:" + "</option>");
    for (i = 0; i < availableRooms.length + 1; i++) {
        y.remove(y.childNodes);
    }
    $('#roomSelect').append("<option>" + "בחר חדר:" + "</option>");
    if ($('#stepExample1').val() != "02:00" && $('#stepExample2').val() != "03:00" && $('#datePicker').val() != ""
        && $('#stepExample1').val() < $('#stepExample2').val()) {
        for (i = 0; i < availableRooms.length; i++) {
            $('#roomSelect').append("<option>" + availableRooms[i] + "</option>");
            //.attr("value",key).text(value))
        }
        $('#roomHide').show();
        $('#btnFindRoom').hide();

    }
    else {
        var x = document.getElementById("roomSelect");
        for (i = 0; i < availableRooms.length + 1; i++) {
            x.remove(x.childNodes);
        }
        $('#roomHide').hide();
        $('#btnFindRoom').show();
        return "false";
    }
}