function FormButtonBar(tableWidth, tableAlign, buttons, buttonsAlign, topSpacing)
{
	this.tableWidth = tableWidth;
	this.tableAlign = tableAlign;

	if (buttons != null)
	{
		this.buttons = buttons;
	}
	else
	{
		this.buttons = new Array();
	}
	
	this.buttonsAlign = buttonsAlign;
	this.topSpacing = topSpacing;
}

FormButtonBar.prototype.display = display;


function display()
{
	document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");

	if (this.topSpacing != null)
	{
		document.write("	<tr>");
		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='" + this.topSpacing + "'></td>");
		document.write("	</tr>");
	}

	document.write("	<tr>");
	document.write("		<td width='100%'>");

	document.write("			<table border='0' cellpadding='0' cellspacing='0' width='" + this.tableWidth + "' align='" + this.tableAlign + "'>");
	document.write("				<tr>");
	document.write("					<td bgcolor='#aaaaaa' colspan='100'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("				</tr>");
	document.write("				<tr>");
	document.write("					<td colspan='100'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='5'></td>");
	document.write("				</tr>");
	document.write("				<tr>");
	document.write("					<td width='100%'>");

	document.write("						<table border='0' cellpadding='0' cellspacing='0' align='" + this.buttonsAlign + "'>");
	document.write("							<tr>");
	document.write("								<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='5' height='1'></td>");

	for (var i = 0; i < this.buttons.length; i++)
	{
		document.write("								<td>");
		this.buttons[i].display();
		document.write("								</td>");
		
		if (i < (this.buttons.length - 1))
		{
			document.write("								<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='5' height='1'></td>");
		}
	}

	document.write("								<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='5' height='1'></td>");
	document.write("							</tr>");
	document.write("						</table>");

	document.write("					</td>");
	document.write("				</tr>");
	document.write("			</table>");

	document.write("		</td>");
	document.write("	</tr>");
	document.write("</table>");
}