function checkLocation() {
    elm = $("cityLocation");
    try {
        if (elm.value == '') {
            alert('1');
            return false;
        }

        var currentEntry = cityAjax.getCurrentEntry();
        $("city").value = currentEntry.id;
        if(currentEntry.id == '') {
            return false;
        }
        return true;
    } catch (exception) {
        dispatchException(exception);
    }
}

