document.forms["Login"].setAttribute("autocomplete", "off");


// Overwrite the function from the Signon Page
function formField1(form) 
{
return true;
    Ctrl = document.Login.userNumber;
    if (Ctrl.value != "999999999")
    {
    	
        	validatePrompt(Ctrl, "The Demo User ID must be '999999999'.");
        

        return false;
    }
    else
        return true;
}

// Overwrite the function from the Signon Page
function formField2(form) 
{
return true;
    bName = navigator.appName;               // get version of Navigator
    bVer = parseInt(navigator.appVersion);
    // if Netscape 2.0 or below just get out
    if (bName == "Netscape" && bVer < 3)
        return (true);
    Ctrl = document.Login.password;
    if (Ctrl.value != "1234")
    {
    	
        	validatePrompt(Ctrl, "The Demo Password must be '1234'.");
        
                
        return false;
    }
    else
        return true;
}

// Overwrite the function from the Signon Page
function dofocus() 
{
    document.cookie = "cookie_check=expired; expires=Mon, 21-Nov-1988 14:30:00 GMT; path=/";
    document.cookie = "current=signon; path=/onlineserv/HB/";
    document.cookie = "LogTime=expired; expires=Mon, 21-Nov-1988 14:30:00 GMT; path=/onlineserv/HB/";
    document.cookie = "dihb30=expired; expires=Mon, 21-Nov-1988 14:30:00 GMT; path=/onlineserv/HB/";
    document.cookie = "direc30=expired; expires=Mon, 21-Nov-1988 14:30:00 GMT; path=/onlineserv/HB/";

    inSubmit = 0;
}

function openDemoWin(){
	
	demoWin=window.open("https://www.myalliancebank.com/onlineserv/HB/dimlDisplayer.cgi?DIML_FILE=DemoLayout.diml&DIML_PATH=../HB3.library/standard/layout/&pageType=Signon&language=english&DEFAULT_HTTP_CHAR_SET=charset=ISO-8859-1","demo", "resizable,scrollbars,toolbar,height=400,width=700");
	demoWin.focus();
    document.cookie = "demo=DISPLAY; path=/";
}

/*************************
This allows you to go directly to the demo.
***************************/
urltocheck = self.location.href;
if(urltocheck.indexOf("demo")>0){
	goDemo();
}
else{
	document.cookie = "demo=DISPLAY; expires=Mon, 21-Nov-1970 14:30:00 GMT; path=/";
}



var demo = false;
//recently added; 
function goDemo(){
demo = true;
document.cookie = "cookie_check=valid; path=/";
document.cookie = "demo=START; path=/";
document.forms['Login'].userNumber.value = "999999999";
document.forms['Login'].password.value = "1234";
openDemoWin();
dofocus();
}
