function buildTableFooter(width,bgColor){
	var str="";
	var tabposition = 0;
	var remainder = 0;
	var balance = 0;
	var total = 0;
	remainder = (width % 4);
	tabposition = (width-remainder)/4; 
	balance = (width - (tabposition + 19));
	
//	str += '<TABLE width=' + width + ' cellspacing=0 cellpadding=0 border=0>';
//	str += '<tr>';
//	str += '	<td>';
	str += '		<TABLE width=' + width + ' cellspacing=0 cellpadding=0 border=0>';
	str += '			<tr>';
	str += '				<TD width=' + tabposition + ' height=1 bgcolor="#99A9C4"><IMG src="/common/img/s.gif" width=' + tabposition + ' height=1></TD>';
	str += '				<td width=18 height=15 rowspan=3 bgcolor="'+bgColor+'"><IMG src="/common/img/tbl_btm.gif" width=18 height=15></td>';
	str += '				<TD width=' + balance + ' bgcolor="#ffffff"><IMG src="/common/img/s.gif" width=' + balance + ' height=1></TD>';
	str += '				<TD width=1 rowspan=3 bgcolor="#99A9C4"><IMG src="/common/img/s.gif" width=1 height=15></TD>';
	str += '			</tr>';
	str += '			<tr ' + (bgColor?('bgcolor="'+bgColor+'"'):"") +'>';
	str += '				<TD width=' + tabposition + ' rowspan=2><IMG src="/common/img/s.gif" width=' + tabposition + ' height=14></TD>';
	str += '				<TD width=' + balance + ' bgcolor="#ffffff"><IMG src="/common/img/s.gif" width=1 height=13></TD>';
	str += '			</tr>';
	str += '			<tr>';
	str += '				<TD width=' + balance + ' height=1 bgcolor="#99A9C4"><IMG src="/common/img/s.gif" width=' + balance + ' height=1></TD>';
	str += '			</tr>';
	str += '		</table>';
//	str += '	</td>';
//	str += '</tr>';			
//	str += '</TABLE>';
	return str;
}

