/// <summary>
        /// Get Authenticated Agent
        ///
        /// </summary>
        private void GetAuthenticatedAgent()
        {
            try
            {
                Agent agent = new Agent();
                agent.LoginName = txtUserName.Text.Trim();
                agent.Password  = txtPassword.Text.ToString();
                AgentService agentservice = new AgentService();
                string       sLoginName   = agent.LoginName;
                string       sPassword    = agent.Password;
                string       sIP          = GetIpAddress();
                string       sMachineName = GetClientsMachineName();


                XmlNode xNodeAgent = agentservice.Authenticate(sLoginName,
                                                               sPassword,
                                                               sIP,
                                                               sMachineName);
                agent = (Agent)Serialize.DeserializeObject(xNodeAgent, "Agent");
                Session["LoggedAgent"] = agent;
            }
            catch (Exception ex)
            {
                PageMessage = ex.Message;
            }
        }