//================================================
// Display "Checking" menu
//================================================
function showCheckingMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'hidden';

	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'visible';
}

//================================================
// Display "Savings" menu
//================================================
function showSavingsMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'visible';
}

//================================================
// Display "LOANS" menu
//================================================
function showLoanMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'visible';
}

//================================================
// Display "Investment" menu
//================================================
function showInvestmentMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'visible';
}

//================================================
// Display "SERVICES" menu
//================================================
function showServicesMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'visible';
}

//================================================
// Display "FEE" menu
//================================================
function showCustCareMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'visible';
}


//================================================
// Display "ABOUT" menu
//================================================
function showAboutMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'visible';
}

//================================================
// Display "INTERNET" menu
//================================================
function showInternetMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'visible';
}


//================================================
// Hide all menus and turn buttons off
//================================================
function hideAll()
{
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('InvestmentMenu');
	this.style = document.getElementById('InvestmentMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CustCareMenu');
	this.style = document.getElementById('CustCareMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';

	this.obj = document.getElementById('InternetMenu');
	this.style = document.getElementById('InternetMenu').style.visibility = 'hidden';
}

//================================================
// Validate input on initial Cyberquote form
//================================================
function ValidateCyberquoteForm(theForm)
{
	if(theForm.quoteon.value.length == 0)
	{
		alert("Please specify whether you are an existing Lisle Savings Bank loan customer..");
		theForm.quoteon.focus();
		return false;
	}
}

//================================================
// Populate Cyberquote drop-down and display
//================================================
function populateLoan(theForm)
{
	if(theForm.iscust[0].checked)
	{
		// Clear current options
		for(var x = 0; x <= theForm.quoteon.options.length; x++)
		{
			theForm.quoteon.options[x] = null;
		}
	
		// Add options for exisiting customers
		newOpt    = new Option("Loan to Purchase", "exnew", true, false);
		refiOpt1  = new Option("Refinance another lender", "exrefiother", false, false);
		refiOpt2  = new Option("Cash back refinance on LSB mortgage", "exreficash", false, false);
		refiOpt3  = new Option("Refinance existing LSB mortgage balance", "exrefibal", false, false);
		equityOpt = new Option("Home Equity Line of Credit", "exequity", false, false);
		secondOpt = new Option("2nd Mortgage", "exsecond", false, false);
		
		theForm.quoteon.options[0] = newOpt;
		theForm.quoteon.options[1] = refiOpt1;
		theForm.quoteon.options[2] = refiOpt2;
		theForm.quoteon.options[3] = refiOpt3;
		theForm.quoteon.options[4] = equityOpt;
		theForm.quoteon.options[5] = secondOpt;
		
		if((parseFloat(navigator.appVersion) <= 4) && (navigator.appName == "Netscape"))
		{
			theForm.quoteon.options[0].selected = true;
			history.go(0);
		}
		
		// Show selection drop-down
		this.obj = document.getElementById('quoteOptions');
		this.style = document.getElementById('quoteOptions').style.visibility = 'visible';
		
		return;
	}
	else
	{
		// Clear current options
		for(var x = 0; x <= theForm.quoteon.options.length; x++)
		{
			theForm.quoteon.options[x] = null;
		}
	
		// Add options for new customers
		newOpt  = new Option("New first mortgage", "newnew", true, false);
		refiOpt = new Option("Refinance existing mortgage", "newrefi", false, false);
		
		theForm.quoteon.options[0] = newOpt;
		theForm.quoteon.options[1] = refiOpt;
		theForm.quoteon.options[2] = null;
		
		if((parseFloat(navigator.appVersion) <= 4) && (navigator.appName == "Netscape"))
		{
			theForm.quoteon.options[0].selected = true;
			history.go(0);
		}
	
		// Show selection drop-down
		this.obj = document.getElementById('quoteOptions');
		this.style = document.getElementById('quoteOptions').style.visibility = 'visible';
		
		return;
	}
}