﻿// JScript File
function CheckAll(chk)
{
    
    for(var i=0;i < document.aspnetForm.elements.length;i++)
    {
        var e = document.aspnetForm.elements[i];
        if (e.type == "checkbox")
        {
                e.checked = chk.checked;
        }
    }
//    enablebuttons();
}

 function SetLoginDiv()
 {
 //Set Div height ( shows category ) according to window height 
    x=GetHeight();
    document.getElementById('divLogin').style.height=x-85;
 }
 function SetMemDiv()
 {
    x=GetHeight();
    document.getElementById('dvMem').style.height=x-110;
 }
 function SetGooleDiv()
    {
        x=GetHeight();
        document.getElementById('divGoogle').style.height=x-85;
    }
 function SetCatDiv()
      {
        x=GetHeight();
        document.getElementById('dvCat').style.height=x-85;
    }
 function GetWidth()
{
//Get the window width in JavaScript using a cross-browser function that works with all versions of Internet Explorer and Firefox.
        var x = 0;
        if (self.innerHeight)
        {
                x = self.innerWidth;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                x = document.documentElement.clientWidth;
        }
        else if (document.body)
        {
                x = document.body.clientWidth;
        }
        return x;
}
 
function GetHeight()
{
//Get the window height in JavaScript using a cross-browser function that works with all versions of Internet Explorer and Firefox.
        var y = 0;
        if (self.innerHeight)
        {
                y = self.innerHeight;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                y = document.documentElement.clientHeight;
        }
        else if (document.body)
        {
                y = document.body.clientHeight;
        }
        return y;
}