// JavaScript Document

//functions writeWelcomeAccounts, writeWelcomeLoans, and writeWelcomeCard 
//are used to write the summary account reports on the Welcome page
function getAccounttype()
{
	//Read data from the text file modules.txt and store into any variable
	var current = eval("accounttype");
	return current[0];
}//end getAccounttype

function writeWelcomeAccounts(id)
{
	var account = getAccounttype();
		
	if(account == 'reporting')
		writeReporting(id);
	else
		writeAccountReporting(id);
	
}//end writeWelcomeAccounts

function helpwriteContent(id,html)
{
	if(document.getElementById(id))
	{
		document.getElementById(id).innerHTML = html;
	}//if
}//end helpwriteContent

function writeReporting(id)
{
	var str='';
	
	str+='<table class="dgGrid" width="100%" cellspacing="0" cellpadding="4" border="0" style="border-collapse:collapse;">';
	str+='<tr class="dgHeader">';
	str+='<th align="left" scope="col"><span class=\'dgSortLink\'>ABA/TRC<\/span><\/th>';
	str+='<th align="left" scope="col"><span class=\'dgSortLink\'>Account<BR>Number<\/span><\/th>';
	str+='<th align="left" scope="col">';
	str+='<a href="#" onclick="return false"><span class=';
	str+='\'dgSortLink\'>Description&nbsp;<img src=';
	str+='\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border=';
	str+='\'0\'><\/span><\/a><\/th>';
	str+='<th align="right" scope="col">Balance<\/th><\/tr>';
	str+='<tr class="tableInnerHeader">';
	str+='<td colspan="4">';
	str+='Checking Accounts<\/td><\/tr>';
	str+='<tr class="dgItem1">';
	str+='<td align="left">';
	str+='081203790<\/td>';
	str+='<td align="left">';
	str+='<a class="default" href="..\/reporting\/quick_report_alt.html">*4511<\/a><\/td>';
	str+='<td align="left">';
	str+='PRESTIGE OPERATING ACCOUNT<\/td>';
	str+='<td align="right">';
	str+='$173,474.72<\/td><\/tr>';
	str+='<tr class="dgItem0">';
	str+='<td align="left">';
	str+='081203790<\/td>';
	str+='<td align="left" class="inactive_link">';
	str+='*4512<\/td>';
	str+='<td align="left">';
	str+='PRESTIGE PAYROLL ACCOUNT<\/td>';
	str+='<td align="right">';
	str+='$26,628.11<\/td><\/tr>';
	str+='<\/table>';
	
	helpwriteContent(id,str)
	
}//end writeReporting

function writeAccountReporting(id)
{
	var str='';
	
	str+='<span class="message_detail">Note: You have more accounts. To view more account information, go to ';
	str+='<a href="..\/account_reporting\/quick.html" class="default">Quick Balance Report Criteria<\/a>.<\/span>';
	str+='<br><br><table class="dgGrid" width="100%" cellspacing="0" cellpadding=';
	str+='"4" border="0" style="border-collapse:collapse;">';
	str+='<tr class="dgHeader"><th align="left" scope="col"><span class=\'dgSortLink\'>ABA/TRC<\/span><\/th>';
	str+='<th align="left" scope="col"><span class=\'dgSortLink\'>Account<BR>Number<\/span><\/th>';
	str+='<th align="left" scope="col">';
	str+='<a href="#" onclick="return false"><span class=\'dgSortLink\'>Description&nbsp;<img src=';
	str+='\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border= \'0\'><\/span><\/a><\/th>';
	str+='<th align="right" scope="col"> Balance<\/th><\/tr>';
	str+='<tr class="tableInnerHeader"><td colspan="4">Checking Accounts<\/td><\/tr>';
	str+='<tr class="dgItem0"><td align="left">081203790<\/td>';
	str+='<td align="left"><a class="default" href="..\/account_reporting\/quick_report_alt.html">';
	str+='*4511<\/a> <\/td>';
	str+='<td align="left">PRESTIGE OPERATING ACCOUNT<\/td>';
	str+='<td align="right">$173,474.72 <\/td><\/tr>';
	str+='<tr class="dgItem1"><td align="left">081203790 <\/td>';
	str+='<td align="left" class="inactive_link">*4512<\/td>';
	str+='<td align="left">PRESTIGE PAYROLL ACCOUNT<\/td>';
	str+='<td align="right">$26,628.11<\/td><\/tr>';	
	str+='<tr class="dgItem0"><td align="left">550000576<\/td>';
	str+='<td align="left" class="inactive_link">*1359<\/td>';
	str+='<td align="left">EASTWOOD NATIONAL BANK CONSTR ACCT<\/td>';
	str+='<td align="right"> $186,097.97<\/td><\/tr>';
	str+='<tr class="tableInnerHeader"><td colspan="4">';
	str+='Savings Accounts<\/td><\/tr>';
	str+='<tr class="dgItem0"><td align="left"> 081203790<\/td>';
	str+='<td align="left" class="inactive_link">*2470<\/td>';
	str+='<td align="left">PRESTIGE HEALTH ACCOUNT <\/td>';
	str+='<td align="right">$170,000.00<\/td><\/tr>';	
	str+='<\/table>';

	helpwriteContent(id,str)	

}//end writeAccountReporting

function writeWelcomeCDAccounts(id)
{
	var cdaccounts = showMenuItem('cdaccount');
		
	if(cdaccounts == '1')
		writeCDAccounts(id);
		
}//end writeWelcomeCDAccounts

function writeCDAccounts(id)
{
	var str='';
	
	str+='<table class="dgGrid" width="100%" cellspacing="0" cellpadding=';
	str+='"4" border="0" style="border-collapse:collapse;">';
	str+='<tr class="dgHeader"><th align="left" scope="col" width="16%">ABA/TRC<\/th>';
	str+='<th align="left" scope="col" width="13%">Account<BR>Number<\/th>';
 	str+='<th align="left" scope="col" width="60%">';
	str+='<a href="#" onclick="return false"><span class=\'dgSortLink\'>Description&nbsp;<img src=';
	str+='\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border= \'0\'><\/span><\/a><\/th>';
	str+='<th align="right" scope="col" width="11%"> Balance<\/th><\/tr>';
	str+='<tr class="dgItem0"><td align="left">081203790<\/td>';
	str+='<td align="left"><a class="default" href="..\/account_reporting\/treport_report_cd.html">';
	str+='*4370<\/a> <\/td>';
	str+='<td align="left">PRESTIGE CD1<\/td>';
	str+='<td align="right">$150,000.00<\/td><\/tr>';	
	str+='<tr class="dgItem1"><td align="left">081203790<\/td>';
	str+='<td align="left" class="inactive_link">*4390<\/td>';
	str+='<td align="left">PRESTIGE CD2<\/td>';
	str+='<td align="right">$6,643.21<\/td><\/tr>';	
	str+='<\/table>';

	helpwriteContent(id,str)	

}//end writeCDAccounts

function writeWelcomeInvestmentAccounts(id)
{
	var investmentAccounts = showMenuItem('investmentaccount');
		
	if(investmentAccounts == '1')
		writeInvestmentAccounts(id);
		
}//end writeWelcomeCDAccounts

function writeInvestmentAccounts(id)
{
	var str='';
	
	str+='<table class="dgGrid" width="100%" cellspacing="0" cellpadding=';
	str+='"4" border="0" style="border-collapse:collapse;">';
	str+='<tr class="dgHeader"><th align="left" scope="col" width="16%">ABA/TRC<\/th>';
	str+='<th align="left" scope="col" width="13%">Account<BR>Number<\/th>';
 	str+='<th align="left" scope="col" width="60%">';
	str+='<a href="#" onclick="return false"><span class=\'dgSortLink\'>Description&nbsp;<img src=';
	str+='\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border= \'0\'><\/span><\/a><\/th>';
	str+='<th align="right" scope="col" width="11%"> Balance<\/th><\/tr>';
	str+='<tr class="dgItem0"><td align="left">081203790<\/td>';
	str+='<td align="left"><a class="default" href="..\/account_reporting\/summary_report_inv.html">*1028<\/a><\/td>';
	str+='<td align="left">PRESTIGE INVESTMENT ACCOUNT<\/td>';
	str+='<td align="right">$250,000.00<\/td><\/tr>';	
	str+='<tr class="dgItem1"><td align="left">081203790<\/td>';
	str+='<td align="left" class="inactive_link">';
	str+='*0740<\/td>';
	str+='<td align="left">PRESTIGE HIGH YIELD INVESTMENT FUND<\/td>';
	str+='<td align="right">$6,643.21<\/td><\/tr>';	
	
	str+='<\/table>';

	helpwriteContent(id,str)	

}//end writeCDAccounts

function checkLoanHeader(id)
{
	var rc;
	var temp;
	
	rc = showMenuItem('loan');
	if (rc == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
		}
}//end checkLoanHeader

function writeWelcomeLoans(id)
{
	var loans = showMenuItem('loan');
		
	if(loans == '1')
		writeLoans(id);
		
}//end writeWelcomeLoans

function writeLoans(id)
{
	
	var str='';
	
	str+='<table class="dgGrid" width="100%" cellspacing="0" cellpadding=';
	str+='"4" border="0" style="border-collapse:collapse;">';
	str+='<tr class="dgHeader"><th align="left" scope="col"><span class=\'dgSortLink\'>ABA/TRC<\/span<\/th>';
	str+='<th align="left" scope="col"><span class=\'dgSortLink\'>Account<BR>Number<\/span><\/th>';
 	str+='<th align="left" scope="col">';
	str+='<a href="#" onclick="return false"><span class=\'dgSortLink\'>Description&nbsp;<img src=';
	str+='\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border= \'0\'><\/span><\/a><\/th>';
	str+='<th align="left" colspan="3">Current<BR>Balance<\/th><\/tr>';
	str+='<tr class="dgItem0"><td align="left">770110000<\/td>';
	str+='<td align="left">*0006<\/td>';
	str+='<td align="left">PRESTIGE LOAN 1<\/td>';
	str+='<td align="left">$179,512.50 <\/td>';
	str+='<td align="left" colspan="2" class="inactive_link">Note<BR>Summary<\/td><\/tr>';
	str+='<tr class="dgItem1"><td align="left">770110000<\/td>';
	str+='<td align="left">*0009<\/td>';
	str+='<td align="left">PRESTIGE LOAN 2<\/td>';
	str+='<td align="left">$45,747.70<\/td>';
	str+='<td align="left"><a class="default" href="..\/loan\/summary_note.html">Note<BR>Summary<\/a><\/td>';
	str+='<td align="left"><a class="default" href="..\/loan\/summary_commit.html">Commitment<BR>Summary<\/a><\/td><\/tr>';
	str+='<tr class="dgItem0"><td align="left">770110000<\/td>';
	str+='<td align="left">*2013<\/td>';
	str+='<td align="left">PRESTIGE LOAN 3<\/td>';
	str+='<td align="left">$882,125.03<\/td>';
	str+='<td align="left" class="inactive_link">Note<BR>Summary<\/td>';
	str+='<td align="left" class="inactive_link">Commitment<BR>Summary<\/td><\/tr>';
	str+='<\/table><\/td><\/tr>';
	str+='<tr><td id="cell_button_area" width+95%">';
	str+='<\/td><\/tr><\/table>';

	helpwriteContent(id,str)	

}//end writeLoans

function checkCardHeader(id)
{
	var rc,rc1;
	var temp;
	
	rc = showMenuItem('cardrpt');
	rc1 = showMenuItem('cardpay');
	if ((rc == '0') && (rc1 == '0')){
		temp = document.getElementById(id);
		temp.style.display = 'none';
		}
}//end checkCardHeader

function writeWelcomeCard(id)
{
	var cardrpt = showMenuItem('cardrpt');
	var cardpay = showMenuItem('cardpay');
		
	if((cardrpt == '1') || (cardpay == '1'))
		writeCard(id);
		
}//end writeWelcomeCard

function writeCard(id)
{
	
	var str='';
	
	str+='<table class="dgGrid" width="100%" cellspacing="0" cellpadding=';
	str+='"4" border="0" style="border-collapse:collapse;">';
	str+='<tr class="dgHeader"><th align="left" scope="col"><span class=\'dgSortLink\'>Account<BR>Number<\/span><\/th>';
 	str+='<th align="left" scope="col">';
	str+='<a href="#" onclick="return false"><span class=\'dgSortLink\'>Description&nbsp;<img src=';
	str+='\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border= \'0\'><\/span><\/a><\/th>';
	str+='<th align="left">Current Balance<\/th><th align="left">Available Credit<\/th><\/tr>';
	str+='<tr class="dgItem0"><td align="left"><a href="..\/credit_card\/activity_report.html"';
	str+=' class="default">*1691<\/a><\/td>';
	str+='<td align="left">PRESTIGE CREDIT CARD ACCT<\/td>';
	str+='<td align="left">$11,497.25 <\/td>';
	str+='<td align="left">20,000.00<\/td><\/tr>';
	str+='<\/table><\/td><\/tr>';
	str+='<tr><td id="cell_button_area" width+95%">';
	str+='<div style="padding:8px 0px 8px 0px;"><hr align="left width=100%">';
	str+='<\/div><\/td><\/tr><\/table>';

	helpwriteContent(id,str)	

}//end writeCard

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//These functions write loan, ach, and wire navigation selections
//This function calls the showLoanItem function  
//to determine if the payment selection should be displayed
function writeLoanPayNav(id)
{
	var str='';
	var pay = showLoanItem('payment');
	
	if (pay == '1'){
		str+='<ul class="leftContentListNav"><li><a href="..\/loan\/payment.html">Loan payment request<\/a><\/li><\/ul>';
		helpwriteContent(id,str);
	}//end if payment
}//end writeLoanPayNav

//This function calls the showLoanItem function  
//to determine if the advance selection should be displayed
function writeLoanAdvNav(id)
{
	var str='';
	var adv = showLoanItem('advance');
	
	if (adv == '1'){
		str+='<ul class="leftContentListNav"><li><a href="..\/loan\/advance.html">Loan advance request<\/a><\/li><\/ul>';
		helpwriteContent(id,str);
	}//end if advance
}//end writeLoanAdvNav

//This function calls the showACHItem function  
//to determine if the collection selection should be displayed
function writeAchNav(id)
{
	var str='';
	var func,rc1,rc2,rc3,rc4,rc5;
	
	if (id == 'payment'){
		rc1 = showACHItem('payment');
		rc2 = showACHItem('federal');
		rc3 = showACHItem('state');
		rc4 = showACHItem('child');
		rc5 = showACHItem('stp820');
		if ((rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1')){
			str+='<ul class="leftContentListNav"><li><a href="..\/ach\/send.html">Send money<\/a><\/li><\/ul>';
			helpwriteContent(id,str);
		}
	}//end payment nav
	
	if (id == 'collect'){
		func = showACHItem('collection');
		if (func == '1'){
			str+='<ul class="leftContentListNav"><li><a href="..\/ach\/collect.html">Collect money<\/a><\/li><\/ul>';
			helpwriteContent(id,str);
		}
	}//end collect nav
	
	if (id == 'upload'){
		func = showACHItem('upload');
		if (func == '1'){
			str+='<ul class="leftContentListNav"><li><a href="..\/ach\/upload.html">ACH file upload<\/a><\/li>';
			str+='<li><a href="..\/ach\/upload_transmit.html">ACH file upload transmit<\/a><\/li>';
			str+='<li><a href="..\/ach\/upload_status.html">ACH file upload status<\/a><\/li>';
			str+='<li><a href="..\/ach\/upload_history.html">ACH file upload history<\/a><\/li><\/ul>';
			helpwriteContent(id,str);
		}
	}//end upload nav
	
}//end writeAchNav

//This function calls the showWireItem function  
//to determine if the freeform selection should be displayed
function writeWireNav(id)
{
	var str='';
	var func;
	
	if (id == 'freeform'){
		func = showWireItem('freeform');
		if (func == '1'){
    		str+='<ul class="leftContentListNav"><li><a href="..\/wire\/free_form_entry.html">One time wire transfer entry<\/a><\/li><\/ul>';
    		helpwriteContent(id,str);
		}
	}//end freeform nav
	
	if (id == 'repetitive'){
		func = showWireItem('repetitive');
		if (func == '1'){
			str+='<ul class="leftContentListNav"><li><a href="..\/wire\/rep_entry.html">Template based wire transfer - single request<\/a><\/li><\/ul>';
    		helpwriteContent(id,str);
    	}
    }//end repetitive nav
    
    if (id == 'setup'){
		func = showWireItem('setup');
		if (func == '1'){
			str+='<ul class="leftContentListNav"><li><a href="..\/wire\/setup.html">Wire template setup<\/a><\/li><\/ul>';
    		helpwriteContent(id,str);
    	}
    }//end setup nav
    
}//end writeWireNav

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//These functions are used within various services to determine 
//if specific data should be displayed.
//
//This function calls the showLoanItem function to determine  
//if the payment content should be displayed on transmit and history pages
function checkLoanPayment(id)
{
	var rc;
	var temp;
	
	rc = showLoanItem('payment');
	if (rc == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
	}
}//end checkLoanPayment
		
//This function calls the showLoanItem function to determine  
//if the advance content should be displayed on transmit and history pages
function checkLoanAdvance(id)
{
	var rc;
	var temp;
	
	rc = showLoanItem('advance');
	if (rc == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
	}
}//end checkLoanAdvance
		
//This function calls the showWireItem function to determine  
//if the repetitive wire content should be displayed on transmit and history pages
function checkWireRep(id)
{
	var rc;
	var temp;
	
	rc = showWireItem('repetitive');
	if (rc == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
	}
}//end checkWireRep
		
//This function calls the showWireItem function to determine  
//if the freeform wire content should be displayed on transmit and history pages
function checkWireFree(id)
{
	var rc;
	var temp;
	
	rc = showWireItem('freeform');
	if (rc == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
	}
}//end checkWireFree
		
//This function calls the showWireItem function to determine  
//the total amount that should be displayed on the wire transmit selection page
function writeWireTotal1(id)
{
	var rc1,rc2;
	var str='';
	
	rc1 = showWireItem('repetitive');
	rc2 = showWireItem('freeform');
	
	str+='<table class="dgGrid" cellspacing="0" cellpadding="4" border="0" ';
	str+='style="width:95%;border-collapse:collapse;">';
	str+='<tr class="dgItem1" nowrap="nowrap"><td align="center" style="width:30px">&nbsp;<\/td>';
	str+='<td width="150">&nbsp;<\/td><td width="60">&nbsp;<\/td><td align="center" width="60">Total<\/td>';
			
	if ((rc1 == '1')&& (rc2 == '1'))
		str+='<td align="right" width="50">$10,850.00<\/td>';
	else
		if (rc1 == '1')
			str+='<td align="right" width="50">$9,700.00<\/td>';
		else
			str+='<td align="right" width="50">$1,150.00<\/td>';
			
	str+='<td align="center" width="40">&nbsp;<\/td><td align="center" width="80">&nbsp;<\/td>';
	str+='<td width="50">&nbsp;<\/td><td width="120">&nbsp;<\/td><\/tr><\/table>';
	helpwriteContent(id,str);
		
}//end writeWireTotal1
		
//This function calls the showWireItem function to determine  
//the total amount that should be displayed on the wire transmit verify page
function writeWireTotal2(id)
{
	var rc1,rc2;
	var str='';
	
	rc1 = showWireItem('repetitive');
	rc2 = showWireItem('freeform');
	
	str+='<table class="dgGrid" cellspacing="0" cellpadding="4" border="0" ';
	str+='style="width:95%;border-collapse:collapse;">';
	str+='<tr class="dgItem1" nowrap="nowrap"><td align="center" style="width:30px">&nbsp;<\/td>';
	str+='<td width="150">&nbsp;<\/td><td width="60">&nbsp;<\/td><td align="center" width="60">Total<\/td>';
			
	if ((rc1 == '1')&& (rc2 == '1'))
		str+='<td align="right" width="50">$10,350.00<\/td>';
	else
		if (rc1 == '1')
			str+='<td align="right" width="50">$9,700.00<\/td>';
		else
			str+='<td align="right" width="50">$650.00<\/td>';
			
	str+='<td align="center" width="40">&nbsp;<\/td><td align="center" width="80">&nbsp;<\/td>';
	str+='<td width="50">&nbsp;<\/td><td width="120">&nbsp;<\/td><\/tr><\/table>';
	helpwriteContent(id,str);
		
}//end writeWireTotal2
		
//This function calls the showMenuItem function to determine  
//if the Express Transfer request should be displayed on the Scheduled Requests pages
function checkExpressReq(id)
{
	var rc;
	var temp;
	
	rc = showMenuItem('express');
	if (rc == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
	}
}//end checkExpressReq

//This function calls the showMenuItem function to determine  
//if the Wire request should be displayed on the Scheduled Requests pages
function checkWireReq(id)
{
	var rc;
	var rc1='0';
	var temp;
	
	rc = showMenuItem('wiremain');
	if (rc == '1'){
		rc1 = showWireItem('repetitive');
	}
	if ((rc == '0') || (rc1 == '0')){
	   temp = document.getElementById(id);
	   temp.style.display = 'none';
		}
}//end checkWireReq

//This function calls the showMenuItem function to determine  
//if the Book Transfer request should be displayed on the Scheduled Requests pages
function checkBookReq(id)
{
	var rc;
	var temp;
	
	rc = showMenuItem('book');
	if (rc == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
	}
}//end checkBookReq

//This function calls the showMenuItem function to determine  
//if the first Loan Payment request should be displayed on the Scheduled Requests pages
function checkLoanReq(id)
{
	var rc;
	var rc1='0';
	var temp;
	
	rc = showMenuItem('loan');
	if (rc == '1'){
		rc1 = showLoanItem('payment');
	}
    if ((rc == '0') || (rc1 == '0')){
    	temp = document.getElementById(id);
    	temp.style.display = 'none';
	}
}//end checkLoanReq

//This function calls the showMenuItem function to determine  
//if the Credit Card Payment request should be displayed on the Scheduled Requests pages
function checkCardReq(id)
{
	var rc;
	var temp;
	
	rc = showMenuItem('cardpay');
	if (rc == '0'){
    	temp = document.getElementById(id);
    	temp.style.display = 'none';
	}
}//end checkCardReq

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//This function writes the reporting output selections
//This function calls the showMenuItem function  
//to determine if the Quickbooks, Quicken or MS Money should be displayed
function writeOutputType(id)
{
	var str='';
	var out1 = showMenuItem('quickbooks');
	var out2 = showMenuItem('quicken');
	var out3 = showMenuItem('msmoney');
	
	if (id == 'tranrpt'){
		str+='<input id="screen" type="radio" name="output" checked /> &nbsp;<b>Screen<\/b> (HTML)<br>';
		str+='<input id="bai2" type="radio" name="output" \/> &nbsp;<b>BAI2<\/b> file (Creates a file that ';
		str+='can be imported into an account processing application)<br>';
		str+='<input id="csv" type="radio" name="output" \/> &nbsp;<b>CSV<\/b> file (Can be used by a spreadsheet program)<br>';
		if (out3 == '1'){
			str+='<input id="msmoney" type="radio" name="output" \/> &nbsp;<b>Microsoft Money®<\/b> file (Creates a file ';
			str+='that can be imported into MS Money 2000 or more recent versions)<br>';
		}
		if (out1 == '1'){
			str+='<input id="quickbook" type="radio" name="output" \/> &nbsp;<b>QuickBooks®<\/b> file (Creates a file ';
			str+='that can be imported into Quickbooks)<br>';
		}
		helpwriteContent(id,str);
	}//end if tranrpt

	if (id == 'tranrpt_down'){
		str+='Download this report as:&nbsp;';
		str+='<select><option selected="selected">BAI2 file<\/option><option>CSV file<\/option>';
		if (out3 == '1'){
			str+='<option>Microsoft Money® file<\/option>';
		}
		if (out1 == '1'){
			str+='<option>QuickBooks® file<\/option>';
		}
		str+='<\/select>&nbsp;<input type="button" value="Go" title="Download Report" \/>&nbsp;';
		helpwriteContent(id,str);
	}//end if tranrpt_down

	if (id == 'acctrpt'){
		str+='<input id="screen" type="radio" name="output" checked /> &nbsp;<b>Screen<\/b> (HTML)<br>';
		str+='<input id="bai2" type="radio" name="output" \/> &nbsp;<b>BAI2<\/b> file (Creates a file that ';
		str+='can be imported into an account processing application)<br>';
		str+='<input id="csv" type="radio" name="output" \/> &nbsp;<b>CSV<\/b> file (Can be used by a spreadsheet program)<br>';
		if (out3 == '1'){
			str+='<input id="msmoney" type="radio" name="output" \/> &nbsp;<b>Microsoft Money®<\/b> file (Creates a file ';
			str+='that can be imported into MS Money 2000 or more recent versions)<br>';
		}
		str+='<input id="qif" type="radio" name="output" \/> &nbsp;<b>QIF<\/b> file (Creates a file that can be imported  ';
		str+='into any application that can import a Quicken Interchange Formatted file)<br>';
		if (out1 == '1'){
			str+='<input id="quickbook" type="radio" name="output" \/> &nbsp;<b>QuickBooks®<\/b> file (Creates a file ';
			str+='that can be imported into Quickbooks)<br>';
		}
		if (out2 == '1'){
			str+='<input id="quicken" type="radio" name="output" \/> &nbsp;<b>Quicken®<\/b> file (Creates a file ';
			str+='that can be imported into Quicken 98 or more recent versions<br>';
		}
		helpwriteContent(id,str);
	}//end if acctrpt

	if (id == 'acctrpt_down'){
		str+='Download this report as:&nbsp;';
		str+='<select><option selected="selected">BAI2 file<\/option><option>CSV file<\/option>';
		if (out3 == '1'){
			str+='<option>Microsoft Money® file<\/option>';
		}
		str+='<option value="QIF">QIF file<\/option>';
		if (out1 == '1'){
			str+='<option>QuickBooks® file<\/option>';
		}
		if (out2 == '1'){
			str+='<option>Quicken® file<\/option>';
		}
		str+='<\/select>&nbsp;<input type="button" value="Go" title="Download Report" \/>&nbsp;';
		helpwriteContent(id,str);
	}//end if acctrpt_down
}//end writeOutputType

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//This function writes the ACH send money service selections
//This function calls the showACHItem function  
//to determine if the service should be displayed in the drop-down list
function writeACHService(id)
{
	var str='';
	var srv1 = showACHItem('payment');
	var srv2 = showACHItem('federal');
	var srv3 = showACHItem('state');
	var srv4 = showACHItem('child');
	var srv5 = showACHItem('stp820');
	
	if (id == 'service_down')
		str+='Show only templates for:&nbsp;<select><option selected>All Services<\/option>';
	else
		str+='<select><option selected> <\/option>';
	
    if (srv1 == '1'){
    	str+='<option>ACH Payment<\/option>';
    }
    if (srv4 == '1'){
    	str+='<option>Child Support Payment<\/option>';
    }
    if (srv2 == '1'){
    	str+='<option>Federal Tax<\/option>';
    }
    if (srv3 == '1'){
    	str+='<option>State Tax<\/option>';
    }
    if (srv5 == '1'){
    	str+='<option>STP 820 Payment<\/option>';
    }
   	str+='<\/select>';
    helpwriteContent(id,str);
}//end writeACHService

//This function calls the showACHItem function to determine  
//if the ACH content should be displayed on the send money, transmit and history pages
function checkACHContent(id)
{
	var rc;
	var temp;
	
	if ((id == 'payreq') || (id == 'payreq2') || (id == 'payreq3') || (id == 'payreq4')){
		rc = showACHItem('payment');
		if (rc == '0'){
			temp = document.getElementById(id);
			temp.style.display = 'none';
		}
	}
	if ((id == 'fedreq') || (id == 'fedreq2')){
		rc = showACHItem('federal');
		if (rc == '0'){
			temp = document.getElementById(id);
			temp.style.display = 'none';
		}
	}
	if ((id == 'statereq') || (id == 'statereq2')){
		rc = showACHItem('state');
		if (rc == '0'){
			temp = document.getElementById(id);
			temp.style.display = 'none';
		}
	}
	if (id == 'childreq'){
		rc = showACHItem('child');
		if (rc == '0'){
			temp = document.getElementById(id);
			temp.style.display = 'none';
		}
	}
	if (id == 'stpreq'){
		rc = showACHItem('stp820');
		if (rc == '0'){
			temp = document.getElementById(id);
			temp.style.display = 'none';
		}
	}
	if ((id == 'collreq') || (id == 'collreq2') || (id == 'collreq3')){
		rc = showACHItem('collection');
		if (rc == '0'){
			temp = document.getElementById(id);
			temp.style.display = 'none';
		}
	}
}//end checkACHContent
		
//This function writes the ACH account type selections
//This function calls the showACHItem function  
//to determine if the account type should be displayed in the drop-down list
function writeACHAcctType(id)
{
	var str='';
	var type = showACHItem('ctx');
	
	str+='<select><option selected> <\/option><option>CCD (Corporate)<\/option>';
	str+='<option>CCD+ (Corporate with additional information)<\/option>';
    if (type == '1'){
    	str+='<option>CTX (Corporate Trade Exchange)<\/option>';
    }
   	str+='<option>PPD (Personal)<\/option><option>PPD+ (Personal with additional information)<\/option>';
   	str+='<\/select><br><span class="input_instructions">\(Type of accounts to be listed in the detail area, ';
   	str+='e.g. Corporate, Personal.\)<\/span>';
    helpwriteContent(id,str);
}//end writeACHAcctType

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//This function writes the favorites selections
//This function calls the showMenuItem function  
//to determine which functions should be displayed
function writeFavoritesSelect(id)
{
	var rc,rc1,rc2,rc3,rc4,rc5;
	var str='';
	
	str+='<select size="6">';
	rc = showMenuItem('account');
	if (rc == '1'){
		str+='<option>Quick balance account report<\/option><option>Summary report<\/option>';
		str+='<option>Account transaction search<\/option><option>Transaction report<\/option>';
		str+='<option>Combined report<\/option><option>Manage saved reports<\/option>';
	}
	rc = showMenuItem('reporting');
	if (rc == '1'){
		str+='<option>Quick balance report<\/option><option>Transaction search<\/option>';
		str+='<option>Account detail report<\/option>';
	}
	rc = showMenuItem('loan');
	if (rc == '1'){
		str+='<option>Loan summary report<\/option><option>Loan activity report<\/option>';
	}
	rc = showMenuItem('cardrpt');
	if (rc == '1'){
		str+='<option>Credit card activity report<\/option>';
	}
	rc = showMenuItem('filedown');
	if (rc == '1'){
		str+='<option>Download report<\/option>';
	}
	rc = showMenuItem('statements');
	if (rc == '1'){
		str+='<option>Statement account selection<\/option>';
	}
	rc = showMenuItem('inwirerpt');
	if (rc == '1'){
	   	str+='<option>Incoming wire report<\/option>';
	}
	rc = showMenuItem('express');
	if (rc == '1'){
		str+='<option>Express transfer request<\/option><option>Express transfer transmit<\/option>';
		str+='<option>Express transfer history<\/option>';
	}
	rc = showMenuItem('book');
	if (rc == '1'){
		str+='<option>Book transfer<\/option><option>Book transfer transmit<\/option>';
		str+='<option>Book transfer history<\/option>';
	}
	rc = showMenuItem('funds');
	if (rc == '1'){
		str+='<option>Funds transfer request<\/option><option>Funds transfer transmit<\/option>';
		str+='<option>Funds transfer history<\/option>';
	}
	rc = showMenuItem('loan');
	if (rc == '1'){
		rc1 = showLoanItem('payment');
		if (rc1 == '1'){
			str+='<option>Loan payment request<\/option>';
		}
		rc2 = showLoanItem('advance');
		if (rc2 == '1'){
			str+='<option>Loan advance request<\/option>';
		}
		if ((rc1 == '1') || (rc2 == '1')){
			str+='<option>Transmit loan<\/option><option>Loan history report<\/option>';
		}
	}
	rc = showMenuItem('bill');
	if (rc == '1'){
		str+='<option>Add bill payment<\/option><option>Change bill payment<\/option>';
		str+='<option>Delete bill payment<\/option><option>Bill payment history<\/option>';
	}
	rc = showMenuItem('billsetup');
	if (rc == '1'){
		str+='<option>Add bill payee<\/option><option>Change bill payee<\/option>';
		str+='<option>Delete bill payee<\/option>';
	}
	rc = showMenuItem('cardpay');
	if (rc == '1'){
		str+='<option>Credit card payment entry<\/option><option>Credit card payment transmit<\/option>';
		str+='<option>Credit card payment history<\/option>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('payment');
		rc2 = showACHItem('federal');
		rc3 = showACHItem('state');
		rc4 = showACHItem('child');
		rc5 = showACHItem('stp820');
		if ((rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1')){
			str+='<option>Send money<\/option>';
		}
		rc = showACHItem('collection');
		if (rc == '1'){
			str+='<option>Collect money<\/option>';
		}
		if ((rc == '1') || (rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1')){
			str+='<option>ACH transmit<\/option><option>ACH history<\/option>';
		}
		rc = showACHItem('upload');
		if (rc == '1'){
			str+='<option>ACH file upload<\/option><option>ACH file upload transmit<\/option>';
			str+='<option>ACH file upload status<\/option><option>ACH file upload history<\/option>';
		}
	}
	rc = showMenuItem('fileup');
	if (rc == '1'){
		str+='<option>Upload file<\/option><option>Transmit file<\/option>';
		str+='<option>File upload audit report<\/option><option>File upload detail history report<\/option>';
		str+='<option>File upload summary history report<\/option>';
	}
	rc = showMenuItem('wiremain');
	if (rc == '1'){
		rc1 = showWireItem('freeform');
		if (rc1 == '1'){
			str+='<option>One time wire transfer entry<\/option>';
		}
		rc2 = showWireItem('repetitive');
		if (rc2 == '1'){
			str+='<option>Template based wire transfer - single request<\/option>';
		}
		if ((rc1 == '1') || (rc2 == '1')){
			str+='<option>Transmit wire<\/option><option>Wire history<\/option>';
		}
		rc = showWireItem('setup');
		if (rc == '1'){
			str+='<option>Wire template setup<\/option>';
		}
	}
	rc = showMenuItem('stop');
	if (rc == '1'){
		str+='<option>Single check stop payment request<\/option><option>Multiple check stop payment request<\/option>';
		str+='<option>Stop payment history<\/option>';
	}
	rc = showMenuItem('opositive');
	if (rc == '1'){
		str+='<option>Positive pay exceptions<\/option><option>Positive pay history<\/option>';
	}
	rc = showMenuItem('positive');
	if (rc == '1'){
		str+='<option>Positive pay exceptions manager<\/option><option>Positive pay issue entry<\/option>';
		str+='<option>Positive pay issue file import<\/option><option>Positive pay decisions report<\/option>';
		str+='<option>Positive pay outstanding issues report<\/option><option>Positive pay stale issues report<\/option>';
	}
	rc = showMenuItem('fullrecon');
	if (rc == '1'){
		str+='<option>Account recon issue manual entry<\/option><option>Account recon issue file import<\/option>';
		str+='<option>Account recon update issue<\/option><option>Account recon statement report<\/option>';
		str+='<option>Account recon activity report<\/option>';
	}
	rc = showMenuItem('partrecon');
	if (rc == '1'){
		str+='<option>Account recon statement report<\/option><option>Account recon activity report<\/option>';
	}
	rc = showMenuItem('deprecon');
	if (rc == '1'){
		str+='<option>Deposit recon statement report<\/option><option>Deposit recon activity report<\/option>';
	}
	rc = showMenuItem('chkreorder');
	if (rc == '1'){
		str+='<option>Order checks/deposit slips<\/option>';
	}
	rc = showMenuItem('capturerdc');
	if (rc == '1'){
		str+='<option>Remote deposit capture<\/option>';
	}
	str+='<option>View received mail and alerts<\/option><option>View sent mail<\/option>';
	str+='<option>Contact us<\/option><option>Download documents<\/option>';
	str+='<option>User administration<\/option><option>Account administration<\/option>';
	str+='<option>Approvals administration<\/option><option>Change password<\/option>';
	str+='<option>Personal preferences<\/option><option>Manage favorites<\/option>';
	str+='<option>View user activity report<\/option><\/select>';
	
		helpwriteContent(id,str);

}//end writeFavoritesSelect

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//This function writes the table of services for Approvals Administration
//This function calls the showMenuItem function  
//to determine which services should be displayed
function writeApprovalService(id)
{
	var rc,rc1,rc2;
	var bkgrnd='0';
	var str='';

	str+='<table cellpadding="0" cellspacing="0" width="90%"><tr><td width="100%">';
	str+='<table class="dgGrid" cellpadding="4" cellspacing="0" border="0" ';
	str+='style="width:100%";border-collapse:collapse"><tr class="dgHeader style="white-space:nowrap;">';
	str+='<td><a href="#" onclick="return false"><span class="dgSortLink">Service Name&nbsp;';
	str+='<img src=\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border=\'0\' \/><\/span><\/a><\/td>';
	str+='<td class="dgSortLink" align="center">Request Amount<\/td><td align="center">Approvals If Less or Equal<\/td>';
	str+='<td align="center">Approvals If Greater<\/td><\/tr>';
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('collection');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>ACH Collection<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>ACH Collection<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('upload');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>ACH File Upload<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>ACH File Upload<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('payment');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>ACH Payment<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>ACH Payment<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('book');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Book Transfer<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Book Transfer<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="2,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="3" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('child');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Child Support Payment<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Child Support Payment<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="3,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('cardpay');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Credit Card Payments<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Credit Card Payments<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('deprecon');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Deposit Recon<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Deposit Recon<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('positive');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Enhanced Positive Pay<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Enhanced Positive Pay<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="3" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('express');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Express Transfer<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Express Transfer<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('federal');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Federal Tax<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Federal Tax<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('fullrecon');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Full Account Recon<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Full Account Recon<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('funds');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Funds Transfer<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Funds Transfer<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="10,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="3" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('loan');
	if (rc == '1'){
		rc1 = showLoanItem('payment');
		rc2 = showLoanItem('advance');
		if ((rc1 == '1') || (rc2 == '1')){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Loan<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Loan<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="10,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="3" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('partrecon');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Partial Account Recon<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Partial Account Recon<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('capturerdc');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Remote Deposit Capture<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Remote Deposit Capture<\/td>';bkgrnd = '0';}
    	str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
    	str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
    	str+='<\/tr>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('state');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>State Tax<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>State Tax<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('stp820');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>STP 820 Payment<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>STP 820 Payment<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="5,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="1" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('wiremain');
	if (rc == '1'){
		rc1 = showLoanItem('repetitive');
		rc2 = showLoanItem('freeform');
		if ((rc1 == '1') || (rc2 == '1')){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Template Based Wire Transfer<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Template Based Wire Transfer<\/td>';bkgrnd = '0';}
			str+='<td align="center">$ <input type="text" size="15" value="10,000.00" style="text-align:right" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="2" style="text-align:center" \/><\/td>';
			str+='<td align="center"><input type="text" size="1" value="3" style="text-align:center" \/><\/td>';
			str+='<\/tr>';
		}
	}
	str+='<\/table><\/td><\/tr><\/table>';
	helpwriteContent(id,str);
	
}//end writeApprovalService

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//This function writes the table of services for User Administration
//This function calls the showMenuItem function  
//to determine which services should be displayed
function writeUserAdminServices(id)
{
	var rc,rc1;
	var bkgrnd='0';
	var str='';

	str+='<table cellpadding="0" cellspacing="0" width="90%"><tr><td width="100%">';
	str+='<table class="dgGrid" cellpadding="4" cellspacing="0" border="0" ';
	str+='style="width:90%";border-collapse:collapse"><tr class="dgHeader style="white-space:nowrap;">';
	str+='<td><a href="#" onclick="return false"><span class="dgSortLink">Service Name&nbsp;';
	str+='<img src=\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border=\'0\' \/><\/span><\/a><\/td>';
	if (id == 'modify'){
		str+='<td align="center">Entitled<\/td>';}
	else if (id == 'delete'){
		str+='<td align="center">&nbsp;<\/td>';}
	else{
		str+='<td align="center">Details<\/td><\/tr>';}
	
	rc = showMenuItem('account');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Account Reporting<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Account Reporting<\/td>';bkgrnd = '0';}
    	if (id == 'modify'){
    		str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    	else{ 
    		if (id == 'delete'){
    			str+='<td align="center">&nbsp;<\/td>';}
    		else{
    			if ((id == 'copy') || (id == 'new2') || (id == 'new3')){
					str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    			else{
    				if (id == 'new1'){	
    					str+='<td align="center"><a href="..\/administration\/ar_acct_add.html" class="default">Add<\/a><\/td>';}
    				else{
    					str+='<td align="center"><a href="..\/administration\/ar_acct_modify.html" class="default">View/Change<\/a><\/td>';}
    			}
    		}
    	}
    	str+='<\/tr>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('collection');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>ACH Collection<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>ACH Collection<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			if (id == 'delete'){
    				str+='<td align="center">&nbsp;<\/td>';}
    			else{
					if ((id == 'copy') || (id == 'new3')){
						str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    				else{
    					if ((id == 'new1')|| (id == 'new2')){
    						str+='<td align="center"><a href="..\/administration\/coll_acct_add.html" class="default">Add<\/a><\/td>';}
    					else{
    						str+='<td align="center"><a href="..\/administration\/coll_acct_modify.html" class="default">View/Change<\/a><\/td>';}
    				}
    			}
    		}
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('upload');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>ACH File Upload<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>ACH File Upload<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    		    str+='<td align="center">&nbsp;<\/td>';}
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('payment');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>ACH Payment<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>ACH Payment<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{ 
    			if (id == 'delete'){
    				str+='<td align="center">&nbsp;<\/td>';}
    			else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
    		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    		    }
    		}
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('billpay');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Bill Pay<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Bill Pay<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{ 
    		if (id == 'delete'){
    			str+='<td align="center">&nbsp;<\/td>';}
    		else{
    			if ((id == 'copy') || (id == 'new2') || (id == 'new3')){
					str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    			else{
    				if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    				else{
    					str+='<td align="center"><a href="..\/administration\/billpay_acct_modify.html" class="default">View/Change<\/a><\/td>';}
    			}
    		}
    	}
    	str+='<\/tr>';
	}
	rc = showMenuItem('bill');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Bill Payment<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Bill Payment<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('book');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Book Transfer<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Book Transfer<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('chkreorder');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Check Reorder<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Check Reorder<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('child');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Child Support Payment<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Child Support Payment<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			if (id == 'delete'){
    				str+='<td align="center">&nbsp;<\/td>';}
    			else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
    		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    		    }
    		}
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('cardpay');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Credit Card Payments<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Credit Card Payments<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('cardrpt');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Credit Card Reporting<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Credit Card Reporting<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('deprecon');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Deposit Recon<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Deposit Recon<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('positive');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Enhanced Positive Pay<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Enhanced Positive Pay<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
				if (id == 'copy'){
					str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  				else{
  					if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
	  					str+='<td class="inactive_link" align="center">Add<\/td>';}
	  				else{
  		    			str+='<td align="center"><a href="..\/administration\/pp_acct_modify.html" class="default">View/Change<\/a><\/td>';}
  		    	}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('express');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Express Transfer<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Express Transfer<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('federal');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Federal Tax<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Federal Tax<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			if (id == 'delete'){
    				str+='<td align="center">&nbsp;<\/td>';}
    			else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
    		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    		    }
    		}
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('filedown');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>File Download<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>File Download<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
				if (id == 'copy'){
					str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  				else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
    		    		str+='<td align="center"><a href="..\/administration\/fd_acct_modify.html" class="default">View/Change<\/a><\/td>';}
    		    }
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('fileup');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>File Upload<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>File Upload<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
				if (id == 'copy'){
					str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  				else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
  		    			str+='<td align="center"><a href="..\/administration\/up_acct_modify.html" class="default">View/Change<\/a><\/td>';}
  		    	}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('fullrecon');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Full Account Recon<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Full Account Recon<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
				if (id == 'copy'){
					str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  				else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
  		    			str+='<td align="center"><a href="..\/administration\/recon_acct_modify.html" class="default">View/Change<\/a><\/td>';}
  		    	}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('funds');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Funds Transfer<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Funds Transfer<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('inwirerpt');
	if (rc == '1'){
  		if (bkgrnd == '0'){
  			str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Incoming Wire Report<\/td>';bkgrnd = '1';}
  		else{
  			str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Incoming Wire Report<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  		    str+='<td align="center">&nbsp;<\/td>';}
  		str+='<\/tr>';
	}
	rc = showMenuItem('wiremain');
	if (rc == '1'){
  		if (bkgrnd == '0'){
  			str+='<tr class="dgItem0" style="white-space:nowrap;"><td>International Wire<\/td>';bkgrnd = '1';}
  		else{
  			str+='<tr class="dgItem1" style="white-space:nowrap;"><td>International Wire<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  		    str+='<td align="center">&nbsp;<\/td>';}
  		str+='<\/tr>';
	}
	rc = showMenuItem('loan');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Loan<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Loan<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('loan');
	if (rc == '1'){
		rc1 = showLoanItem('advance');
		if (rc1 == '1'){
        	if (bkgrnd == '0'){
          		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Loan Advance<\/td>';bkgrnd = '1';}
          	else{
          		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Loan Advance<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			str+='<td align="center">&nbsp;<\/td>';}
    		str+='<\/tr>';
    	}
	}
	rc = showMenuItem('loan');
	if (rc == '1'){
		rc1 = showLoanItem('payment');
		if (rc1 == '1'){
        	if (bkgrnd == '0'){
          		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Loan Payment<\/td>';bkgrnd = '1';}
          	else{
          		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Loan Payment<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			str+='<td align="center">&nbsp;<\/td>';}
    		str+='<\/tr>';
    	}
	}
	rc = showMenuItem('wiremain');
	if (rc == '1'){
		rc1 = showWireItem('freeform');
		if (rc1 == '1'){
    		if (bkgrnd == '0'){
    			str+='<tr class="dgItem0" style="white-space:nowrap;"><td>One Time Wire Transfer Entry<\/td>';bkgrnd = '1';}
    		else{
    			str+='<tr class="dgItem1" style="white-space:nowrap;"><td>One Time Wire Transfer Entry<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			str+='<td align="center">&nbsp;<\/td>';}
    		str+='<\/tr>';
    	}
	}
	rc = showMenuItem('partrecon');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Partial Account Recon<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Partial Account Recon<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('opositive');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Positive Pay<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Positive Pay<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('capturerdc');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Remote Deposit Capture<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Remote Deposit Capture<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('reporting');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Reporting<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Reporting<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('state');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>State Tax<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>State Tax<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			if (id == 'delete'){
    				str+='<td align="center">&nbsp;<\/td>';}
    			else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
    		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    		    }
    		}
  			str+='<\/tr>';
		}
	}
	rc = showMenuItem('statements');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Statements<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Statements<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('stop');
	if (rc == '1'){
    	if (bkgrnd == '0'){
    		str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Stop Payment<\/td>';bkgrnd = '1';}
    	else{
    		str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Stop Payment<\/td>';bkgrnd = '0';}
  		if (id == 'modify'){
  			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
  		else{
  			if (id == 'delete'){
  				str+='<td align="center">&nbsp;<\/td>';}
  			else{
  		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
  		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
  		    	else{
  		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
  		    }
  		}
    	str+='<\/tr>';
	}
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('stp820');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>STP 820 Payment<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>STP 820 Payment<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			if (id == 'delete'){
    				str+='<td align="center">&nbsp;<\/td>';}
    			else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
    		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    		    }
    		}
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('wiremain');
	if (rc == '1'){
		rc1 = showWireItem('repetitive');
		if (rc1 == '1'){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Template Based Wire Transfer<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Template Based Wire Transfer<\/td>';bkgrnd = '0';}
    		if (id == 'modify'){
    			str+='<td align="center"><input type="checkbox" checked \/><\/td>';}
    		else{
    			if (id == 'delete'){
    				str+='<td align="center">&nbsp;<\/td>';}
    			else{
    		    	if ((id == 'new1') || (id == 'new2') || (id == 'new3')){
    		    		str+='<td class="inactive_link" align="center">Add<\/td>';}
    		    	else{
    		    		str+='<td class="inactive_link" align="center">View/Change<\/td>';}
    		    }
    		}
			str+='<\/tr>';
		}
	}
	str+='<\/table><\/td><\/tr><\/table>';
	helpwriteContent(id,str);
	
}//end writeUserAdminServices

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//This function writes the table of user limits for User Administration
//This function calls the showMenuItem function  
//to determine which services should be displayed
function writeUserAdminLimits(id)
{
	var rc,rc1,rc2,rc3,rc4,rc5,rc6;
	var bkgrnd='0';
	var str='';

	str+='<table cellpadding="0" cellspacing="0" width="90%"><tr><td width="100%">';
	str+='<table class="dgGrid" cellpadding="4" cellspacing="0" border="0" ';
	str+='style="width:90%";border-collapse:collapse"><tr class="dgHeader style="white-space:nowrap;">';
	str+='<td><a href="#" onclick="return false"><span class="dgSortLink">Service Name&nbsp;';
	str+='<img src=\'..\/images\/sort_descend.gif\' align=\'absmiddle\' border=\'0\' \/><\/span><\/a><\/td>';
	str+='<td align="center">Details<\/td><\/tr>';
	
	rc = showMenuItem('ach');
	if (rc == '1'){
		rc1 = showACHItem('collection');
		rc2 = showACHItem('payment');
		rc3 = showACHItem('federal');
		rc4 = showACHItem('state');
		rc5 = showACHItem('child');
		rc6 = showACHItem('stp820');
		if ((rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1') || (rc6 == '1')){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>ACH<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>ACH<\/td>';bkgrnd = '0';}
    		if (id == 'view_limits'){
    			str+='<td align="center"><a href="..\/administration\/ach_limit_modify.html" class="default">View/Change<\/a><\/td>';}
    		else{
				str+='<td class="inactive_link" align="center">View/Change<\/td>';}
			str+='<\/tr>';
		}
	}
	rc = showMenuItem('billpay');
	if (rc == '1') {
		if (bkgrnd == '0'){
			str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Bill Pay<\/td>';bkgrnd = '1';
		}
		else{
			str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Bill Pay<\/td>';bkgrnd = '0';
		}
		if (id == 'view_limits'){
			str+='<td align="center"><a href="..\/administration\/billpay_limit_modify.html" class="default">View/Change<\/a><\/td>';
		}
		else{
			str+='<td class="inactive_link" align="center">View/Change<\/td>';
		}
		str+='<\/tr>'
	}
	rc = showMenuItem('wiremain');
	if (rc == '1'){
		rc1 = showWireItem('repetitive');
		rc2 = showWireItem('freeform');
		if ((rc1 == '1') || (rc2 == '1')){
			if (bkgrnd == '0'){
				str+='<tr class="dgItem0" style="white-space:nowrap;"><td>Wire<\/td>';bkgrnd = '1';}
			else{
				str+='<tr class="dgItem1" style="white-space:nowrap;"><td>Wire<\/td>';bkgrnd = '0';}
    		if (id == 'view_limits'){
    			str+='<td align="center"><a href="..\/administration\/wire_limit_modify.html" class="default">View/Change<\/a><\/td>';}
    		else{
				str+='<td class="inactive_link" align="center">View/Change<\/td>';}
			str+='<\/tr>';
		}
	}
	str+='<\/table><\/td><\/tr><\/table>';
	helpwriteContent(id,str);
	
}//end writeUserAdminLimits

//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//functions writeContent...
//These functions will write the <table> tags in the main content area of the overview pages
//These functions call the showMenuItem function  
//to determine if the content table should be displayed
function writeContentAcct(id)
{
	var rc;
	var str='';
	var testAcct = false;
	
	if (id == 'content_acct'){
		rc = showMenuItem('account');
		if (rc == '1'){
			testAcct = true;
		}
		if (testAcct){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Deposit Account Reports<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Create a custom report from account summary and transaction data, or manage a saved report.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/account_reporting\/quick.html" class="default">';
			str+='Quick balance account report<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/account_reporting\/treport.html" class="default">Transaction report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/account_reporting\/summary.html" class="default">';
			str+='Summary report<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/account_reporting\/combined.html" class="default">Combined report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/account_reporting\/tsearch.html" class="default">';
			str+='Account transaction search</a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/account_reporting\/manage_saved_reports.html" class="default">Manage saved reports<\/a>';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testAcct
	}//end content_acct
}// end writeContentAcct	
	
function writeContentRpt(id)
{
	var rc;
	var str='';
	var testRpt = false;
	
	if (id == 'content_rpt'){
		rc = showMenuItem('reporting');
		if (rc == '1'){
			testRpt = true;
		}
		if (testRpt){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Deposit Reports<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Create a custom report from account summary and transaction data.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/reporting\/quick.html" class="default">';
			str+='Quick balance report<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/reporting\/account.html" class="default">Account detail report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/reporting\/transaction.html" class="default">';
			str+='Transaction search<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;<\/td><\/tr>';
			str+='<tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';			
		}//end testRpt
	}//end content_rpt
}// end writeContentRpt	
	
function writeContentLoan(id)
{
	var rc;
	var str='';
	var testLoan = false;
	
	if (id == 'content_loan'){
		rc = showMenuItem('loan');
		if (rc == '1'){
			testLoan = true;
		}
		if (testLoan){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Loan Reports<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View summary and detail information on the notes for a selected loan.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/loan\/summary.html" class="default">';
			str+='Loan summary report<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/loan\/activity.html" class="default">Loan activity report<\/a>';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';			
		}//end testLoan
	}//end content_loan
}// end writeContentLoan	
	
function writeContentCard(id)
{
	var rc;
	var str='';
	var testCard = false;
	
	if (id == 'content_card'){
		rc = showMenuItem('cardrpt');
		if (rc == '1'){
			testCard = true;
		}
		if (testCard){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Credit Card Reports<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View credit card information and activity for a selected credit card.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/credit_card\/activity.html" class="default">';
			str+='Credit card activity report<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;<\/td><\/tr>';
			str+='<tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';			
		}//end testCard
	}//end content_card
}// end writeContentCard	

function writeContentDown(id)
{
	var rc;
	var str='';
	var testDown = false;
	
	if (id == 'content_down'){
		rc = showMenuItem('filedown');
		if (rc == '1'){
			testDown = true;
		}
		if (testDown){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Downloadable Reports<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View, print or download a report.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/file_download\/download_file.html" class="default">';
			str+='Download report<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;<\/td><\/tr>';
			str+='<tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';			
		}//end testDown
	}//end content_down
}// end writeContentDown	

function writeContentStmt(id)
{
	var rc;
	var str='';
	var testStmt = false;
	
	if (id == 'content_stmt'){
		rc = showMenuItem('statements');
		if (rc == '1'){
			testStmt = true;
		}
		if (testStmt){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Statements<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View statements for checking, savings and extended analysis accounts.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/statements\/statements.html" class="default">';
			str+='Statements account selection<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;<\/td><\/tr>';
			str+='<tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';			
		}//end testStmt
	}//end content_stmt
}// end writeContentStmt	

function writeContentWire(id)
{
	var rc;
	var str='';
	var testWire = false;
	
	if (id == 'content_wire'){
		rc = showMenuItem('inwirerpt');
		if (rc == '1'){
		   	testWire = true;
		}
		if (testWire){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Wire Reports<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View incoming wire information.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/wire\/incoming.html" class="default">';
			str+='Incoming wire report<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;<\/td><\/tr>';
			str+='<tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';			
		}//end testWire
	}//end content_wire
}// end writeContentWire

function writeContentSchedule(id)
{
	var rc;
	var str='';
	var testSchd = false;

	if (id == 'content_schedule'){
		rc = showMenuItem('schedule');
		if (rc == '1'){
			testSchd = true;
		}

		if (testSchd){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Scheduled Requests<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View and manage scheduled requests.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/scheduled_requests\/next_scheduled_requests.html" class="default">';
			str+='Next Scheduled Requests<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;<\/td><\/tr>';
			str+='<tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testSchd
	}//end content_schedule
}//end writeContentSchedule

function writeContentExpress(id)
{
	var rc;
	var str='';
	var testExpr = false;
	
	if (id == 'content_express'){
		rc = showMenuItem('express');
		if (rc == '1'){
			testExpr = true;
		}
		if (testExpr){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Express Transfer<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Transfer money from one account to another account within your financial organization.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/express_transfer\/express_entry.html" class="default">';
			str+='Express transfer request<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/express_transfer\/express_history_select.html" class="default">Express transfer history<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/express_transfer\/express_transmit.html" class="default">';
			str+='Express transfer transmit<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;<\/td>';
			str+='<\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testExpr
	}//end content_express
}// end writeContentExpress
	
function writeContentBook(id)
{
	var rc;
	var str='';
	var testBook = false;
	
	if (id == 'content_book'){
		rc = showMenuItem('book');
		if (rc == '1'){
			testBook = true;
		}
		if (testBook){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Book Transfer<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Transfer money from one account to many accounts within your financial organization.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/book_transfer\/entry.html" class="default">';
			str+='Book transfer<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/book_transfer\/history.html" class="default">Book transfer history<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/book_transfer\/transmit.html" class="default">';
			str+='Book transfer transmit<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testBook
	}//end content_book
}// end writeContentBook
	
function writeContentFunds(id)
{
	var rc;
	var str='';
	var testFunds = false;
	
	if (id == 'content_funds'){
		rc = showMenuItem('funds');
		if (rc == '1'){
			testFunds = true;
		}
		if (testFunds){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Funds Transfer<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Transfer money between an account within your financial organization and an external account.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/funds_transfer\/funds_entry.html" class="default">';
			str+='Funds transfer request<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/funds_transfer\/funds_history_select.html" class="default">Funds transfer history<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/funds_transfer\/funds_transmit.html" class="default">';
			str+='Funds transfer transmit<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;<\/td>';
			str+='<\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testFunds
	}//end content_funds
}// end writeContentFunds
	
function writeContentLoans(id)
{
	var rc,rc1,rc2;
	var str='';
	var testLoans = false;	var testPay = false;	var testAdv = false;
	
	if (id == 'content_loans'){
		rc = showMenuItem('loan');
		if (rc == '1'){
			rc1 = showLoanItem('payment');
			if (rc1 == '1'){
				testPay = true;
			}
			rc2 = showLoanItem('advance');
			if (rc2 == '1'){
				testAdv = true;
			}
			if ((testPay) || (testAdv)){
				testLoans = true;
			}//end Loan with either payment or advance
		}
		if (testLoans){
        	str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
        	str+='<td class="subheader" colspan="3" align="left">Loans<br>';
        	str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
        	str+='Manage loan transaction activities.';
        	str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
    		if (testPay){
    			str+='<td align="left" width="30%" nowrap><a href="..\/loan\/payment.html" class="default">';
    			str+='Loan payment request<\/a><\/td><td align="left" width="100%" nowrap>';
    			if (testAdv){				
    				str+='<a href="..\/loan\/transmit.html" class="default">Transmit loan<\/a>';
    				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
    				str+='<td align="left" width="30%" nowrap><a href="..\/loan\/advance.html" class="default">';
    				str+='Loan advance request<\/a><\/td><td align="left" width="100%" nowrap>';
    				str+='<a href="..\/loan\/history.html" class="default">Loan history report<\/a>';
    				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
    			}//end loan with payment and advance
    			else{
    				str+='<a href="..\/loan\/history.html" class="default">Loan history report<\/a>';
    				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
    				str+='<td align="left" width="30%" nowrap><a href="..\/loan\/transmit.html" class="default">';
    				str+='Transmit loan<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
    				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
    			}//end loan with payment, without advance
    		}
    		else{
    			str+='<td align="left" width="30%" nowrap><a href="..\/loan\/advance.html" class="default">';
    			str+='Loan advance request<\/a><\/td><td align="left" width="100%" nowrap>';
				str+='<a href="..\/loan\/history.html" class="default">Loan history report<\/a>';
  				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
  				str+='<td align="left" width="30%" nowrap><a href="..\/loan\/transmit.html" class="default">';
  				str+='Transmit loan<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
  				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
  			}//end loan with advance, without payment
			
			helpwriteContent(id,str);
			str='';
		}//end testLoans
	}//end content_loans
}// end writeContentLoans
	
function writeContentBpmnt(id)
{
	var rc;
	var str='';
	var testBpmnt = false;
	
	if (id == 'content_bpmnt'){
		rc = showMenuItem('bill');
		if (rc == '1'){
			testBpmnt = true;
		}
		if (testBpmnt){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Bill Payment<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Manage bill payment activites.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/bill_payment\/add_payment.html" class="default">';
			str+='Add bill payment<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/bill_payment_setup\/add_payee.html" class="default">Add bill payee<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/bill_payment\/change_payment.html" class="default">';
			str+='Change bill payment<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/bill_payment_setup\/change_payee.html" class="default">Change bill payee<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/bill_payment\/delete_payment.html" class="default">';
			str+='Delete bill payment</a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/bill_payment_setup\/delete_payee.html" class="default">Delete bill payee<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/bill_payment\/payment_history.html" class="default">';
			str+='Bill payment history</a><\/td><td align="left" width="100%" nowrap>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testBpmnt
	}//end content_bpmnt
}// end writeContentBpmnt
	
function writeContentBpay(id)
{
	var rc;
	var str='';
	var testBpay = false;
	
	if (id == 'content_bpay'){
		rc = showMenuItem('billpay');
		if (rc == '1'){
			testBpay = true;
		}
		if (testBpay){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left"><a name="BP">Bill Pay</a><br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Manage bill payment activities.';
			str+='<\/span><\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testBpay
	}//end content_bpay
}// end writeContentBpay
	
function checkBillPay(id)
{
	var check;
	var temp;
	
	check = showMenuItem('billpay');
	if (check == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
		}
}//end checkBillPay

function writeContentCred(id)
{
	var rc;
	var str='';
	var testCred = false;
	
	if (id == 'content_cred'){
		rc = showMenuItem('cardpay');
		if (rc == '1'){
			testCred = true;
		}
		if (testCred){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Credit Cards<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Enter and approve credit card payments. View credit card payment history.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/credit_card\/entry.html" class="default">';
			str+='Credit card payment entry<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/credit_card\/history.html" class="default">Credit card payment history<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/credit_card\/transmit.html" class="default">';
			str+='Credit card payment transmit<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testCred
	}//end content_cred
}// end writeContentCred	

function writeContentACH(id)
{
	var rc1,rc2,rc3,rc4,rc5,rc6,rc7;
	var str='';
	var testACH = false;	var testACHUp = false;
	
	if (id == 'content_ach'){
		rc1 = showMenuItem('ach');
		if (rc1 == '1'){
			rc1 = showACHItem('payment');
			rc2 = showACHItem('federal');
			rc3 = showACHItem('state');
			rc4 = showACHItem('child');
			rc5 = showACHItem('stp820');
			rc6 = showACHItem('collection');
			if ((rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1') || (rc6 == '1')){
				testACH = true;
			}//end both ACH and at least one type
			rc7 = showACHItem('upload');
			if (rc7 == '1'){
				testACHUp = true;
			}//end testACHUp
		}
		if ((testACH) && (testACHUp)){
  			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
  			str+='<td class="subheader" colspan="3" align="left">ACH<br>';
  			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
  			str+='Manage ACH activities.';
  			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			if ((rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1')){
				str+='<td align="left" width="30%" nowrap><a href="..\/ach\/send.html" class="default">';
				str+='Send money<\/a><\/td><td align="left" width="100%" nowrap>';
				if (rc6 == '1'){				
					str+='<a href="..\/ach\/upload.html" class="default">ACH file upload<\/a>';
					str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
					str+='<td align="left" width="30%" nowrap><a href="..\/ach\/collect.html" class="default">';
					str+='Collect money<\/a><\/td><td align="left" width="100%" nowrap>';
					str+='<a href="..\/ach\/upload_transmit.html" class="default">ACH file upload transmit<\/a>';
					str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
					str+='<td align="left" width="30%" nowrap><a href="..\/ach\/transmit.html" class="default">';
					str+='ACH transmit<\/a><\/td><td align="left" width="100%" nowrap>';
					str+='<a href="..\/ach\/upload_status.html" class="default">ACH file upload status<\/a>';
					str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
					str+='<td align="left" width="30%" nowrap><a href="..\/ach\/history.html" class="default">';
					str+='ACH history<\/a><\/td><td align="left" width="100%" nowrap>';
					str+='<a href="..\/ach\/upload_history.html" class="default">ACH file upload history<\/a>';
					str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
				}//end ACH with send and collect
				else{
					str+='<a href="..\/ach\/upload_transmit.html" class="default">ACH file upload transmit<\/a>';
					str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
					str+='<td align="left" width="30%" nowrap><a href="..\/ach\/transmit.html" class="default">';
					str+='ACH transmit<\/a><\/td><td align="left" width="100%" nowrap>';
					str+='<a href="..\/ach\/upload_status.html" class="default">ACH file upload status<\/a>';
					str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
					str+='<td align="left" width="30%" nowrap><a href="..\/ach\/history.html" class="default">';
					str+='ACH history<\/a><\/td><td align="left" width="100%" nowrap>';
					str+='<a href="..\/ach\/upload_history.html" class="default">ACH file upload history<\/a>';
					str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
					str+='<td align="left" width="30%" nowrap><a href="..\/ach\/upload.html" class="default">';
					str+='ACH file upload<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
					str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
				}//end ACH with send but not collect
			}//end if send
			else{
				str+='<td align="left" width="30%" nowrap><a href="..\/ach\/collect.html" class="default">';
				str+='Collect money<\/a><\/td><td align="left" width="100%" nowrap>';
				str+='<a href="..\/ach\/upload_transmit.html" class="default">ACH file upload transmit<\/a>';
				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
				str+='<td align="left" width="30%" nowrap><a href="..\/ach\/transmit.html" class="default">';
				str+='ACH transmit<\/a><\/td><td align="left" width="100%" nowrap>';
				str+='<a href="..\/ach\/upload_status.html" class="default">ACH file upload status<\/a>';
    			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
    			str+='<td align="left" width="30%" nowrap><a href="..\/ach\/history.html" class="default">';
    			str+='ACH history<\/a><\/td><td align="left" width="100%" nowrap>';
    			str+='<a href="..\/ach\/upload_history.html" class="default">ACH file upload history<\/a>';
    			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
    			str+='<td align="left" width="30%" nowrap><a href="..\/ach\/upload.html" class="default">';
    			str+='ACH file upload<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			}//end ACH with collect but not send			
		}//end testACH and testACHUp
		else
		if (testACH){//ACH without ACH file upload
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">ACH<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Manage ACH activities.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			if ((rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1') || (rc5 == '1')){
				str+='<td align="left" width="30%" nowrap><a href="..\/ach\/send.html" class="default">';
				str+='Send money<\/a><\/td><td align="left" width="100%" nowrap>';
				if (rc6 == '1'){				
					str+='<a href="..\/ach\/transmit.html" class="default">ACH transmit<\/a>';
					str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
					str+='<td align="left" width="30%" nowrap><a href="..\/ach\/collect.html" class="default">';
					str+='Collect money<\/a><\/td><td align="left" width="100%" nowrap>';
					str+='<a href="..\/ach\/history.html" class="default">ACH history<\/a>';
					str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
				}//end ACH with send and collect
				else{
					str+='<a href="..\/ach\/history.html" class="default">ACH history<\/a>';
					str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
					str+='<td align="left" width="30%" nowrap><a href="..\/ach\/transmit.html" class="default">';
					str+='ACH transmit<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
					str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
				}//end ACH with send but not collect
			}//end if send
			else{
				str+='<td align="left" width="30%" nowrap><a href="..\/ach\/collect.html" class="default">';
				str+='Collect money<\/a><\/td><td align="left" width="100%" nowrap>';
				str+='<a href="..\/ach\/history.html" class="default">ACH history<\/a>';
				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
				str+='<td align="left" width="30%" nowrap><a href="..\/ach\/transmit.html" class="default">';
				str+='ACH transmit<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			}//end ACH with collect but not send			
		}//end testACH without testACHUp

			helpwriteContent(id,str);
			str='';
	}//end content_ach
}// end writeContentACH
	
function writeContentUp(id)
{
	var rc;
	var str='';
	var testUp = false;
	
	if (id == 'content_upload'){
		rc = showMenuItem('fileup');
		if (rc == '1'){
			testUp = true;
		}
		if (testUp){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">File Upload<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Manage the transfer of files from your PC to the bank.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/file_upload\/upload_file.html" class="default">';
			str+='Upload file<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/file_upload\/detail_history.html" class="default">File upload detail history report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/file_upload\/pending_files.html" class="default">';
			str+='Transmit file<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/file_upload\/summary_history.html" class="default">File upload summary history report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testUp
	}//end content_upload
}// end writeContentUp	
	
function writeContentWires(id)
{
	var rc,rc1,rc2,rc3;
	var str='';
	var testWires = false;	var testSetup = false;
	
	if (id == 'content_wires'){
		rc = showMenuItem('wiremain');
		if (rc == '1'){
			rc1 = showWireItem('freeform');
			rc2 = showWireItem('repetitive');
			if ((rc1 == '1') || (rc2 == '1')){
				testWires = true;
			}//end wire with at least one type
			rc3 = showWireItem('setup');
			if (rc3 == '1'){
				testSetup = true;
			}//end testSetup
		}
		if ((testWires) && (testSetup)){
		   	str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Wire<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Manage wire transfer activities.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			if (rc1 == '1'){
				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/free_form_entry.html" class="default">';
				str+='One time wire transfer entry<\/a><\/td><td align="left" width="100%" nowrap>';
				str+='<a href="..\/wire\/setup.html" class="default">Wire template setup<\/a>';
				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
				if (rc2 == '1'){
    				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/rep_entry.html" class="default">';
    				str+='Template based wire transfer - single request</a><\/td><td align="left" width="100%" nowrap>';
    				str+='<a href="..\/wire\/history.html" class="default">Wire history<\/a>';
    				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
    				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/transmit.html" class="default">';
    				str+='Transmit wire<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
    				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
    			}//end wire with both rep and freeform
    			else{
    				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/transmit.html" class="default">';
    				str+='Transmit wire</a><\/td><td align="left" width="100%" nowrap>';
    				str+='<a href="..\/wire\/history.html" class="default">Wire history<\/a>';
    				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
    			}//end wire with freeform only    			
			}//end if freeform
			else{
				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/rep_entry.html" class="default">';
				str+='Template based wire transfer - single request<\/a><\/td><td align="left" width="100%" nowrap>';
				str+='<a href="..\/wire\/setup.html" class="default">Wire template setup<\/a>';
				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/transmit.html" class="default">';
				str+='Transmit wire<\/a><\/td><td align="left" width="100%" nowrap>';
    			str+='<a href="..\/wire\/history.html" class="default">Wire history<\/a>';
				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';			
			}//end wire with only rep
		}//end wire with setup
		else
		if (testWires){//wires without setup
		   	str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Wire<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Manage wire transfer activities.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			if (rc1 == '1'){
				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/free_form_entry.html" class="default">';
				str+='One time wire transfer entry<\/a><\/td>';
				if (rc2 == '1'){
    				str+='<td align="left" width="100%" nowrap>';
    				str+='<a href="..\/wire\/transmit.html" class="default">Transmit wire<\/a>';
    				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
    				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/rep_entry.html" class="default">';
    				str+='Template based wire transfer - single request<\/a><\/td><td align="left" width="100%" nowrap>';
    				str+='<a href="..\/wire\/history.html" class="default">Wire history<\/a>';
    				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
    			}//end wire with both rep and freeform
    			else{
    				str+='<td align="left" width="100%" nowrap>';
    				str+='<a href="..\/wire\/history.html" class="default">Wire history<\/a>';
    				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
    				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/transmit.html" class="default">';
    				str+='Transmit wire<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
    				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
    			}//end wire with freeform only    			
			}//end if freeform
 			else{
				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/rep_entry.html" class="default">';
				str+='Template based wire transfer - single request<\/a><\/td><td align="left" width="100%" nowrap>';
    			str+='<a href="..\/wire\/history.html" class="default">Wire history<\/a>';
				str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/transmit.html" class="default">';
				str+='Transmit wire<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
				str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
 			}//end wire with rep only		
		}//end testWires without setup	
		
        	helpwriteContent(id,str);
        	str='';
	}//end content_wires
}// end writeContentWires

function writeContentStop(id)
{
	var rc;
	var str='';
	var testStop = false;
	
	if (id == 'content_stop'){
		rc = showMenuItem('stop');
		if (rc == '1'){
			testStop = true;
		}
		if (testStop){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Stop Payment<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Request stop payments on a single check or check range, or view the history of past stop payments.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/stop_payment\/single_check.html" class="default">';
			str+='Single check stop payment request<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/stop_payment\/history.html" class="default">Stop payment history<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/stop_payment\/multiple_check.html" class="default">';
			str+='Multiple check stop payment request<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testStop
	}//end content_stop
}// end writeContentStop	
	
function writeContentPP(id)
{
	var rc;
	var str='';
	var testPP = false;
	
	if (id == 'content_pp'){
		rc = showMenuItem('opositive');
		if (rc == '1'){
			testPP = true;
		}
		if (testPP){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Positive Pay<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View exception reports and histories.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/positive_pay.old\/exceptions.html" class="default">';
			str+='Positive pay exceptions<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/positive_pay.old\/history.html" class="default">Positive pay history<\/a>';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testPP
	}//end content_pp
}// end writeContentPP
	
function writeContentEnhPP(id)
{
	var rc;
	var str='';
	var testEnhPP = false;
	
	if (id == 'content_enhpp'){
		rc = showMenuItem('positive');
		if (rc == '1'){
			testEnhPP = true;
		}
		if (testEnhPP){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Enhanced Positive Pay<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Examine questionable checks online and determine check status (pay or reject).';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/positive_pay\/except.html" class="default">';
			str+='Positive pay exceptions manager<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/positive_pay\/decision.html" class="default">Positive pay decisions report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/positive_pay\/entry.html" class="default">';
			str+='Positive pay issue entry<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/positive_pay\/outstand.html" class="default">Positive pay outstanding issues report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/positive_pay\/import.html" class="default">';
			str+='Positive pay issue file import<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/positive_pay\/stale.html" class="default">Positive pay stale issues report<\/a>';
			str+='<\/td><\/tr>';
			str+='<tr><td width="15px" align="left" nowrap>&nbsp;</td>';
			str+='<td align="left" width="40%" nowrap><a href="../positive_pay/update.html" class="default">';
			str+='Positive pay update issue</a></td><td>&nbsp;</td></tr><tr><td colspan="3">&nbsp;</td></tr>';
			str+='<tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testEnhPP
	}//end content_enhpp
}// end writeContentEnhPP
	
function writeContentFAR(id)
{
	var rc;
	var str='';
	var testFAR = false;
	
	if (id == 'content_far'){
		rc = showMenuItem('fullrecon');
		if (rc == '1'){
			testFAR = true;
		}
		if (testFAR){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Full Account Reconciliation<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View account reconciliation reports for account balancing.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/acct_recon\/entry.html" class="default">';
			str+='Account recon issue manual entry<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/acct_recon\/full_statement.html" class="default">Account recon statement report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/acct_recon\/import.html" class="default">';
			str+='Account recon issue file import<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/acct_recon\/full_activity.html" class="default">Account recon activity report<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/acct_recon\/update.html" class="default">';
			str+='Account recon update issue<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testFAR
	}//end content_far
}// end writeContentFAR
	
function writeContentPAR(id)
{
	var rc;
	var str='';
	var testPAR = false;
	
	if (id == 'content_par'){
		rc = showMenuItem('partrecon');
		if (rc == '1'){
			testPAR = true;
		}
		if (testPAR){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Partial Account Reconciliation<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View account reconciliation reports for account balancing.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/acct_recon\/part_statement.html" class="default">';
			str+='Account recon statement report<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/acct_recon\/part_activity.html" class="default">Account recon activity report<\/a>';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testPAR
	}//end content_par
}// end writeContentPAR
	
function writeContentDAR(id)
{
	var rc;
	var str='';
	var testDAR = false;
	
	if (id == 'content_dar'){
		rc = showMenuItem('deprecon');
		if (rc == '1'){
			testDAR = true;
		}
		if (testDAR){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Deposit Reconciliation<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View account reconciliation reports for account balancing.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/acct_recon\/dep_statement.html" class="default">';
			str+='Deposit recon statement report<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/acct_recon\/dep_activity.html" class="default">Deposit recon activity report<\/a>';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testDAR
	}//end content_dar
}// end writeContentDAR
	
function writeContentChk(id)
{
	var rc,rc1,rc2;
	var str='';
	var testChk = false;
	
	if (id == 'content_chk'){
		rc = showMenuItem('chkreorder');
		if (rc == '1'){
			rc1 = showMenuItem('account');
			rc2 = showMenuItem('reporting');
			if ((rc1 == '1') || (rc2 == '1')){
				testChk = true;
			}
		}
		if (testChk){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Check Reorder<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Launch or link to the check vendor application to complete check and deposit slip orders.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="40%" nowrap><a href="..\/check_reorder\/reorder.html" class="default">';
			str+='Order checks/deposit slips<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testChk
	}//end content_chk
}// end writeContentChk
	
function writeContentRDC(id)
{
	var rc;
	var str='';
	var testRDC = false;
	
	if (id == 'content_rdc'){
		rc = showMenuItem('capturerdc');
		if (rc == '1'){
			testRDC = true;
		}
		if (testRDC){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left"><a name="RDC">Remote Deposit Capture</a><br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Access remote deposit capture system to deposit checks.';
			str+='<\/span><\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testRDC
	}//end content_rdc
}// end writeContentRDC

function checkRDC(id)
{
	var check;
	var temp;
	
	check = showMenuItem('capturerdc');
	if (check == '0'){
		temp = document.getElementById(id);
		temp.style.display = 'none';
		}
}//end checkRDC

function writeContentComm(id)
{
	var rc;
	var str='';
	var testComm = false;
	
	if (id == 'content_comm'){		
	   	testComm = true;
			
		if (testComm){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Communications<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='View mail and alert messages, send a message, retrieve bank forms and documents, and manage alerts.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/customer_support\/received.html" class="default">';
			str+='View received mail and alerts<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/customer_support\/send_message.html" class="default">Contact us<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/customer_support\/sent.html" class="default">';
			str+='View sent mail<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/customer_support\/download.html" class="default">Download documents<\/a>';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testComm
	}//end content_comm
}// end writeContentComm
	
function writeContentCoAdmin(id)
{
	var rc;
	var str='';
	var testCoAdm = false;
	
	if (id == 'content_coadmin'){		
		rc = showMenuItem('admin');
		if (rc == '1'){
			testCoAdm = true;
		}
		if (testCoAdm){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Company Administration<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Perform company administration activities.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/administration\/user_admin.html" class="default">';
			str+='User administration<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/administration\/approvals_admin.html" class="default">Approvals administration<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/administration\/account_admin.html" class="default">';
			str+='Account administration<\/a><\/td><td align="left" width="100%" nowrap>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testCoAdm
	}//end content_coadmin
}// end writeContentCoAdmin
	
function writeContentSelfAdmin(id)
{
	var rc;
	var str='';
	var testSelfAdm = false;
	
	if (id == 'content_selfadmin'){		
	   	testSelfAdm = true;
			
		if (testSelfAdm){
			str+='<table cellpadding="0" cellspacing="4" border="0" width="100%"><tr>';
			str+='<td class="subheader" colspan="3" align="left">Self Administration<br>';
			str+='<hr style="width:100%;margin-top: -3px;" \/><span class="message_detail">';
			str+='Perform self administrative activities.';
			str+='<\/span><\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/customer_support\/change_password.html" class="default">';
			str+='Change password<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/customer_support\/favorites.html" class="default">Manage favorites<\/a>';
			str+='<\/td><\/tr><tr><td width="15px" align="left" nowrap>&nbsp;<\/td>';
			str+='<td align="left" width="30%" nowrap><a href="..\/customer_support\/personal_pref.html" class="default">';
			str+='Personal preferences<\/a><\/td><td align="left" width="100%" nowrap>';
			str+='<a href="..\/customer_support\/activity.html" class="default">View user activity report<\/a>';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testSelfAdm
	}//end content_selfadmin
}// end writeContentSelfAdmin