function button(image, title, link, target, style)
{
	var bgcolor = "#eeeeee";
	var lborder = "#a5a5a5";
	var dborder = "#555555";
	var shadow = "#bbbbbb";

	if (style == 1)
	{
		bgcolor = "#eeeeee";
		lborder = "#a5a5a5";
		dborder = "#555555";
	}
	else if (style == 2)
	{
		bgcolor = "#d2d2d2";
		lborder = "#ffffff";
		dborder = "#a5a5a5";
	}
	else if (style == 3)
	{
		bgcolor = "#dddddd";
		lborder = "#ffffff";
		dborder = "#a5a5a5";
	}
	else if (style == 4)
	{
		bgcolor = "#dddddd";
		lborder = "#a5a5a5";
		dborder = "#ffffff";
	}
	else if (style == 5)
	{
		bgcolor = "#dddddd";
		lborder = "#ffffff";
		dborder = "#aaaaaa";
	}
	else if (style == 6)
	{
		bgcolor = "#d2d2d2";
		lborder = "#ffffff";
		dborder = "#a5a5a5";
	}
	else if (style == 7)
	{
		bgcolor = "#dddddd";
		lborder = "#ffffff";
		dborder = "#aaaaaa";
		bgcolor = "#eeeeee";
		lborder = "#a5a5a5";
		dborder = "#555555";
	}

	var colSpan = 3;
	
	if ((style != 3) && (style != 4) && (style != 6))
		colSpan += 2;
	if (style != 7)
		colSpan += 2;
		
	document.write("<table border='0' cellpadding='0' cellspacing='0'>");
	document.write(" <tr>");
	document.write("  <td bgcolor='"+lborder+"' height='1' colspan='" + colSpan + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write(" </tr>");
	document.write(" <tr valign='middle'>");
	document.write("  <td bgcolor='"+lborder+"' width='1' height='20'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("  <td bgcolor='"+bgcolor+"' width='5' height='20'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='5' height='1'></td>");

	if ((style != 3) && (style != 4) && (style != 6))
	{
		document.write("  <td bgcolor='"+bgcolor+"' width='16' height='20'><a href='"+link+"' target='"+target+"' alt='"+title+"' onmouseover='window.status=\""+title+"\";return true;' onmouseout='window.status=\"\";return true;'><img src='"+getPath("Project","Design")+"/images/actions/"+image+".gif' alt='"+title+"' border='0' width='16' height='16'></a></td>");
		document.write("  <td bgcolor='"+bgcolor+"' width='5' height='20'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='5' height='1'></td>");
	}

	if (style != 7)
	{
		document.write("  <td bgcolor='"+bgcolor+"' height='20' nowrap><a href='"+link+"' target='"+target+"' onmouseover='window.status=\""+title+"\";return true;' onmouseout='window.status=\"\";return true;' style='text-decoration:none'><span class='buttons'>"+title+"</span></a></td>");
		document.write("  <td bgcolor='"+bgcolor+"' width='5' height='20'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='5' height='1'></td>");
	}

	document.write("  <td bgcolor='"+dborder+"' width='1' height='20'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");

	if ((style != 3) && (style != 4) && (style != 6))
		document.write("  <td bgcolor='"+shadow+"' width='1' height='20'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");

	document.write(" </tr>");
	document.write(" <tr>");
	document.write("  <td bgcolor='"+dborder+"' height='1' colspan='" + colSpan + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	if ((style != 3) && (style != 4) && (style != 6))
		document.write("  <td bgcolor='"+shadow+"' width='1' height='1'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write(" </tr>");

	if ((style != 3) && (style != 4) && (style != 6))
	{
		document.write(" <tr>");
		document.write("  <td></td>");
		document.write("  <td bgcolor='"+shadow+"' height='1' colspan='" + colSpan + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write(" </tr>");
	}

	document.write("</table>");
}


				// This function removes an element specified by its key from an array
				function removeElement(orgArray, elementName)
				{
					// to store the lasting elements
					var newArray = new Array();

					// add each element only if it is not the wanted element
					for (var element in orgArray)
					{
						// it is not the element to delete
						if (element != elementName)
							newArray.push(orgArray[element]);
					}

					// we're done
					return newArray;
				}

				// This function removes a specified value from an array
				function removeValue(orgArray, value)
				{
					// to store the lasting elements
					var newArray = new Array();

					// add each element only if it is not the wanted element
					for (var element in orgArray)
					{
						// it is not the element to delete
						if (orgArray[element] != value)
							newArray.push(orgArray[element]);
					}

					// we're done
					return newArray;
				}
				
				// This function removes an element specified by its key from an array
				function removeElementKeepKey(orgArray, elementName)
				{
					// to store the lasting elements
					var newArray = new Array();

					// add each element only if it is not the wanted element
					for (var element in orgArray)
					{
						// it is not the element to delete
						if (element != elementName)
							newArray[element] = orgArray[element];
					}

					// we're done
					return newArray;
				}

				// This funcion returns if an element specified by its keys is contained
				// in an array.
				function defined(searchArray, elementName)
				{
					// check each element
					for (var element in searchArray)
					{
						// this element is the wanted element
						if (element == elementName)
							return true;
					}

					// we have found nothing
					return false;
				}

var menuElementsCounts = new Array();
				
function generateMenuStart(menuElements, idsPrefix)
{
	if (! idsPrefix)
		idsPrefix = "Menus";

	var menuElementsCount = menuElements.length;
	menuElementsCounts[idsPrefix] = menuElementsCount;

	if (menuElementsCount > 0)
	{
		document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0'>");

		// the top border of the menu elements
		document.write("	<tr>");
		document.write("		<td colspan='3'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("		<td colspan='" + (menuElementsCount * 4 + 1) + "' class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("		<td colspan='4'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("	</tr>");

		// the menu elements
		document.write("	<tr>");
		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='20'></td>");
		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='4' height='1'></td>");
		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='8' height='1'></td>");
		document.write("		<td class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");

		for (i = 0; i < menuElementsCount; i++)
		{
			document.write("		<td id='" + idsPrefix + "_Menu_" + i + "_LeftSpace'  " + ((menuElements[i][1] == 1) ? "class='menuhead_white_switch'" : "class='menuhead_grey_switch'") + " onclick='activateTable(" + i + ", \"" + idsPrefix + "\")'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='5' height='1'></td>");
			document.write("		<td align='center' width='" + (100 / menuElementsCount) + "%' id='" + idsPrefix + "_Menu_" + i + "_MenuLabel' " + ((menuElements[i][1] == 1) ? "class='menuhead_white_switch'" : "class='menuhead_grey_switch'") + " onclick='activateTable(" + i + ", \"" + idsPrefix + "\")' nowrap>" + menuElements[i][0] + "</td>");
			document.write("		<td id='" + idsPrefix + "_Menu_" + i + "_RightSpace' " + ((menuElements[i][1] == 1) ? "class='menuhead_white_switch'" : "class='menuhead_grey_switch'") + " onclick='activateTable(" + i + ", \"" + idsPrefix + "\")'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='5' height='1'></td>");
			document.write("		<td class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		}

		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='8' height='1'></td>");
		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='4' height='1'></td>");
		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("	</tr>");

		// the seperation between menu elements and menu content
		document.write("	<tr>");
		document.write("		<td colspan='4' class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");

		for (i = 0; i < menuElementsCount; i++)
		{
			document.write("		<td colspan='3' id='" + idsPrefix + "_Menu_" + i + "_Bottom' " + ((menuElements[i][1] == 1) ? "" : "class='menuhead_grey_border'") + "><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
			document.write("		<td colspan='1' class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		}

		document.write("		<td colspan='3' class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("	</tr>");

		// create some space
		document.write("	<tr>");
		document.write("		<td class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='4'></td>");
		document.write("		<td colspan='" + (menuElementsCount * 4 + 5) + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("		<td class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("	</tr>");

		// the menu content row
		document.write("	<tr>");
		document.write("		<td class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("		<td colspan='" + (menuElementsCount * 4 + 3) + "' width='100%'>");
	}
}

function generateMenuEnd(idsPrefix)
{
	var menuElementsCount = 0;

	if (idsPrefix == null)
	{
		for (var key in menuElementsCounts)
		{
			menuElementsCount = menuElementsCounts[key] > menuElementsCount ?
				menuElementsCounts[key] : menuElementsCount;
		}
	}
	else
		menuElementsCount = menuElementsCounts[idsPrefix];

	if (menuElementsCount > 0)
	{
		document.write("	</td>");
		document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("		<td class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("	</tr>");
		document.write("	<tr>");
		document.write("		<td class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='4'></td>");
		document.write("		<td colspan='" + (menuElementsCount * 4 + 5) + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("		<td class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("	</tr>");
		document.write("	<tr>");
		document.write("		<td colspan='" + (menuElementsCount * 4 + 7) + "' class='menuhead_grey_border'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
		document.write("	</tr>");
		document.write("</table>");
	}
}

function activateTable(menuNumber, idsPrefix)
{
	var menuElementsCount = 0;

	if (idsPrefix == null)
	{
		for (var key in menuElementsCounts)
		{
			menuElementsCount = menuElementsCounts[key] > menuElementsCount ?
				menuElementsCounts[key] : menuElementsCount;
		}
	}
	else
		menuElementsCount = menuElementsCounts[idsPrefix];

	for (i = 0; i < menuElementsCount; i++)
	{
		if (menuNumber == i)
		{
			if (navigator.userAgent.toLowerCase().indexOf("msie") != -1)
			{
				document.getElementById(idsPrefix + "_Menu_" + i + "_Table").style.display = "block";
			}
			else
			{
				document.getElementById(idsPrefix + "_Menu_" + i + "_Table").style.display = "table";
			}
			document.getElementById(idsPrefix + "_Menu_" + i + "_LeftSpace").className = "menuhead_white_switch";
			document.getElementById(idsPrefix + "_Menu_" + i + "_MenuLabel").className = "menuhead_white_switch";
			document.getElementById(idsPrefix + "_Menu_" + i + "_RightSpace").className = "menuhead_white_switch";
			document.getElementById(idsPrefix + "_Menu_" + i + "_Bottom").className = "";
		}
		else
		{
			document.getElementById(idsPrefix + "_Menu_" + i + "_Table").style.display = "none";
			document.getElementById(idsPrefix + "_Menu_" + i + "_LeftSpace").className = "menuhead_grey_switch";
			document.getElementById(idsPrefix + "_Menu_" + i + "_MenuLabel").className = "menuhead_grey_switch";
			document.getElementById(idsPrefix + "_Menu_" + i + "_RightSpace").className = "menuhead_grey_switch";
			document.getElementById(idsPrefix + "_Menu_" + i + "_Bottom").className = "menuhead_grey_border";
		}
	}
}


function addHiddenFieldToForm(formName, fieldName, fieldValue)
{
	var hiddenField = document.createElement("input");
	hiddenField.type = "hidden";
	hiddenField.name = fieldName;
	hiddenField.value = fieldValue;
	document.forms[formName].appendChild(hiddenField);
}

function addInputField(row, position, className, align, fieldName, fieldValue, fieldSize)
{
	// cell with the field
	var cellCell = row.insertCell(position);
	cellCell.align = align;
	cellCell.className = className;

	// create the input field
	var field = document.createElement("input");
	field.type = "text";
	field.name = fieldName;
	field.id = fieldName;
	field.value = fieldValue;
	field.size = fieldSize;
					
	cellCell.appendChild(field);
}

function insertInputField(row, position, fieldName, fieldValue, fieldSize)
{
	// cell with the field
	var cellCell = row.cells[position];

	// create the input field
	var field = document.createElement("input");
	field.type = "text";
	field.name = fieldName;
	field.id = fieldName;
	field.value = fieldValue;
	field.size = fieldSize;
					
	cellCell.appendChild(field);
}

function insertBreak(row, position)
{
	// cell to insert the break in
	var cellCell = row.cells[position];

	// create the break
	var breakElement = document.createElement("br");

	// add the break					
	cellCell.appendChild(breakElement);
}

function addFileUploadField(row, position, className, align, fieldName, fieldValue, fieldSize)
{
	// cell with the field
	var cellCell = row.insertCell(position);
	cellCell.align = align;
	cellCell.className = className;

	// create the input field
	var field = document.createElement("input");
	field.type = "file";
	field.name = fieldName;
	field.id = fieldName;
	field.value = fieldValue;
	field.size = fieldSize;
					
	cellCell.appendChild(field);
}

function addCheckbox(row, position, className, align, fieldName, fieldValue, checked)
{
	// cell with the field
	var cellCell = row.insertCell(position);
	cellCell.align = align;
	cellCell.className = className;

	// create the input field
	var field = document.createElement("input");
	field.type = "checkbox";
	field.name = fieldName;
	field.id = fieldName;
	field.value = fieldValue;
					
	cellCell.appendChild(field);

	// the setting of the checked status works only after adding, no idea why
	if (checked)
		field.checked = true;
}

function addImageField(row, position, className, align, images)
{
	// the cell with the action
	var cellCell = row.insertCell(position);
	cellCell.align = align;
	cellCell.className = className;
	
	for (var nextImageID in images)
	{
		nextImage = images[nextImageID];
	
		var image = document.createElement("img");

		// add the created image to the cell
		cellCell.appendChild(image);

		// add the attributes to the created image
		image.src = nextImage[0];
		image.width = nextImage[1];
		image.height = nextImage[2];
		image.border = nextImage[3];
		image.onclick = nextImage[4];
	}
}

function addSelectionField(row, position, className, align, fieldName, fieldSize, options)
{
	// the cell with the action
	var cellCell = row.insertCell(position);
	cellCell.align = align;
	cellCell.className = className;

	var field = document.createElement("select");
	field.name = fieldName;
	field.id = fieldName;
	field.size = fieldSize;
					
	cellCell.appendChild(field);
	
	for (var nextOptionID in options)
	{
		var nextOption = options[nextOptionID];
	
		var option = document.createElement("option");

		// add the created option to the cell
		field.options.add(option);

		// add the attributes to the created image
		option.value = nextOption[0];
		option.text = nextOption[1];
		option.selected = nextOption[2];
	}
}

function addSelectionOption(selectionField, optionID, optionText, optionSelected)
{
	var option = document.createElement("option");

	// add the created option to the cell
	selectionField.options.add(option);

	// add the attributes to the created image
	option.value = optionID;
	option.text = optionText;
	option.selected = optionSelected;
}

function removeAllSelectionOptions(selectionField)
{
	while (selectionField.options.length > 0)
	{
		selectionField.removeChild(selectionField.options[0]);
	}
}

function addHiddenFieldToElement(element, fieldName, fieldValue)
{
	var hiddenField = document.createElement("input");
	hiddenField.type = "hidden";
	hiddenField.name = fieldName;
	hiddenField.id = fieldName;
	hiddenField.value = fieldValue;
	element.appendChild(hiddenField);
}

function closeWindow()
{
	opener.focus();
	window.close();
}

function printThis()
{
	window.print();
}

function openWindow(url, name, width, height, style)
{
	if (style)
		if (style == 1)
			window.open(url, name, "width=" + width + ", height=" + height + ", menubar=yes, location=no, toolbar=no, resizable=yes, scrollbars=no, status=yes");
		else if (style == 2)
			window.open(url, name, "width=" + width + ", height=" + height + ", menubar=no, location=no, toolbar=no, resizable=no, scrollbars=no, status=no");
	else
		window.open(url, name, "width=" + width + ", height=" + height + ", menubar=yes, location=no, resizable=yes, scrollbars=yes, status=yes");
}

function outputBoxStart(borderClass, titleClass, mainClass)
{
	document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0'>");
	document.write("	<tr>");
	document.write("		<td colspan='4'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='4' height='1'></td>");
	document.write("		<td class='" + borderClass + "' colspan='5' width='100%'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td colspan='4'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='4' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td colspan='2'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='2' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='2' height='1'></td>");
	document.write("		<td class='" + titleClass + "' colspan='5'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td colspan='2'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='2' height='1'></td>");
	document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td colspan='2'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + titleClass + "' colspan='7'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td colspan='2'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='2'></td>");
	document.write("		<td class='" + titleClass + "' colspan='9'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr valign='middle'>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='22'></td>");
	document.write("		<td class='" + titleClass + "' colspan='5'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + titleClass + "' align='left' width='100%'>");
}

function outputBoxMiddle(borderClass, titleClass, mainClass)
{
	document.write("		</td>");
	document.write("		<td class='" + titleClass + "' colspan='5'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='22'></td>");
	document.write("	</tr>");
	document.write("	<tr valign='middle'>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + titleClass + "' colspan='11'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='4'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td class='" + borderClass + "' colspan='13'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr valign='middle'>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + mainClass + "' colspan='4'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='4' height='20'></td>");
	document.write("		<td class='" + mainClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='6' height='20'></td>");
	document.write("		<td class='" + mainClass + "' align='left' width='100%'>");
}

function outputBoxEnd(borderClass, titleClass, mainClass)
{
	document.write("		</td>");
	document.write("		<td class='" + mainClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='6' height='20'></td>");
	document.write("		<td class='" + mainClass + "' colspan='4'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='4' height='20'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='20'></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + mainClass + "' colspan='9'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='2'></td>");
	document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td colspan='2'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + mainClass + "' colspan='7'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td colspan='2'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td colspan='2'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='2' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + mainClass + "' colspan='5'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td class='" + borderClass + "'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='2' height='1'></td>");
	document.write("		<td colspan='2'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='2' height='1'></td>");
	document.write("		<td><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td colspan='4'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='4' height='1'></td>");
	document.write("		<td colspan='5' class='" + borderClass + "' width='100%'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='1' height='1'></td>");
	document.write("		<td colspan='4'><img src='" + getPath("XoomK","Design") + "/images/pix.gif' width='4' height='1'></td>");
	document.write("	</tr>");
	document.write("</table>");
}

function updateFrame(frameName, url)
{
	parent.frames[frameName].location = url;
}