// JavaScript Document

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">ABA<\/th>';
	str+='<th align="left" scope="col">Account<BR>Number<\/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">ABA<\/th>';
	str+='<th align="left" scope="col">Account<BR>Number<\/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+='<tr class="dgItem1"><td align="left">081203790<\/td>';
	str+='<td align="left" class="inactive_link">*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 writeAccountReporting

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">ABA<\/th>';
	str+='<th align="left" scope="col">Account<BR>Number<\/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">Account<BR>Number<\/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

//function writes loan advance navigation selection
//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

//function writes loan advance content on transmit and history pages
//This function calls the showLoanItem function  
//to determine if the advance content should be displayed
function writeLoanAdvance(id)
{
	var adv = showLoanItem('advance');
		
	if (adv == '1')
		writeAdvance(id);
		
}//end writeLoanAdvance

function writeAdvance(id)
{
	var str='';
	
	if (id == 'loan_adv_request'){
	str+='<table><BR><tr><td class="subHeader">Loan Advance Requests<\/td><\/tr><\/table>';
	str+='<div style="padding:0px 0px 8px 0px;"><hr align="left" width="100%"><\/div>';
	str+='<table cellpadding="0" cellspacing="0" width="90%"><tr><td class="message_detail">';
	str+='<span class="inactive_link">Select all<\/span>&nbsp;&bull;<span class="inactive_link">Deselect all<\/span></td>';
	str+='<td class="input_instructions" align="right">(To delete or view details for a request, ';
	str+='click on the Loan Account.<br>To view details on the note or commitment, click on the Notes ID ';
	str+='or the Commitment ID.)<\/td><\/tr><\/table>';
	str+='<table cellpadding="0" cellspacing="0" width="95%"><tr><td width="100%"><table><tr><td>';
	str+='<table class="dgGrid" cellspacing="0" cellpadding="4" border="0" style="width:100%;border-collapse:collapse;">';
	str+='<tr class="dgHeader" style="white-space:nowrap;"><td align="left" width="30">&nbsp;<\/td>';
	str+='<td align="left" width="120"><u>Loan Account<\/u><\/td><td align="left" width="70"><u>Note ID<\/u><\/td>';
	str+='<td align="left" width="100"><u>Commitment ID<\/u><\/td><td align="left" width="160"><u>Advance To<\/u><\/td>';
	str+='<td align="left" width="100"><u>Advance<\/u><\/td><td align="left" width="120"><u>Approval Status<\/u><\/td><\/tr>';
	str+='<tr class="dgItem0" style="white-space:nowrap;"><td align="left"><input type="checkbox" checked\/><\/td>';
	str+='<td class="inactive_link" align="left">9500000009<\/td><td class="inactive_link" align="left">1<\/td>';
	str+='<td class="inactive_link" align="left">1<\/td><td align="left">2472470 - PRESTIGE<BR>HEALTH ACCOUNT<\/td>';
	str+='<td align="left">$25,000.00<\/td><td>2 of 3 received<br>Ready to transmit<\/td><\/tr>';
	str+='<tr class="dgItem1" style="white-space:nowrap;"><td align="left">&nbsp;<\/td><td align="left">&nbsp;<\/td>';
	str+='<td align="left">&nbsp;<\/td><td align="left">&nbsp;<\/td><td align="right">Total</td>';
	str+='<td align="left">$25,000.00<\/td><td>&nbsp;<\/td><\/tr><\/table><\/td><\/tr><\/table><\/td><\/tr><\/table>';
	
	helpwriteContent(id,str);
	str='';
	}//end advance request

	if (id == 'loan_adv_verify'){
	str+='<table cellpadding="0" cellspacing="0" width="87%"><BR><tr><td class="subHeader">Loan Advance Requests<\/td>';
	str+='<td class="message_detail" align="right"><a href="../loan/transmit.html" class="default">Change selections<\/a>';
	str+='<\/td><\/tr><\/table><div style="padding:0px 0px 8px 0px;"><hr align="left" width="95%"><\/div>';
	str+='<table cellpadding="0" cellspacing="0" width="95%"><tr><td class="input_instructions">';
	str+='(To view details for a request, click on the Loan Account. To view details on the note or commitment, ';
	str+='click on the Notes ID or the Commitment ID.)<\/td><\/tr><\/table>';
	str+='<table cellpadding="0" cellspacing="0" width="95%"><tr><td width="100%"><table><tr><td>';
	str+='<table class="dgGrid" cellspacing="0" cellpadding="4" border="0" style="width:100%;border-collapse:collapse;">';
	str+='<tr class="dgHeader" style="white-space:nowrap;"><td align="left" width="120">Loan Account<\/td>';
	str+='<td align="left" width="70">Commitment ID<\/td><td align="left" width="80">Note ID<\/td>';
	str+='<td align="left" width="180">Advance To<\/td><td align="left" width="100">Advance<\/td>';
	str+='<td align="left" width="120">Approval Status<\/td><\/tr>';
	str+='<tr class="dgItem0" style="white-space:nowrap;"><td class="inactive_link" align="left">9500000009<\/td>';
	str+='<td class="inactive_link" align="left">1<\/td><td class="inactive_link" align="left">1<\/td>';
	str+='<td align="left">2472470 - PRESTIGE<br>HEALTH ACCOUNT<\/td><td align="left">$25,000.00<\/td>';
	str+='<td>2 of 3 received<br>Ready to transmit<\/td><\/tr>';
	str+='<tr class="dgItem1" style="white-space:nowrap;"><td align="left">&nbsp;<\/td>';
	str+='<td align="left">&nbsp;<\/td><td align="left">&nbsp;<\/td><td align="right">Total<\/td>';
	str+='<td align="left">$25,000.00<\/td><td>&nbsp;<\/td><\/tr><\/table><\/td><\/tr><\/table><\/td>\</tr><\/table>';
	
	helpwriteContent(id,str);
	str='';
	}//end advance verify

	if (id == 'loan_adv_confirm'){
	str+='<table><BR><BR><tr><td class="subHeader">Loan Advance Requests<\/td><\/tr><\/table>';
	str+='<table cellpadding="0" cellspacing="0" width="100%"><tr><td width="100%"><table><tr><td>';
	str+='<table class="dgGrid" cellspacing="0" cellpadding="4" border="0" style="width:100%;border-collapse:collapse;">';
	str+='<tr class="dgHeader" style="white-space:nowrap;"><td align="left" width="100">Loan Account<\/td>';
	str+='<td align="left" width="60">Commitment ID<\/td><td align="left" width="40">Note ID<\/td>';
	str+='<td align="left" width="140">Advance To<\/td><td align="left" width="60">Advance<\/td>';
	str+='<td align="left" width="80">Confirmation<\/td><td align="left" width="80">Transmit Status<\/td>';
	str+='<td align="left" width="80">Approval Status<\/td><\/tr>';
	str+='<tr class="dgItem0" style="white-space:nowrap;"><td align="left">9500000009<\/td>';
	str+='<td align="left">1<\/td><td align="left">1<\/td><td align="left">2472470 - PRESTIGE<BR>HEALTH ACCOUNT<\/td>';
	str+='<td align="left">$25,000.00<\/td><td align="left">13938308<\/td><td align="left">Transmitted\</td>';
	str+='<td align="left">3 of 3 received<\/td><\/tr>';
	str+='<tr class="dgItem1" style="white-space:nowrap;"><td align="left">&nbsp;<\/td><td align="left">&nbsp;<\/td>';
	str+='<td align="left">&nbsp;<\/td><td align="right">Total<\/td><td align="left">$25,000.00<\/td>';
	str+='<td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/table>';
	str+='<\/td><\/tr><\/table><\/td><\/tr><tr><td>&nbsp;<\/td><\/tr>\</table>';
	
	helpwriteContent(id,str);
	str='';
	}//end advance confirm

}//end writeAdvance	

//function writes ach navigation selection for collection
//This function calls the showACHItem function  
//to determine if the selection should be displayed
function writeAchNav(id)
{
	var str='';
	var func;
	
	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><\/ul>';
		helpwriteContent(id,str);
		}
	}//end upload nav
	
}//end writeAchNav

//function writes wire navigation selection for freeform
//This function calls the showWireItem function  
//to determine if the selection should be displayed
function writeWireNav(id)
{
	var str='';
	var func = showWireItem('freeform');
	
	if (func == '1'){
		str+='<ul class="leftContentListNav"><li><a href="..\/wire\/free_form_entry.html">Free form wire entry<\/a><\/li><\/ul>';
		helpwriteContent(id,str);
	}//end if freeform
}//end writeWireNav

//functions writeContent...
//These functions will write the <table> tags in the main content area
//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('wiremain');
		if (rc == '1'){
			rc = showWireItem('incoming');
			if (rc == '1'){
				testWire = true;
			}//end both wire and incoming wire reports
		}
		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 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 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="..\/express_transfer\/express_entry.html" class="default">';
			str+='Express transfer entry<\/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 entry<\/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>';
			str+='<a href="..\/book_transfer\/setup.html" class="default">Book transfer setup<\/a>';
			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 entry<\/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;
	var str='';
	var testLoans = false;
	
	if (id == 'content_loans'){
		rc = showMenuItem('loan');
		if (rc == '1'){
			testLoans = true;
		}
		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>';
			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>';
			rc = showLoanItem('advance');
			if (rc == '1'){				
				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 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 wihtout advance
			
			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;
	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('collection');
			if ((rc1 == '1') || (rc2 == '1') || (rc3 == '1') || (rc4 == '1')){
				testACH = true;
			}//end both ACH and at least one type
			rc5 = showACHItem('upload');
			if (rc5 == '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')){
				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 (rc4 == '1'){				
					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\/collect.html" class="default">';
					str+='Collect money<\/a><\/td><td align="left" width="100%" nowrap>';
					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\/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 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>';
					str+='<a href="..\/ach\/upload.html" class="default">ACH file upload<\/a>';
					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>';
				str+='<a href="..\/ach\/upload.html" class="default">ACH file upload<\/a>';
				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')){
				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 (rc4 == '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><a href="..\/file_upload\/audit_report.html" class="default">';
			str+='File upload audit report</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 testUp
	}//end content_upload
}// end writeContentUp	
	
function writeContentWires(id)
{
	var rc;
	var str='';
	var testWires = false;
	
	if (id == 'content_wires'){
		rc = showMenuItem('wiremain');
		if (rc == '1'){
			testWires = true;
		}
		if (testWires){
			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>';
			str+='<td align="left" width="30%" nowrap>';
			rc = showWireItem('freeform');
			if (rc == '1'){
				str+='<a href="..\/wire\/free_form_entry.html" class="default">';
				str+='Free form wire 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>';
				str+='<td align="left" width="30%" nowrap><a href="..\/wire\/rep_entry.html" class="default">';
				str+='Repetitive wire entry</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+='<a href="..\/wire\/rep_entry.html" class="default">';
				str+='Repetitive wire 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>';
				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			
			
			helpwriteContent(id,str);
			str='';
		}//end testWires
	}//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><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 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+='Manage communication 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\/alerts.html" class="default">';
			str+='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\/read_messages.html" class="default">';
			str+='Read messages<\/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 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>&nbsp;';
			str+='<\/td><\/tr><tr><td colspan="3">&nbsp;<\/td><\/tr><\/table>';
			
			helpwriteContent(id,str);
			str='';
		}//end testSelfAdm
	}//end content_selfadmin
}// end writeContentSelfAdmin
	

