
function DisableControls() {

    var controls = document.links;
    for (i = 0; i < controls.length; i++) 
    {
        if (controls[i].id.match("MainLogoHref") ||
            controls[i].id.match("homeHref") ||
            controls[i].id.match("profileHref") ||
            controls[i].id.match("trainingHref") ||
            controls[i].id.match("supportHref") ||
            controls[i].id.match("hlSignIn") ||
            controls[i].id.match("Me_TermsOfUse") ||
            controls[i].id.match("Me_SignUp") ||
            controls[i].id.match("me_forgotpassword") ||
            controls[i].id.match("Or_PageView") ||
            controls[i].id.match("Tr_EventTrainings") ||
            controls[i].id.match("Tr_OnlineTrainings") ||
            controls[i].id.match("Tr_PDC") ||
            controls[i].id.match("Tr_PastEventTrainings") ||
            controls[i].id.match("Tr_TrainingUpdates") ||
            controls[i].id.match("Trc_Main") ||
            controls[i].id.match("Tr_SRSRequirements") ||
            controls[i].id.match("Ta_ApplicationMain") ||
            controls[i].id.match("Yo_Main") ||
            controls[i].id.match("Ca_ArtCalendar") ||
            controls[i].id.match("Ca_AffirmationCards") ||
            controls[i].id.match("Ca_FamilyLifeCenter") ||
            controls[i].id.match("Re_TipSheets") ||
            controls[i].id.match("Re_SRSCentral") ||
            controls[i].id.match("Re_OrganizationList") ||
            controls[i].id.match("Re_TrainerTrack") ||
            controls[i].id.match("Re_Links") ||
            controls[i].id.match("Su_Faq") ||
            controls[i].id.match("Su_OurTeam") ||
            controls[i].id.match("Su_SubmitCase") ||
            controls[i].id.match("Su_GoogleSearch") ||
            controls[i].id.match("MemberPolicyHref") ||
            controls[i].id.match("FAQHref") ||
            controls[i].id.match("ContactUsHref") ||
            controls[i].id.match("treeGroup")
             ) 
        {
            controls[i].onclick = showAlert;
            controls[i].style.color = "LightGray";
            controls[i].href = document.location.href;
        }
        else 
        {
            continue;
        }
    }
}

function showAlert() 
{
    var message = "<span class='bodyTextRed'>Please update the missing REQUIRED profile information. You can navigate other links after completing the mandatory information.</span>";
    radalert(message, 470, 150, 'Required Information Missing');

    return false;
}