$(document).ready(function() {

    //hilight active menu
    $("#siteMenu " + "." + active).addClass("selected");

    // global jquery stuff here
   // legacy and transitional functions
     toggleDisplay = function(div) {
            if (div.css('display') == "none") {
                div.css('display', 'block');
            } else {
                div.css('display', 'none');
            }
        }
});


function removeDuplicateLogin(){
    var dL=document.getElementById('sideLogin');
    dL.parentNode.removeChild(dL);
}

function validateEmail(em){
        var emailRegEx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

        if(em.match(emailRegEx)){
           return true;
        }else{
            return false;
        }
    }

function m_nav(url) {
    window.location.href = url;
}
