﻿// Short Hand function to write the company name, sCompanyName var must exist
function CN(){
    if (typeof sCompanyName != "undefined") document.write(sCompanyName);
    else document.write('CIBT');
    }
// Short Hand function to write the toll free number, sTollFree var must exist
function TFN(){
    if (typeof sTollFree != "undefined") document.write(sTollFree);
    else document.write('(800) 929-2428');
    }
function ClearLogin()
    {
        txtAccessCode.value = "";
        txtAccessCode.style.color = "#626D9D";
    }
function HideInvalidLogin()
    {
        if (txtAccessCode.value == "Invalid Log In Code!")
        {
	        txtAccessCode.value = "Account #/Log In Code";
	        txtAccessCode.style.color = "#626D9D";
        }
    }
function fnTrapKD(btn, event)
    {
    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.click();
            }
        }
    else if(document.layers)
        {
        if(event.which == 13){
            event.returnValue=false;
            event.cancel = true;
            btn.click();
            }
        }
}
function CurrentYear()
{
    var d = new Date();
    document.write(d.getFullYear());
}