var category

var GenCat = new Array();
	GenCat[0] = "telebank.html";
	GenCat[1] = "savings.html";
	GenCat[2] = "moneymarket.html";
	GenCat[3] = "checking.html";
	GenCat[4] = "loans.html";
	GenCat[5] = "ira.html";
	GenCat[6] = "cod.html"
	GenCat[7] = "safedeposit.html";
	GenCat[8] = "othercharge.html";
	GenCat[9] = "atm.html";
	GenCat[10] = "debit.html";
	GenCat[11] = "credit.html";
	
var savings = new Array();
	savings[0] = savingsa;
	savings[1] = savingsb;
	savings[2] = savingsc;
	
var savingsa = new Option("Regular Savings", "savings.html#regular");
var savingsb = new Option("Vacation Club", "savings.html#vacation");
var savingsc = new Option("Christmas Club", "savings.html#xmas");

var checking = new Array();
	checking[0] = "Regular Checking";
	checking[0].value = "checking.html";
	checking[1] = "NOW Checking";
	checking[1].value = "checking.html#now";
	checking[2] = "Super NOW Checking";
	checking[2].value = "checking.html#supernow";
	checking[3] = "Hometown Checking Club";
	checking[3].value = "checking.html#hometown";
	checking[4] = "Hometown Plus Checking";
	checking[4].value = "checking.html#hometownplus";
	checking[5] = "Horizon Club Checking";
	checking[5].value = "checking.html#horizon";
	checking[6] = "Spirit Checking";
	checking[6].value = "checking.html#spirit";
	checking[7] = "Student Checking";
	checking[7].value = "checking.html#student";
	checking[8] = "Direct Deposit Checking";
	checking[8].value = "checking.html#direct";
	
var multiOpts = new Array();
	multiOpts[0] = checking;
	multiOpts[1] = savings;
	
function go1() {
	if (document.AppForm.general.options[document.AppForm.general.selectedIndex].value != "none") {
		checkGenCat();
	}
}

function go2() {
	location = document.AppForm.specific.options[document.AppForm.specific.selectedIndex].value;
}

function checkGenCat() {
	if (document.AppForm.general.options[document.AppForm.general.selectedIndex].value == 2) {
		changeOptions("2");
	}
	if (document.AppForm.general.options[document.AppForm.general.selectedIndex].value == 4) {
		changeOptions(4);
	}
	else {
		location = GenCat[document.AppForm.general.options[document.AppForm.general.selectedIndex].value];	
	}
}
	
var choose = new Option("Choose a Specific Category...", "none");
var blank = new Option("------------------------------", "none");

function changeOptions(x) {
	document.AppForm.specific.options[0] = choose;
	document.AppForm.specific.options[1] = blank;
	if (x == "2") {
		document.AppForm.specific.options[2] = savingsa;
		document.AppForm.specific.options[3] = savingsb;
		document.AppForm.specific.options[4] = savingsc;
	}
	else {
		document.AppForm.specific.options[2] = checkinga;
		document.AppForm.specific.options[3] = checkingb;
		document.AppForm.specific.options[4] = checkingc;
		document.AppForm.specific.options[5] = checkingd;
		document.AppForm.specific.options[6] = checkinge;
		document.AppForm.specific.options[7] = checkingf;
		document.AppForm.specific.options[8] = checkingg;
		document.AppForm.specific.options[9] = checkingh;
		document.AppForm.specific.options[10] = checkingi;
		document.AppForm.specific.options[11] = checkingj;
	}
}
