function focus(element)
{
    element.focus();
}

function focusElement(formName, elementName)
{
    focus(document.forms[formName].elements[elementName]);
}

function openPopup(url, width, height, scroll) {
    w = window.open(
        url,
        'popup',
        'width=' + width + ',height=' + height + ',scrollbars=' + scroll + ',resizable'
    );
    w.focus();
}

function ifConfirmed(message) {
    result = confirm(message);
    event.returnValue = result;
    return result;
}

function getYear() {
    var d = new Date();
    var year = d.getFullYear();
    return year;
}
