
function swapTabDisplay(_activeTab, _contentID)
{
    var tabImageCollection = _activeTab.parentNode.getElementsByTagName("img");
    for (var i=0; i<tabImageCollection.length; i++)
    {        
        tabImageCollection[i].src = tabImageCollection[i].src.replace(/_on./,"_off.");
    }   
     
    _activeTab.getElementsByTagName("img")[0].src=_activeTab.getElementsByTagName("img")[0].src.replace(/_off./,"_on.");
    
    
    var contentContainerCollection = document.getElementById('tabbed_content_container').getElementsByTagName("div");
    for (var i=0; i<contentContainerCollection.length; i++)
    {
        if (contentContainerCollection[i].id.indexOf('tab_0') == 0) contentContainerCollection[i].style.display = 'none';
    }
    
    document.getElementById(_contentID).style.display = '';    
}

function en_email_focus_changed(_element, _hasFocus)
{
    if (_hasFocus && _element.value == 'Your Email Address Here') _element.value = '';
    if (!_hasFocus && _element.value == '') _element.value = 'Your Email Address Here';
}

function email_signup_clicked(_emailSignUpURL)
{
    if (!isValidEmail(document.getElementById('en_email').value))
    {
        document.getElementById('frm_email_signup').action = _emailSignUpURL;
    }
}