﻿/*
 * Security Plugin 
 * This File is loaded if and only if the user is not logged in.
 * So Use this file to perform those operations related to security.
 */
  
$(document).ready(function() {

   /* Cancels the functionality of any link/button/asp:button etc with the css class 'secure' and prompts to login*/
   $(".secure").click(function(event){
   event.preventDefault();
   
 });
 
});
     function SendInvitation(UserID)
     {
        alert("You have to be logged in to perform this operation.");
        return null;
     }
    
     function RequestMembership(GroupID) { 
        /*alert("You have to be logged in to perform this operation.");
        return null;*/
         var url = "/Controls/Community/Dialogs/RequestLogin.aspx";
         var oWnd = window.radopen(url, null);
         oWnd.setSize(450, 178);
         oWnd.center();
         oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move);
         return oWnd;
     }
     
     function RequestRegistryMembership(ActivityID)
     { 
        alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function UpdateLogo(ObjectID)
     { 
        alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function InviteMembers(GroupID)
     { 
        alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function InviteRegistryMembers(ActivityID)
     { 
        alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function InviteGroups(GroupID)
     { 
        alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function CreateChildGroup(GroupID)
     { 
       alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function ShowPopUp(ControlPath, QueryString)
     { 
        alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function UpdateProfessionList(ObjectID)
     {
        alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function UpdateSpecialtyList(ObjectID)
     {
        alert("You have to be logged in to perform this operation.");
        return null;
     }
     
     function UpdateExpertiseList(cname)
     {
        alert("You have to be logged in to perform this operation.");
        return null;
     }
