function onload_doc() {
    eval('do_init();');
}
function do_init() {
}
function do_nothing() {
}
function $(id) {
    return document.getElementById(id);
}
function checkall(form, element) {
    arr = document.forms[form].elements[element];
    if (arr.length == undefined) {
        if (arr.checked) arr.checked = false;
        else arr.checked = true;
    } else {
        chkd = !arr[0].checked;
        for (i = 0; i < arr.length; ++i) {
            arr[i].checked = chkd;
        }
    }
}
function trim(s) {
    if (s == null || s == undefined) return false;
    return s.replace(/(^\s+)|(\s+$)/g, "");
}
function isValidEmail(fieldValue) {
    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/.test(fieldValue))    return true;
    return false;
}
function do_logout() {
    document.forms['form_logout'].submit();
    return false;
}

