function OpenWindow(url)
{
    window.open(url, "_blank", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=700,height=600');
    return false;
}

function Messages(msg, url)
{
    alert(msg);
    document.location.href = url;
}
 function confirmYN(msg)
    {
        return confirm(msg);
    }
function showImageDetail(DivPicture,BigPicture)
{
    var divObj = document.getElementById(DivPicture);
    var PWidth = document[BigPicture].width + 3;
    var PHeight = document[BigPicture].height + 3;
    divObj.style.width = PWidth + 'px';
    divObj.style.height = PHeight + 'px';
    divObj.style.visibility = 'visible';
    divObj.focus();
    return false;
}
function hideImageDetail(DivPicture)
{
    DivPicture.style.visibility='hidden';
    return false;
}
function Printer(url)
{
    window.open(url, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=650,height=600,left=60, top=60,screenX=60px,screenY=60px");
    return false;
}
function SendMail(url)
{
    window.open(url, "_blank","toolbar=no,location=no,directories=no,addressbar=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=530,height=220,left=230, top=120,screenX=230px,screenY=120px");
    return false;
}
function ActivePrinter(idTopHidden,idBottomHidden)
{
    document.getElementById(idTopHidden).style.visibility='hidden';
    document.getElementById(idBottomHidden).style.visibility='hidden';
    window.print();
    window.close();
    return false;
}
function ShowPopup(e, Width, Height, LinkPath, Title, Caption, Author){
    var desc = '';
    try {
        var el = getNextSibling(e.parentNode.parentNode);
        el = el.offsetParent;
        if (el.rows.length > 1) {
            el = el.rows[1].cells[0];
            desc = el.innerHTML;
        }
    } catch (err) {
        desc = '';
    }
    myLightWindow.activateWindow({
        loadingAnimation: false,
        href: LinkPath,
        caption: Caption,
        title: Title,
        width: Width,
        height: Height,
        Author: Author
    });
}
function ClosePopup(){
    window.parent.myLightWindow.deactivate();
}