// popup functions
function checkWin(win_opened) { if ( ! win_opened) { showPopupBlockerMsg(); return false; } return true; }
function showPopupBlockerMsg() { alert("Please turn off the ad/popup blocker to allow the requested function."); }
function showNoPopupBlockerMsg() { alert("It seems you do not have a problematic Ad/Popup blocker turned on for your browser.\nYou should be able to work with the webpages without any problems."); }
// --- calendar ---------------------------------------------------------------
function useCalendar(url, dateAsTextField, dateAsTimeField) {
    targetDateAsTextField = dateAsTextField;
    targetDateAsTimeField = dateAsTimeField;
    if (dateAsTimeField != null) { url += '&date_as_time_selected=' + escape(dateAsTimeField.value); }
    if (dateAsTextField != null) { url += '&date_as_text_selected=' + escape(dateAsTextField.value); }
    calendarWindow = window.open(url, 'Calendar', 'left=50,screenX=50,top=50,screenY=50,width=250,height=250,scrollbars=0,resizable=1');
    calendarWindow.focus();
}

