﻿// JScript File
// show and hide the pop up messages
function showPopUp(obj)
{ 
   if(typeof(obj) == "string")
   {
    obj = document.getElementById(obj);
   }
    obj.style.display = "table-header-group";
}

function closePopUp(obj)
{ 
   if(typeof(obj) == "string")
   {
    obj = document.getElementById(obj);
   }
    obj.style.display = "none";
}

// Redirect to the login page
function RedirectToLogin()
{
    window.location="RedirectLoginPage.aspx?ReturnUrl="+window.location;
}

function getDomain()
{
    return window.location.host;
}