Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/ASP.NET/CS/HotelBooking/Content/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/ASP.NET/CS/HotelBooking/Content/JScript.js

function onCountryChanged(cmb) {
    cmbCity.SetEnabled(true);
    cmbCity.PerformCallback(cmbCountry.GetValue().toString());
}
function gvShowDetails(index) {
    gvResults.ExpandDetailRow(index);
}
function gvHideDetails(index) {
    gvResults.CollapseDetailRow(index);
}
function changeCountry(country) {
    var item = cmbCountry.FindItemByValue(country);
    if(item) {
        cmbCountry.SetSelectedItem(item);
        cmbCountry.Focus();
        onCountryChanged(cmbCountry);
    }
    cmbCountry.Validate();
}
function updateHotelRating(s, e) {
    cpHotelRating.PerformCallback();
}
function validateCheckOut(s, e) {
    if(deCheckOut.GetValue() <= deCheckIn.GetValue())
        e.isValid = false;
}
function minPriceValueChanged(s, e) {
    if(seMaxPrice.GetValue() < seMinPrice.GetValue())
        seMaxPrice.SetValue(seMinPrice.GetValue());
}
function maxPriceValueChanged(s, e) {
    if(seMinPrice.GetValue() > seMaxPrice.GetValue())
        seMinPrice.SetValue(seMaxPrice.GetValue());
}
function updateRoomsOrderPanel(s,e) {
    cpRoomOrder.PerformCallback();
}
function submitOrder(s, e) {
    e.processOnServer = false;
    var orderValid = gvRoomsOrder.GetSelectedKeysOnPage().length > 0;
    if(!orderValid) {
        document.getElementById("gvRoomsOrder_DXMainTable").style.backgroundColor = "#fecfcf";
        document.getElementById("gvRoomsOrder").focus();
    }
    if(orderValid & ASPxClientEdit.ValidateEditorsInContainer())
        e.processOnServer = confirm("Your reservation is accepted.\r\nThank you for choosing our service.");
}
function setCheckIn(s,e) {
    if(s.GetValue())
        deCheckOut.SetEnabled(true);
    cpRoomOrder.PerformCallback();
}
function setCheckOut(s,e) {
    cpRoomOrder.PerformCallback();
}
function showImageDialog(url) {
    pcImageDialog.Show();
    previewImage.SetImageUrl(url);
}
function showDropDown(s, e) { 
    s.ShowDropDown(); 
}
function searchKeyPress(s, e) {
    if(e.htmlEvent.keyCode == 13 && s.GetValue())
        btnSearchSubmit.DoClick();
}
function searchSubmit() {
    if(tbSearch.GetValue())
        btnSearchSubmit.DoClick();
}