<!--
function insertYear()
{
    //create some data variables
    var dateObj = new Date();
    var startYear = 2004;
    var currYear = dateObj.getFullYear();
    var yearString = (currYear > startYear)? " &#8211; " + currYear : '';

    //write copyrightString to the page
    document.write(yearString);
}





function newWindow(pageName)
{
        var winUrl = pageName;
        var winName = 'theWin';
        var winAttributes = 'scrollbars=1,width=380,height=500,left=75,top=75,screenX=75,screenY=75,resizable=0';
        theWin = window.open(winUrl, winName, winAttributes);
}









/*THESE FUNCTIONS CONTROL THE VALIDATION OF THE HIDE/REVEAL FORM ON THE REGISTER PAGE*/

//toggle the add colleague section on the register page
function toggleColleagues()
{
    var colDiv = document.getElementById('colleaguesDiv');    
    
    if ( (colDiv.style.display == '' || colDiv.style.display == 'none'))
    {
        colDiv.style.display = 'block';
    }
    else
    {
        colDiv.style.display = 'none';
    }

}

function closeColleagueDiv()
{
    var colDiv = document.getElementById('colleaguesDiv');    
    colDiv.style.display = 'none';
}



function allowColleagues()
{
    var theRadio = getRadioVal();
    if (!theRadio)
    {
        alert('Sorry, you must select the "Individual" rate to be allowed the option of adding colleagues.');
        setCheckBoxValOff();
    }
    else
    {
        toggleColleagues();
    }    
}

function getRadioVal()
{
    var colleaguesOK = (document.getElementById('radioInd').checked)? true : false; 
    return colleaguesOK;   
}

function setCheckBoxValOff()
{
    var toggleBox = document.getElementById('hasColleague');
    toggleBox.checked = false;  
}




//-->

