function getPage(page) {
    $.ajax({
        type: "POST",
        url: "searchcriteriaservice.asmx/GetMe",
        data: "{countryId: '" + page + "'}",
        //data: "{countryid: '" + document.getElementById('').value + "'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function(response) {
            var lmDestinations = (typeof response.d) == 'string' ? eval('(' + response.d + ')') : response.d;
            jQuery('#destinations').empty();
            var html = '<select name="destination" id="destination" class="dropdown2" style="width:100px;"><option value="0" selected="selected">Alle områder</option>';
            for (var i = 0; i < lmDestinations.length; i++) {
                html += '<option value="' + lmDestinations[i].DestinationId + '">' + lmDestinations[i].DestinationName + '</option>';
            }
            html += '</select>';
            jQuery('#destinations').html(html);
        },
        failure: function(msg) {
            alert("error");
            $('#destinations').text(msg);
        }
    });
}
function toggleGreyOut(selId) {
    if (selId > 2) {
        document.getElementById('departureplace').disabled = true;
        document.getElementById('departureplace').value = 0;
    }
    else {
        document.getElementById('departureplace').disabled = false;
    }
}