﻿// JScript File

        var state = 'block';

        function show_hide() {
            var a = window.location.href;
            var layer_ref = 'div1';
            if(a.indexOf('Signin.aspx')>= 1)
            {
                if (document.getElementById('ctl00_ContentPlaceHolder1_hdbVal').value == "1")
                {
                    document.getElementById('ctl00_ContentPlaceHolder1_hdbVal').value = "0"
                    state = 'block';
                }
                else
                {
                    if (state == 'block') 
                    {
                        state = 'none';
                    }
                    else 
                    {
                        state = 'block';
                    }
                }
                if (document.all) 
                    { //IS IE 4 or 5 (or 6 beta)
                        eval( "document.all." + layer_ref + ".style.display = state");
                    }
                    if (document.layers) 
                    { //IS NETSCAPE 4 or below
                        document.layers[layer_ref].display = state;
                    }
                    if (document.getElementById &&!document.all) 
                    {
                        hza = document.getElementById(layer_ref);
                        hza.style.display = state;
                    }
            }
        }
        
        function MM_openBrWindow(theURL,winName,features) 
        { //v2.0
            window.open(theURL,winName,features);
        }
  
  function beforeUnload()
    {
    event.returnValue = "Leaving the web application will cause you to have to log on again.";
    }
    
function BrowserDetect() 
{
doc=window.document;
navVersion=navigator.appVersion.toLowerCase();
this.ie4=(!doc.getElementById&&doc.all)?true:false;
this.ie5=(navVersion.indexOf("msie 5.0")!=-1)?true:false;
this.ie55=(navVersion.indexOf("msie 5.5")!=-1)?true:false;
this.ie6=(navVersion.indexOf("msie 6.0")!=-1)?true:false;
this.isIE=(this.ie5||this.ie55||this.ie6)?true:false;
this.isGecko=!this.isIE;
}
 

 
function BuildOnKeyDownScript(e)
{
myBrowser = BrowserDetect;
var key
if (myBrowser.isIE)
{
key = e.keyCode
}
else
{
key = e.which;
} 
 
if (key == 13)
{
return false;
}
} 

