﻿// JScript File
function popupPrint(mylink, windowname)
{
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
        href=mylink;
    else
        href=mylink.href;
    var objWin=window.open(href, windowname, 'width=586,height=560,scrollbars=yes');
     
    return false;
}
function popupEmail(mylink, windowname)
{
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
        href=mylink;
    else
        href=mylink.href;
    window.open(href, windowname, 'width=580,height=750,scrollbars=no');
    return false;
}
function popupForm(mylink, windowname)
{
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
        href=mylink;
    else
        href=mylink.href;
    window.open(href, windowname, 'width=580,height=920,scrollbars=yes');
    return false;
}
function fnTrapKD(btnID, event)
{
    btn = document.getElementById(btnID);
   
    if (document.all)
    {
        if (event.keyCode == 13)
        {
            event.returnValue=false;
            event.cancel = true;
            btn.click();
        }
    }
    else if (document.getElementById)
    {
        if (event.which == 13)
        {
            event.returnValue=false;
            event.cancel = true;
            btn.focus();
            btn.click();
        }
    }
    else if(document.layers)
    {
        if(event.which == 13)
        {
            event.returnValue=false;
            event.cancel = true;
            btn.focus();
            btn.click();
        }
    }
}
