﻿function _$(obj) { return document.getElementById(obj); }
function _$F(obj) { return document.getElementById(obj).value; }
function _closeWindow() {
    window.opener = null;
    window.open('', '_self');
    window.close();
}

function _printDocument() { window.print(); }

function setTab(obj, visibleDiv, divParent) {
    if (obj.className === 's') return;

    var sideObjs = obj.parentNode.childNodes;
    for (var i = 0; i < sideObjs.length; i++)
    {
        sideObjs[i].className = '';
    }

    obj.className = 's';
    var divs = _$(divParent).getElementsByTagName('DIV');
    for (var i = 0; i < divs.length; i++)
    {
        divs[i].style.display = 'none';
    }

    _$(visibleDiv).style.display = 'block';

    //sideObjs = null;
    //divs = null;
}

function popLink(url) {
    if (url.length > 0)
    {
        window.open(url);
    }
}