// JavaScript Document

//This function will read from record1 of the modules.txt file  
//the menu options that were selected to be present in the demo. 
//The values are stored in the var mainMenu, defined in modules_....html
function getMenu()
{
	var current = eval("record1");
	
	//iterate through the data from the text file and store into an array
	for(var i=0; i < record1.length; i++){
		mainMenu[i] = current[i];
	}	
}//end getMenu

function showMenuItem(id)
{
	var check = 0;
	
	for(var i=0; i < mainMenu.length; i++){
		if (mainMenu[i] == id){
	   		check = 1;
	   		i = mainMenu.length;
		}//if
	}//for
	return check;
}//end showMenuItem

//This function will read from record2 of the modules.txt file  
//the Loan options that were selected to be present in the demo. 
//The values are stored in the var loanMenu, defined in modules_....html
function getLoanMenu()
{
	var current = eval("record2");
	
	//iterate through the data from the text file and store into an array
	for(var i=0; i < record2.length; i++){
		loanMenu[i] = current[i];
	}	
}//end getLoanMenu

function showLoanItem(id)
{
	var check = 0;
	
	for(var i=0; i < loanMenu.length; i++){
		if (loanMenu[i] == id){
	   		check = 1;
	   		i = loanMenu.length;
		}//if
	}//for
	return check;
}//end showLoanItem

//This function will read from record3 of the modules.txt file  
//the Wire options that were selected to be present in the demo. 
//The values are stored in the var wireMenu, defined in modules_....html
function getWireMenu()
{
	var current = eval("record3");
	
	//iterate through the data from the text file and store into an array
	for(var i=0; i < record3.length; i++){
		wireMenu[i] = current[i];
	}	
}//end getWireMenu

function showWireItem(id)
{
	var check = 0;
	
	for(var i=0; i < wireMenu.length; i++){
		if (wireMenu[i] == id){
	   		check = 1;
	   		i = wireMenu.length;
		}//if
	}//for
	return check;
}//end showWireItem

//This function will read from record4 of the modules.txt file  
//the ACH options that were selected to be present in the demo. 
//The values are stored in the var achMenu, defined in modules_....html
function getACHMenu()
{
	var current = eval("record4");
	
	//iterate through the data from the text file and store into an array
	for(var i=0; i < record4.length; i++){
		achMenu[i] = current[i];
	}	
}//end getACHMenu

function showACHItem(id)
{
	var check = 0;
	
	for(var i=0; i < achMenu.length; i++){
		if (achMenu[i] == id){
	   		check = 1;
	   		i = achMenu.length;
		}//if
	}//for
	return check;
}//end showACHItem

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//function writeMainMenu
//This function will write the <ul> tag in the menu tabs
//This function calls the get...Menu and showMenuItem functions  
//to determine if the tab should be displayed
function writeMainMenu(id)
{
	var rc,rc1,rc2,rc3,rc4,rc5,rc6;
	var str='';
	var testWireRpt = false;	var testStmt = false;	var testDown = false;	var testCard = false;
	var testLoanRpt = false;	var testRpt = false;	var testAcct = false;
	var testExpr = false;	var testBook = false;	var testFunds = false;	var testLoans = false;
	var testBpmnt = false;	var testBpay = false;	var testCred = false;	var testACH = false;
	var testUp = false;		var testWires = false;	var testSchd = false;
	var testStop = false;	var testPP = false;		var testEnhPP = false;	var testFAR = false;
	var testPAR = false;	var testDAR = false;	var testChk = false;	var testRDC = false;
	
	getMenu(); getLoanMenu(); getWireMenu(); getACHMenu();
	
		rc = showMenuItem('inwirerpt');
		if (rc == '1'){
			testWireRpt = true;
		}
		rc = showMenuItem('statements');
		if (rc == '1'){
			testStmt = true;
		}
		rc = showMenuItem('filedown');
		if (rc == '1'){
			testDown = true;
		}
		rc = showMenuItem('cardrpt');
		if (rc == '1'){
			testCard = true;
		}
		rc = showMenuItem('loan');
		if (rc == '1'){
			testLoanRpt = true;
		}
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
		}		
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
		}
		rc = showMenuItem('wiremain');
		if (rc == '1'){
			rc1 = showWireItem('repetitive');
			rc2 = showWireItem('freeform');
			if ((rc1 == '1') || (rc2 == '1')){
				testWires = true;
				testSchd = true;
			}//end wire and at least one type
		}
		rc = showMenuItem('fileup');
		if (rc == '1'){
			testUp = true;
		}
		rc = showMenuItem('ach');
		if (rc == '1'){
			rc1 = showACHItem('payment');
			rc2 = showACHItem('federal');
			rc3 = showACHItem('state');
			rc4 = showACHItem('collection');
			rc5 = showACHItem('child');
			rc6 = showACHItem('stp820');
			if ((rc1 = '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1') || (rc6 == '1')){
				testACH = true;
				testSchd = true;
			}//end both ACH and at least one type
		}
		rc = showMenuItem('cardpay');
		if (rc == '1'){
			testCred = true;
			testSchd = true;
		}
		rc = showMenuItem('billpay');
		if (rc == '1'){
			testBpay = true;
		}
		rc = showMenuItem('bill');
		if (rc == '1'){
			testBpmnt = true;
		}
		rc = showMenuItem('loan');
		if (rc == '1'){
			rc1 = showLoanItem('payment');
			rc2 = showLoanItem('advance');
			if ((rc1 = '1') || (rc2 == '1')){
				testLoans = true;
				testSchd = true;
			}//end both Loan and at least one type
		}
		rc = showMenuItem('funds');
		if (rc == '1'){
			testFunds = true;
		}
		rc = showMenuItem('book');
		if (rc == '1'){
			testBook = true;
			testSchd = true;
		}
		rc = showMenuItem('express');
		if (rc == '1'){
			testExpr = true;
			testSchd = true;
		}
		/*rc = showMenuItem('schedule');
		if (rc == '1'){
			testSchd = true;
		}*/
		rc = showMenuItem('chkreorder');
		if (rc == '1'){
			if ((testAcct) || (testRpt)){
				testChk = true;
			}//end Check Reorder requires one of the reporting modules
		}
		rc = showMenuItem('deprecon');
		if (rc == '1'){
			testDAR = true;
		}
		rc = showMenuItem('partrecon');
		if (rc == '1'){
			testPAR = true;
		}
		rc = showMenuItem('fullrecon');
		if (rc == '1'){
			testFAR = true;
		}
		rc = showMenuItem('positive');
		if (rc == '1'){
			testEnhPP = true;
		}
		rc = showMenuItem('opositive');
		if (rc == '1'){
			testPP = true;
		}
		rc = showMenuItem('stop');
		if (rc == '1'){
			testStop = true;
		}
	if (id == 'welcome'){
		str+='<ul class="BIB-Menu"><li class="BIB-Menu-tabSelected"><a href="..\/modules_main\/modules_main.html">Welcome<\/a><\/li>';
		if ((testAcct) || (testRpt) || (testLoanRpt) || (testCard) || (testDown) || (testStmt) || (testWireRpt)){
			str+='<li><a href="..\/modules_main\/modules_reports.html">Reports<\/a><\/li>';
		}
		if ((testSchd) || (testExpr) || (testBook) || (testFunds) || (testLoans) || (testBpmnt) || (testBpay) || (testCred) ||
				(testACH) || (testUp) || (testWires)){
		   	str+='<li><a href="..\/modules_main\/modules_tranpay.html">Transfers and Payments<\/a><\/li>';
		}
		if ((testStop) || (testPP) || (testEnhPP) || (testFAR) || (testPAR) || (testDAR) || (testChk) || (testRDC)){
			str+='<li><a href="..\/modules_main\/modules_acctserv.html">Account Services<\/a><\/li>';
		}
		str+='<li><a href="..\/modules_main\/modules_admin.html">Administration<\/a><\/li><\/ul>';

		helpwriteContent(id,str);	
	}// end if welcome

	if (id == 'menu_reports'){
		str+='<ul class="BIB-Menu"><li><a href="..\/modules_main\/modules_main.html">Welcome<\/a><\/li>';
		if ((testAcct) || (testRpt) || (testLoanRpt) || (testCard) || (testDown) || (testStmt) || (testWireRpt)){
			str+='<li class="BIB-Menu-tabSelected"><a href="..\/modules_main\/modules_reports.html">Reports<\/a><\/li>';
		}
		if ((testSchd) || (testExpr) || (testBook) || (testFunds) || (testLoans) || (testBpmnt) || (testBpay) || (testCred) ||
				(testACH) || (testUp) || (testWires)){
		   	str+='<li><a href="..\/modules_main\/modules_tranpay.html">Transfers and Payments<\/a><\/li>';
		}
		if ((testStop) || (testPP) || (testEnhPP) || (testFAR) || (testPAR) || (testDAR) || (testChk) || (testRDC)){
			str+='<li><a href="..\/modules_main\/modules_acctserv.html">Account Services<\/a><\/li>';
		}
		str+='<li><a href="..\/modules_main\/modules_admin.html">Administration<\/a><\/li><\/ul>';

		helpwriteContent(id,str);	
	}// end if menu_reports
	
	if (id == 'menu_tranpay'){
		str+='<ul class="BIB-Menu"><li><a href="..\/modules_main\/modules_main.html">Welcome<\/a><\/li>';
		if ((testAcct) || (testRpt) || (testLoanRpt) || (testCard) || (testDown) || (testStmt) || (testWireRpt)){
			str+='<li><a href="..\/modules_main\/modules_reports.html">Reports<\/a><\/li>';
		}
		if ((testSchd) || (testExpr) || (testBook) || (testFunds) || (testLoans) || (testBpmnt) || (testBpay) || (testCred) ||
				(testACH) || (testUp) || (testWires)){
		   	str+='<li class="BIB-Menu-tabSelected"><a href="..\/modules_main\/modules_tranpay.html">Transfers and Payments<\/a><\/li>';
		}
		if ((testStop) || (testPP) || (testEnhPP) || (testFAR) || (testPAR) || (testDAR) || (testChk) || (testRDC)){
			str+='<li><a href="..\/modules_main\/modules_acctserv.html">Account Services<\/a><\/li>';
		}
		str+='<li><a href="..\/modules_main\/modules_admin.html">Administration<\/a><\/li><\/ul>';

		helpwriteContent(id,str);	
	}// end if menu_tranpay
	
	if (id == 'menu_acctserv'){
		str+='<ul class="BIB-Menu"><li><a href="..\/modules_main\/modules_main.html">Welcome<\/a><\/li>';
		if ((testAcct) || (testRpt) || (testLoanRpt) || (testCard) || (testDown) || (testStmt) || (testWireRpt)){
			str+='<li><a href="..\/modules_main\/modules_reports.html">Reports<\/a><\/li>';
		}
		if ((testSchd) || (testExpr) || (testBook) || (testFunds) || (testLoans) || (testBpmnt) || (testBpay) || (testCred) ||
				(testACH) || (testUp) || (testWires)){
		   	str+='<li><a href="..\/modules_main\/modules_tranpay.html">Transfers and Payments<\/a><\/li>';
		}
		if ((testStop) || (testPP) || (testEnhPP) || (testFAR) || (testPAR) || (testDAR) || (testChk) || (testRDC)){
			str+='<li class="BIB-Menu-tabSelected"><a href="..\/modules_main\/modules_acctserv.html">Account Services<\/a><\/li>';
		}
		str+='<li><a href="..\/modules_main\/modules_admin.html">Administration<\/a><\/li><\/ul>';

		helpwriteContent(id,str);	
	}// end if manu_acctserv

	if (id == 'menu_admin'){
		str+='<ul class="BIB-Menu"><li><a href="..\/modules_main\/modules_main.html">Welcome<\/a><\/li>';
		if ((testAcct) || (testRpt) || (testLoanRpt) || (testCard) || (testDown) || (testStmt) || (testWireRpt)){
			str+='<li><a href="..\/modules_main\/modules_reports.html">Reports<\/a><\/li>';
		}
		if ((testSchd) || (testExpr) || (testBook) || (testFunds) || (testLoans) || (testBpmnt) || (testBpay) || (testCred) ||
				(testACH) || (testUp) || (testWires)){
		   	str+='<li><a href="..\/modules_main\/modules_tranpay.html">Transfers and Payments<\/a><\/li>';
		}
		if ((testStop) || (testPP) || (testEnhPP) || (testFAR) || (testPAR) || (testDAR) || (testChk) || (testRDC)){
			str+='<li><a href="..\/modules_main\/modules_acctserv.html">Account Services<\/a><\/li>';
		}
		str+='<li class="BIB-Menu-tabSelected"><a href="..\/modules_main\/modules_admin.html">Administration<\/a><\/li><\/ul>';

		helpwriteContent(id,str);	
	}// end if menu_admin

}//end writeMainMenu

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//function writeMenuSubContent
//This function will write the <ul> tag in the menu subcontent
//There is a subcontent section for each of the four service tabs
//This function calls the showMenuItem function  
//to determine if the subcontent label should be displayed
//The content parameter is used to make the selected service bold
function writeMenuSubContent(id,content)
{
	var rc,rc1,rc2,rc3,rc4,rc5,rc6;
	var str='';
	var lastItem = '';
	var testWireRpt = false;	var testStmt = false;	var testDown = false;	var testCard = false;
	var testLoanRpt = false;	var testRpt = false;	var testAcct = false;
	var testExpr = false;	var testBook = false;	var testFunds = false;	var testLoans = false;
	var testBpmnt = false;	var testBpay = false;	var testCred = false;	var testACH = false;
	var testUp = false;		var testWires = false;	var testSchd = false;
	var testStop = false;	var testPP = false;		var testEnhPP = false;	var testFAR = false;
	var testPAR = false;	var testDAR = false;	var testChk = false;	var testRDC = false;
	var testComm = false;	var testCoAdm = false;	var testSelfAdm = false;
	

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//Reports tab subcontent section
	if (id == 'reports'){
		rc = showMenuItem('inwirerpt');
		if (rc == '1'){
		   testWireRpt = true;
		   if (lastItem == '')
			  lastItem = "inwirerpt"
		}
		rc = showMenuItem('statements');
		if (rc == '1'){
			testStmt = true;
			if (lastItem == '')
				lastItem = "statements";
		}
		rc = showMenuItem('filedown');
		if (rc == '1'){
			testDown = true;
			if (lastItem == '')
				lastItem = "filedown";
		}
		rc = showMenuItem('cardrpt');
		if (rc == '1'){
			testCard = true;
			if (lastItem == '')
				lastItem = "cardrpt";
		}
		rc = showMenuItem('loan');
		if (rc == '1'){
			testLoanRpt = true;
			if (lastItem == '')
				lastItem = "loan";
		}
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
			if (lastItem == '')
				lastItem = "reporting";
		}		
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
			if (lastItem == '')
				lastItem = "account";
		}

		str+='<ul class="BIB-Menu-Sub-Content-Selected">';
		if (testAcct){
			if (lastItem != 'account'){
				if (content == 'acct'){
					str+='<li><a href="..\/account_reporting\/quick.html"><b>Deposit Account Reports<\/b><\/a><\/li>';		
				}// end not last and bold
				else{
					str+='<li><a href="..\/account_reporting\/quick.html">Deposit Account Reports<\/a><\/li>';
				}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'acct'){
					str+='<a href="..\/account_reporting\/quick.html"><b>Deposit Account Reports<\/b><\/a><\/li><\/ul>';
				}// end last and bold
				else{
					str+='<a href="..\/account_reporting\/quick.html">Deposit Account Reports<\/a><\/li><\/ul>';
				}
			}//end account is last
		}//end testAcct	
		if (testRpt){
			if (lastItem != 'reporting'){
				if (content == 'rpt'){
					str+='<li><a href="..\/reporting\/quick.html"><b>Deposit Reports<\/b><\/a><\/li>';		
				}// end not last and bold
				else{
					str+='<li><a href="..\/reporting\/quick.html">Deposit Reports<\/a><\/li>';
				}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'rpt'){
					str+='<a href="..\/reporting\/quick.html"><b>Deposit Reports<\/b><\/a><\/li><\/ul>';
				}//end lat and bold
				else{
					str+='<a href="..\/account\/quick.html">Deposit Reports<\/a><\/li><\/ul>';
					}
			}//end account is last
		}//end testRpt	
		if (testLoanRpt){
			if (lastItem != 'loan'){
				if (content == 'loan'){
			   		str+='<li><a href="..\/loan\/summary.html"><b>Loan Reports<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/loan\/summary.html">Loan Reports<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'loan'){
					str+='<a href="..\/loan\/summary.html"><b>Loan Reports<\/b><\/a><\/li><\/ul>';
					}//end last and bold
				else{
					str+='<a href="..\/loan\/summary.html">Loan Reports<\/a><\/li><\/ul>';
				}
			}//end loan is last
		}//end testLoanRpt
		if (testCard){
			if (lastItem != 'cardrpt'){
				if (content == 'card'){
					str+='<li><a href="..\/credit_card\/activity.html"><b>Credit Card Reports<\/b><\/a><\/li>';
				}//end not last and bold
				else{
					str+='<li><a href="..\/credit_card\/activity.html">Credit Card Reports<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'card'){
				   	str+='<a href="..\/credit_card\/activity.html"><b>Credit Card Reports<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/credit_card\/activity.html">Credit Card Reports<\/a><\/li><\/ul>';
				}
			}//end card is last
		}//end testCard
		if (testDown){
			if (lastItem != 'filedown'){
				if (content == 'down'){
			   		str+='<li><a href="..\/file_download\/download_file.html"><b>Downloadable Reports<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/file_download\/download_file.html">Downloadable Reports<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'down'){
					str+='<a href="..\/file_download\/download_file.html"><b>Downloadable Reports<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/file_download\/download_file.html">Downloadable Reports<\/a><\/li><\/ul>';
				}
			}//end filedown is last
		}//end testDown
		if (testStmt){
			if (lastItem != 'statements'){
				if (content == 'stmt'){
			   		str+='<li><a href="..\/statements\/statements.html"><b>Statements<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/statements\/statements.html">Statements<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'stmt'){
					str+='<a href="..\/statements\/statements.html"><b>Statements<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/statements\/statements.html">Statements<\/a><\/li><\/ul>';
				}
			}//end statements is last
		}//end testStmt
		if (testWireRpt){
			if (lastItem != 'inwirerpt'){
				if (content == 'wire'){
			   		str+='<li><a href="..\/wire\/incoming.html"><b>Wire Reports<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/wire\/incoming.html">Wire Reports<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'wire'){
					str+='<a href="..\/wire\/incoming.html"><b>Wire Reports<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/wire\/incoming.html">Wire Reports<\/a><\/li><\/ul>';
				}
			}//end wire is last
		}//end testWireRpt
		if (lastItem == ''){
			str+='<\/ul>';
		}	
		helpwriteContent(id,str);	
	}// end if reports

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//Transactions and Payments subcontent section
	if (id == 'tranpay'){
		rc = showMenuItem('wiremain');
		if (rc == '1'){
			rc1 = showWireItem('repetitive');
			rc2 = showWireItem('freeform');
			if ((rc1 == '1') || (rc2 == '1')){
    			testWires = true;
    			if (lastItem == '')
    				lastItem = "wiremain";
    		}//end wire and at least one type
		}
		rc = showMenuItem('fileup');
		if (rc == '1'){
			testUp = true;
			if (lastItem == '')
				lastItem = "fileup";
		}
		rc = showMenuItem('ach');
		if (rc == '1'){
			rc1 = showACHItem('payment');
			rc2 = showACHItem('federal');
			rc3 = showACHItem('state');
			rc4 = showACHItem('collection');
			rc5 = showACHItem('child');
			rc6 = showACHItem('stp820');
			if ((rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1') || (rc6 == '1')){
				testACH = true;
				if (lastItem == '')
					lastItem = "ach";
			}//end both ACH and at least one type
		}
		rc = showMenuItem('cardpay');
		if (rc == '1'){
			testCred = true;
			if (lastItem == '')
				lastItem = "cardpay";
		}
		rc = showMenuItem('billpay');
		if (rc == '1'){
			testBpay = true;
			if (lastItem == '')
				lastItem = "billpay";
		}
		rc = showMenuItem('bill');
		if (rc == '1'){
			testBpmnt = true;
			if (lastItem == '')
				lastItem = "bill";
		}
		rc = showMenuItem('loan');
		if (rc == '1'){
			rc1 = showLoanItem('payment');
			rc2 = showLoanItem('advance');
			if ((rc1 == '1') || (rc2 == '1')){
				testLoans = true;
				if (lastItem == '')
					lastItem = "loan";
			}//end both Loan and at least one type
		}
		rc = showMenuItem('funds');
		if (rc == '1'){
			testFunds = true;
			if (lastItem == '')
				lastItem = "funds";
		}
		rc = showMenuItem('book');
		if (rc == '1'){
			testBook = true;
			if (lastItem == '')
				lastItem = "book";
		}
		rc = showMenuItem('express');
		if (rc == '1'){
			testExpr = true;
			if (lastItem == '')
				lastItem = "express";
		}
		rc = showMenuItem('schedule');
		if (rc == '1'){
			testSchd = true;
			if (lastItem == '')
				lastItem = "schedule";
		}
	
		str+='<ul class="BIB-Menu-Sub-Content-Selected">';
		if (testSchd){
			if (lastItem != 'schedule'){
				if (content == 'schd'){
			   		str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html"><b>Scheduled Requests<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html">Scheduled Requests<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'schd'){
					str+='<a href="..\/scheduled_requests\/next_scheduled_requests.html"><b>Scheduled Requests<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/scheduled_requests\/next_scheduled_requests.html">Scheduled Requests<\/a><\/li><\/ul>';
				}
			}//end schedule is last
		}//end testUp
		if (testExpr){
			if (lastItem != 'express'){
				if (content == 'expr'){		
					str+='<li><a href="..\/express_transfer\/express_entry.html"><b>Express Transfer<\/b><\/a><\/li>';
				}//end not last and bold
				else{
					str+='<li><a href="..\/express_transfer\/express_entry.html">Express Transfer<\/a><\/li>';
				}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'expr'){
					str+='<a href="..\/express_transfer\/express_entry.html"><b>Express Transfer<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/express_transfer\/express_entry.html">Express Transfer<\/a><\/li><\/ul>';
				}
			}//end express is last				
		}//end testExpr
		if (testBook){
			if (lastItem != 'book'){
				if (content == 'book'){
			   		str+='<li><a href="..\/book_transfer\/entry.html"><b>Book Transfer<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/book_transfer\/entry.html">Book Transfer<\/a><\/li>';
			   	}
			}   	
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'book'){
					str+='<a href="..\/book_transfer\/entry.html"><b>Book Transfer<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/book_transfer\/entry.html">Book Transfer<\/a><\/li><\/ul>';
				}
			}//end book is last
		}//end testBook
		if (testFunds){
			if (lastItem != 'funds'){
				if (content == 'funds'){
			   		str+='<li><a href="..\/funds_transfer\/funds_entry.html"><b>Funds Transfer<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/funds_transfer\/funds_entry.html">Funds Transfer<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'funds'){
					str+='<a href="..\/funds_transfer\/funds_entry.html"><b>Funds Transfer<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/funds_transfer\/funds_entry.html">Funds Transfer<\/a><\/li><\/ul>';
				}
			}//end funds is last
		}//end testFunds
		if (testLoans){
			if (lastItem != 'loan'){
				if (content == 'loan'){
			   		str+='<li><a href="..\/loan\/payment.html"><b>Loans<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/loan\/payment.html">Loans<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'loan'){
					str+='<a href="..\/loan\/payment.html"><b>Loans<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/loan\/payment.html">Loans<\/a><\/li><\/ul>';
				}
			}//end loan is last
		}//end testLoans
		if (testBpmnt){
			if (lastItem != 'bill'){
				if (content == 'bill'){
			   		str+='<li><a href="..\/bill_payment\/add_payment.html"><b>Bill Payment<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/bill_payment\/add_payment.html">Bill Payment<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'bill'){
					str+='<a href="..\/bill_payment\/add_payment.html"><b>Bill Payment<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/bill_payment\/add_payment.html">Bill Payment<\/a><\/li><\/ul>';
				}
			}//end bill is last
		}//end testBpmnt
		if (testBpay){
			if (lastItem != 'billpay'){
				if (content == 'bpay'){
			   		str+='<li><a href="..\/modules_main\/modules_tranpay.html#BP"><b>Bill Pay<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/modules_main\/modules_tranpay.html#BP">Bill Pay<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'bpay'){
					str+='<a href="..\/modules_main\/modules_tranpay.html#BP"><b>Bill Pay<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/modules_main\/modules_tranpay.html#BP">Bill Pay<\/a><\/li><\/ul>';
				}
			}//end billpay is last
		}//end testBpay
		if (testCred){
			if (lastItem != 'cardpay'){
				if (content == 'card'){
			   		str+='<li><a href="..\/credit_card\/entry.html"><b>Credit Cards<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/credit_card\/entry.html">Credit Cards<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'card'){
					str+='<a href="..\/credit_card\/entry.html"><b>Credit Cards<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/credit_card\/entry.html">Credit Cards<\/a><\/li><\/ul>';
				}
			}//end card is last
		}//end testCred
		if (testACH){
			if (lastItem != 'ach'){
				if (content == 'ach'){
			   		str+='<li><a href="..\/ach\/send.html"><b>ACH<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/ach\/send.html">ACH<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'ach'){
					str+='<a href="..\/ach\/send.html"><b>ACH<\/b><\/a><\/li><\/ul>';
				}
				else{
					str+='<a href="..\/ach\/send.html">ACH<\/a><\/li><\/ul>';
				}
			}//end ach is last
		}//end testACH
		if (testUp){
			if (lastItem != 'fileup'){
				if (content == 'up'){
			   		str+='<li><a href="..\/file_upload\/upload_file.html"><b>File Upload<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/file_upload\/upload_file.html">File Upload<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'up'){
					str+='<a href="..\/file_upload\/upload_file.html"><b>File Upload<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/file_upload\/upload_file.html">File Upload<\/a><\/li><\/ul>';
				}
			}//end upload is last
		}//end testUp
		if (testWires){
			if (lastItem != 'wiremain'){
				if (content == 'wire'){
			   		str+='<li><a href="..\/wire\/free_form_entry.html"><b>Wire<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/wire\/free_form_entry.html">Wire<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'wire'){
					str+='<a href="..\/wire\/free_form_entry.html"><b>Wire<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/wire\/free_form_entry.html">Wire<\/a><\/li><\/ul>';
				}
			}//end wiremain is last
		}//end testWires
		if (lastItem == ''){
			str+='<\/ul>';
		}
		helpwriteContent(id,str);
	}//end if tranpay

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//Account Services subcontent section
	if (id == 'acctserv'){
		rc = showMenuItem('capturerdc');
		if (rc == '1'){
			testRDC = true;
			if (lastItem == '')
				lastItem = "capturerdc";
		}
		rc = showMenuItem('chkreorder');
		if (rc == '1'){
			rc1 = showMenuItem('account');
			rc2 = showMenuItem('reporting');
			if ((rc1 == '1') || (rc2 == '1')){
				testChk = true;
				if (lastItem == '')
					lastItem = "chkreorder";
			}//both Check Reorder and one of the reporting services
		}
		rc = showMenuItem('deprecon');
		if (rc == '1'){
			testDAR = true;
			if (lastItem == '')
				lastItem = "deprecon";
		}
		rc = showMenuItem('partrecon');
		if (rc == '1'){
			testPAR = true;
			if (lastItem == '')
				lastItem = "partrecon";
		}
		rc = showMenuItem('fullrecon');
		if (rc == '1'){
			testFAR = true;
			if (lastItem == '')
				lastItem = "fullrecon";
		}
		rc = showMenuItem('positive');
		if (rc == '1'){
			testEnhPP = true;
			if (lastItem == '')
				lastItem = "positive";
		}
		rc = showMenuItem('opositive');
		if (rc == '1'){
			testPP = true;
			if (lastItem == '')
				lastItem = "opositive";
		}
		rc = showMenuItem('stop');
		if (rc == '1'){
			testStop = true;
			if (lastItem == '')
				lastItem = "stop";
		}
	
		str+='<ul class="BIB-Menu-Sub-Content-Selected">';
		if (testStop){
			if (lastItem != 'stop'){
				if (content == 'stop'){		
					str+='<li><a href="..\/stop_payment\/single_check.html"><b>Stop Payment<\/b><\/a><\/li>';
				}//end not last and bold
				else{
					str+='<li><a href="..\/stop_payment\/single_check.html">Stop Payment<\/a><\/li>';
				}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'stop'){
					str+='<a href="..\/stop_payment\/single_check.html"><b>Stop Payment<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/stop_payment\/single_check.html">Stop Payment<\/a><\/li><\/ul>';
				}
			}//end stop is last				
		}//end testStop
		if (testPP){
			if (lastItem != 'opositive'){
				if (content == 'opos'){
			   		str+='<li><a href="..\/positive_pay.old\/exceptions.html"><b>Positive Pay<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/positive_pay.old\/exceptions.html">Positive Pay<\/a><\/li>';
			   	}
			}   	
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'opos'){
					str+='<a href="..\/positive_pay.old\/exceptions.html"><b>Positive Pay<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/positive_pay.old\/exceptions.html">Positive Pay<\/a><\/li><\/ul>';
				}
			}//end pp is last
		}//end testPP
		if (testEnhPP){
			if (lastItem != 'positive'){
				if (content == 'ppay'){
			   		str+='<li><a href="..\/positive_pay\/except.html"><b>Enhanced Positive Pay<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/positive_pay\/except.html">Enhanced Positive Pay<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'ppay'){
					str+='<a href="..\/positive_pay\/except.html"><b>Enhanced Positive Pay<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/positive_pay\/except.html">Enhanced Positive Pay<\/a><\/li><\/ul>';
				}
			}//end enhpp is last
		}//end testEnhPP
		if (testFAR){
			if (lastItem != 'fullrecon'){
				if (content == 'full'){
			   		str+='<li><a href="..\/acct_recon\/entry.html"><b>Full Account Reconciliation<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/acct_recon\/entry.html">Full Account Reconciliation<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'full'){
					str+='<a href="..\/acct_recon\/entry.html"><b>Full Account Reconciliation<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/acct_recon\/entry.html">Full Account Reconciliation<\/a><\/li><\/ul>';
				}
			}//end fullrecon is last
		}//end testFAR
		if (testPAR){
			if (lastItem != 'partrecon'){
				if (content == 'part'){
			   		str+='<li><a href="..\/acct_recon\/part_statement.html"><b>Partial Account Reconciliation<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/acct_recon\/part_statement.html">Partial Account Reconciliation<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'part'){
					str+='<a href="..\/acct_recon\/part_statement.html"><b>Partial Account Reconciliation<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/acct_recon\/part_statement.html">Partial Account Reconciliation<\/a><\/li><\/ul>';
				}
			}//end partrecon is last
		}//end testPAR
		if (testDAR){
			if (lastItem != 'deprecon'){
				if (content == 'dep'){
			   		str+='<li><a href="..\/acct_recon\/dep_statement.html"><b>Deposit Reconciliation<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/acct_recon\/dep_statement.html">Deposit Reconciliation<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'dep'){
					str+='<a href="..\/acct_recon\/dep_statement.html"><b>Deposit Reconciliation<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/acct_recon\/dep_statement.html">Deposit Reconciliation<\/a><\/li><\/ul>';
				}
			}//end deprecon is last
		}//end testDAR		
		if (testChk){
			if (lastItem != 'chkreorder'){
				if (content == 'chk'){
			   		str+='<li><a href="..\/check_reorder\/reorder.html"><b>Check Reorder<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/check_reorder\/reorder.html">Check Reorder<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'chk'){
					str+='<a href="..\/check_reorder\/reorder.html"><b>Check Reorder<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/check_reorder\/reorder.html">Check Reorder<\/a><\/li><\/ul>';
				}
			}//end chkreorder is last
		}//end testChk	
		if (testRDC){
			if (lastItem != 'capturerdc'){
				if (content == 'rdc'){
			   		str+='<li><a href="..\/modules_main\/modules_acctserv.html#RDC"><b>Remote Deposit Capture</b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/modules_main\/modules_acctserv.html#RDC">Remote Deposit Capture<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'rdc'){
					str+='<a href="..\/modules_main\/modules_acctserv.html#RDC"><b>Remote Deposit Capture<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/modules_main\/modules_acctserv.html#RDC">Remote Deposit Capture<\/a><\/li><\/ul>';
				}
			}//end capturerdc is last
		}//end testRDC
				
		if (lastItem == ''){
			str+='<\/ul>';
		}
		helpwriteContent(id,str);
	}//end if acctserv

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//Administration subcontent section
	if (id == 'admin'){
	   	testSelfAdm = true;
		lastItem = "self_admin";
		
		rc = showMenuItem('admin');
		if (rc == '1'){
			testCoAdm = true;
			if (lastItem == '')
				lastItem = "admin";
		}
		testComm = true;
		if (lastItem == '')
			lastItem = "comm";
	
		str+='<ul class="BIB-Menu-Sub-Content-Selected">';
		if (testComm){
			if (lastItem != 'comm'){
				if (content == 'comm'){		
					str+='<li><a href="..\/customer_support\/received.html"><b>Communications<\/b><\/a><\/li>';
				}//end not last and bold
				else{
					str+='<li><a href="..\/customer_support\/received.html">Communications<\/a><\/li>';
				}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'comm'){
					str+='<a href="..\/customer_support\/received.html"><b>Communications<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/customer_support\/received.html">Communications<\/a><\/li><\/ul>';
				}
			}//end comm is last				
		}//end testComm
		if (testCoAdm){
			if (lastItem != 'admin'){
				if (content == 'coadm'){
			   		str+='<li><a href="..\/administration\/user_admin.html"><b>Company Administration<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/administration\/user_admin.html">Company Administration<\/a><\/li>';
			   	}
			}   	
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content = 'coadm'){
					str+='<a href="..\/administration\/user_admin.html"><b>Company Administration<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/administration\/user_admin.html">Company Administration<\/a><\/li><\/ul>';
				}
			}//end admin is last
		}//end testCoAdm
		if (testSelfAdm){
			if (lastItem != 'self_admin'){
				if (content == 'self'){
			   		str+='<li><a href="..\/customer_support\/change_password.html"><b>Self Administration<\/b><\/a><\/li>';
			   	}//end not last and bold
			   	else{
			   		str+='<li><a href="..\/customer_support\/change_password.html">Self Administration<\/a><\/li>';
			   	}
			}
			else{
				str+='<li class="BIB-Menu-Sub-Content-Last">';
				if (content == 'self'){
					str+='<a href="..\/customer_support\/change_password.html"><b>Self Administration<\/b><\/a><\/li><\/ul>';
				}//end last and bold
				else{
					str+='<a href="..\/customer_support\/change_password.html">Self Administration<\/a><\/li><\/ul>';
				}
			}//end self_admin is last
		}//end testSelfAdm
		if (lastItem == ''){
			str+='<\/ul>';
		}
		helpwriteContent(id,str);
	}//end if admin
}// end writeMenuSubContent

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//function writeFavorites
//This function will write the title and the <ul> tag in the left nav
//This function calls the showMenuItem function  
//to determine if the favorite should be displayed
function writeFavorites(id)
{
	var rc;
	var str='';
	var testExpr = false;	var testStop = false;
	
	rc = showMenuItem('express');
	if (rc == '1'){
		testExpr = true;
	}
	rc = showMenuItem('stop');
	if (rc == '1'){
		testStop = true;
	}
	
	str+='<span class="leftContentListHeader">Favorites: (<a href="..\/customer_support\/favorites.html">Edit<\/a>)';
	str+='<\/span><ul class="leftContentList">';
	if (testExpr){
		str+='<li><a href="..\/express_transfer\/express_entry.html">Express transfer entry<\/a><\/li>';
	}
	if (testStop){
		str+='<li><a href="..\/stop_payment\/single_check.html">Single check stop payment request<\/a><\/li>';
	}
	str+='<\/ul>';
	
	helpwriteContent(id,str);
}//end writeFavorites

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//function writeSavedReports
//This function will write the title and the <ul> tag in the left nav
//This function calls the showMenuItem function  
//to determine if the saved reports should be displayed
function writeSavedReports(id)
{
	var rc;
	var str='';
	var testAcct = false;
	
	rc = showMenuItem('account');
	if (rc == '1'){
		testAcct = true;
	}
	
	if (testAcct){
		str+='<span class="leftContentListHeader">Saved Reports: ';
		str+='(<a href="..\/account_reporting\/manage_saved_reports.html">Edit<\/a>)<\/span>';
		str+='<ul class="leftContentList">';
		str+='<li><a href="..\/account_reporting\/controlled.html">Controlled Disbursement Report<\/a><\/li>';
		str+='<li><a href="..\/account_reporting\/operating.html">Operating Account ACH/WT Credits<\/a><\/li>';
		str+='<li><a href="..\/account_reporting\/operating_check.html">Operating Account Checks Paid<\/a><\/li>';
		str+='<\/ul>';
		
		helpwriteContent(id,str);
	}//end testAcct	
}//end writeSavedReports

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
//function writeQuickLinks
//This function will write the title and the <ul> tag in the left nav
//This function calls the showMenuItem function  
//to determine if the QuickLink should be displayed
function writeQuickLinks(id)
{
	var rc;
	var str='';
	var testPPay = false;	var testStop = false;	var testAcct = false;	var testRpt = false;
	var testLoan = false;	var testAdv = false;	var testPay = false;	var testWire = false;	
	var testRep = false;	var testFree = false;	var testAdmin = false;
	var testUp = false;		var testCC = false;		var testLPay = false;	var testSchd = false;
	
	if(id == 'q_wlc_schd'){
		rc = showMenuItem('schedule');
		if (rc == '1'){
			testSchd = true;
		}
		if (testSchd){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			str+='<li><a href="..\/express_transfer\/express_entry.html">Express transfer request<\/a><\/li>';
			str+='<li><a href="..\/funds_transfer\/funds_entry.html">Funds transfer request<\/a><\/li>';
			str+='<li><a href="..\/book_transfer\/entry.html">Book transfer<\/a><\/li>';
			str+='<li><a href="..\/loan\/payment.html">Loan payment request<\/a><\/li>';
			str+='<li><a href="..\/credit_card\/entry.html">Credit card payment entry<\/a><\/li>';
			str+='<li><a href="..\/ach\/send.html">Send money<\/a><\/li>';
			str+='<li><a href="..\/ach\/collect.html">Collect money<\/a><\/li>';
			str+='<li><a href="..\/wire\/free_form_entry.html">One time wire entry<\/a><\/li>';
			str+='<li><a href="..\/wire\/rep_entry.html">Template based wire transfer - single request<\/a><\/li>';
			str+='<\/ul>';

			helpwriteContent(id,str);
		}//end testSchd
	}//end q_wlc_schd

	if ((id == 'q_acct_qbr') || (id == 'q_acct_sr') || (id == 'q_acct_cr') || (id == 'q_rpt_qbr')){
		rc = showMenuItem('positive');
		if (rc == '1'){
			testPPay = true;
		}	
		if (testPPay){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			str+='<li><a href="..\/positive_pay\/except.html">Enhanced positive pay exceptions manager<\/a><\/li>';
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_acct_qbr or q_acct_sr or q_acct_cr or q_rpt_qbr
	
	if ((id == 'q_acct_ts') || (id == 'q_acct_tr') || (id == 'q_rpt_ts') || (id == 'q_rpt_adr')){
		rc = showMenuItem('positive');
		if (rc == '1'){
			testPPay = true;
		}	
		rc = showMenuItem('stop');
		if (rc == '1'){
			testStop = true;
		}	
		if ((testPPay) || (testStop)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testPPay){
				str+='<li><a href="..\/positive_pay\/except.html">Enhanced positive pay exceptions manager<\/a><\/li>';
			}
			if (testStop){
				str+='<li><a href="..\/stop_payment\/single_check.html">Single check stop payment request<\/a><\/li>';
				str+='<li><a href="..\/stop_payment\/multiple_check.html">Multiple check stop payment request<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_acct_ts or q_acct_tr or q_rpt_ts or q_rpt_adr
	
	if ((id == 'q_loan_sr') || (id == 'q_loan_ar')){
		rc = showMenuItem('loan');
		if (rc == '1'){
			rc = showLoanItem('advance');
			if (rc == '1'){
				testAdv = true;
			}
			rc = showLoanItem('payment');
			if (rc == '1'){
				testLPay = true;
			}
			if ((testAdv) || (testLPay)){
				testLoan = true;
			}//end loan and at least one type 
		}	
		if (testLoan){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testLPay){
				str+='<li><a href="..\/loan\/payment.html">Loan payment request<\/a><\/li>';
			}
			if (testAdv){
				str+='<li><a href="..\/loan\/advance.html">Loan advance request<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_loan_sr or q_loan_ar
	
	if (id == 'q_stmt_sas'){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
		}	
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
		}	
		if ((testAcct) || (testRpt)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAcct){
				str+='<li><a href="..\/account_reporting\/quick.html">Quick balance account report<\/a><\/li>';
				str+='<li><a href="..\/account_reporting\/treport.html">Transaction report<\/a><\/li>';
			}
			if (testRpt){
				str+='<li><a href="..\/reporting\/quick.html">Quick balance report<\/a><\/li>';
				str+='<li><a href="..\/reporting\/account.html">Account detail report<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_stmt_sas
	
	if (id == 'q_cc_ccar'){
		rc = showMenuItem('cardpay');
		if (rc == '1'){
			testCC = true;
		}	
		if (testCC){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testCC){
				str+='<li><a href="..\/credit_card\/entry.html">Credit card payment entry<\/a><\/li>';
				str+='<li><a href="..\/credit_card\/transmit.html">Credit card payment transmit<\/a><\/li>';
				str+='<li><a href="..\/credit_card\/history.html">Credit card payment history<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_cc_ccar
	
	if (id == 'q_wire_iwr'){
		rc = showMenuItem('wiremain');
		if (rc == '1'){
			rc = showWireItem('repetitive');
			if (rc == '1'){
				testRep = true;
			}
			rc = showWireItem('freeform');
			if (rc == '1'){
				testFree = true;
			}
			if ((testRep) || (testFree)){
				testWire = true;
			}//end wire and at least one type
		}
		if (testWire){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			str+='<li><a href="..\/wire\/history.html">Wire history<\/a><\/li>';
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_wire_iwr
	
	if (id == 'q_wire_h'){
		rc = showMenuItem('inwirerpt');
		if (rc == '1'){
			testWire = true;
		}	
		if (testWire){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			str+='<li><a href="..\/wire\/incoming.html">Incoming wire report<\/a><\/li>';
			str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html">Next scheduled requests<\/a><\/li>';
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_wire_h

	if (id == 'q_ach_afu'){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;			
		}
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
		}
		if ((testAcct) || (testRpt)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAcct){
				str+='<li><a href="..\/account_reporting\/quick.html">Quick balance account report<\/a><\/li>';
			}
			if (testRpt){
				str+='<li><a href="..\/reporting\/quick.html">Quick balance report<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_ach_afu
	
	if ((id == 'q_et_ete') || (id == 'q_bt_bte') || (id == 'q_ft_fte') || (id == 'q_ach_sm') ||
		(id == 'q_ach_cm') || (id == 'q_ach_t') || (id == 'q_ach_h') || (id == 'q_wire_rwe') ||
		(id == 'q_wire_fwe') || (id == 'q_wire_t')){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
			testSchd = true;
		}	
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
			testSchd = true;
		}	
		if ((testAcct) || (testRpt) || (testSchd)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAcct){
				str+='<li><a href="..\/account_reporting\/quick.html">Quick balance account report<\/a><\/li>';
			}
			if (testRpt){
				str+='<li><a href="..\/reporting\/quick.html">Quick balance report<\/a><\/li>';
			}
			if (testSchd){
				str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html">Next scheduled requests<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_et_ete or q_bt_bte or q_ft_fte or q_wire_rwe or q_wire_fwe or q_wire_t or all ach 
	
	if ((id == 'q_et_ett') || (id == 'q_et_eth') || (id == 'q_bt_btt') || (id == 'q_bt_bth') || 
		(id == 'q_ft_ftt') || (id == 'q_ft_fth')){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
			testSchd = true;
		}	
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
			testSchd = true;
		}	
		if ((testAcct) || (testRpt) || (testSchd)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAcct){
				str+='<li><a href="..\/account_reporting\/treport.html">Transaction report<\/a><\/li>';
			}
			if (testRpt){
				str+='<li><a href="..\/reporting\/account_report.html">Account detail report<\/a><\/li>';
			}
			if (testSchd){
				str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html">Next scheduled requests<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_et_ett or q_et_eth or q_bt_btt or q_bt_bth or q_ft_ftt or q_ft_fth
	
	if (id == 'q_loan_lpr'){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
			testSchd = true;
		}	
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
			testSchd = true;
		}	
		rc = showMenuItem('loan');
		if (rc == '1'){
			testLoan = true;
			testSchd = true;
		}	
		if ((testAcct) || (testRpt) || (testLoan) || (testSchd)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAcct){
				str+='<li><a href="..\/account_reporting\/quick.html">Quick balance account report<\/a><\/li>';				
				str+='<li><a href="..\/account_reporting\/treport.html">Transaction report<\/a><\/li>';
			}
			if (testRpt){
				str+='<li><a href="..\/reporting\/quick.html">Quick balance report<\/a><\/li>';
				str+='<li><a href="..\/reporting\/account.html">Account detail report<\/a><\/li>';
			}
			if (testLoan){
				str+='<li><a href="..\/loan\/activity.html">Loan activity report<\/a><\/li>';
			}
			if (testSchd){
				str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html">Next scheduled requests<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_loan_lpr

	if (id == 'q_loan_lar'){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;			
		}	
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
		}	
		rc = showMenuItem('loan');
		if (rc == '1'){
			testLoan = true;
		}	
		if ((testAcct) || (testRpt) || (testLoan)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAcct){
				str+='<li><a href="..\/account_reporting\/quick.html">Quick balance account report<\/a><\/li>';				
				str+='<li><a href="..\/account_reporting\/treport.html">Transaction report<\/a><\/li>';
			}
			if (testRpt){
				str+='<li><a href="..\/reporting\/quick.html">Quick balance report<\/a><\/li>';
				str+='<li><a href="..\/reporting\/account.html">Account detail report<\/a><\/li>';
			}
			if (testLoan){
				str+='<li><a href="..\/loan\/activity.html">Loan activity report<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_loan_lar
	
	if (id == 'q_loan_lt'){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
			testSchd = true;
		}	
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
			testSchd = true;
		}	
		rc = showMenuItem('loan');
		if (rc == '1'){
			testLoan = true;
			testSchd = true;
		}	
		if ((testAcct) || (testRpt) || (testLoan) || (testSchd)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAcct){			
				str+='<li><a href="..\/account_reporting\/treport.html">Transaction report<\/a><\/li>';
			}
			if (testRpt){
				str+='<li><a href="..\/reporting\/account.html">Account detail report<\/a><\/li>';
			}
			if (testLoan){
				str+='<li><a href="..\/loan\/activity.html">Loan activity report<\/a><\/li>';
			}
			if (testSchd){
				str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html">Next scheduled requests<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_loan_lt
	
	if (id == 'q_loan_lh'){
		rc = showMenuItem('loan');
		if (rc == '1'){
			testLoan = true;			
		}	
		if (testLoan){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			str+='<li><a href="..\/loan\/activity.html">Loan activity report<\/a><\/li>';
			str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html">Next scheduled requests<\/a><\/li>';
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_loan_lh
	
	if ((id == 'q_cc_ccpe') || (id == 'q_cc_ccpt') || (id == 'q_cc_ccph')){
		rc = showMenuItem('cardrpt');
		if (rc == '1'){
			testCC = true;
		}	
		if (testCC){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			str+='<li><a href="..\/credit_card\/activity.html">Credit card activity report<\/a><\/li>';
			str+='<li><a href="..\/scheduled_requests\/next_scheduled_requests.html">Next scheduled requests<\/a><\/li>';
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_cc_ccpe or q_cc_ccpt or q_cc_ccph
	
	if ((id == 'q_stop_scr') || (id == 'q_stop_mcr') || (id == 'q_stop_sph')){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
		}	
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
		}	
		if ((testAcct) || (testRpt)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAcct){			
				str+='<li><a href="..\/account_reporting\/tsearch.html">Account transaction search<\/a><\/li>';
			}
			if (testRpt){
				str+='<li><a href="..\/reporting\/transaction.html">Transaction search<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_stop_scr or q_stop_mcr or q_stop_sph
	
	if (id == 'q_opos_e'){
		rc = showMenuItem('admin');
		if (rc == '1'){
			testAdmin = true;
		}	
		rc = showMenuItem('fileup');
		if (rc == '1'){
			testUp = true;
		}	
		if ((testAdmin) || (testUp)){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			if (testAdmin){			
				str+='<li><a href="..\/customer_support\/send_message.html">Contact us<\/a><\/li>';
			}
			if (testUp){
				str+='<li><a href="..\/file_upload\/upload_file.html">Upload file<\/a><\/li>';
			}
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_opos_e
	
	if (id == 'q_ppay_dr'){
		rc = showMenuItem('stop');
		if (rc == '1'){
			testStop = true;
		}	
		if (testStop){
			str+='<span class="leftContentListHeader">Quick Links:<\/span>';
			str+='<ul class="leftContentList">';
			str+='<li><a href="..\/stop_payment\/single_check.html">Single check stop payment request<\/a><\/li>';
			str+='<li><a href="..\/stop_payment\/multiple_check.html">Multiple check stop payment request<\/a><\/li>';
			str+='<\/ul>';
		
			helpwriteContent(id,str);
		}//end test
	}//end q_ppay_dr
	
}//end writeQuickLinks