// 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.centrisfcu.org/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();
}