var Util = {}

Util.wrapInTable = function (pStrContents, pStyle, pClass) {
	var retValue = "";
	var strStyle = "";
	var strClass = "";
	if (pStyle) {
		strStyle = " style='" + pStyle + "' ";
	}
	if (pClass) {
		strClass = " class='" + pClass + "' ";
	}
	retValue += "<table cellpadding='9px' cellspacing='0px' >";
	retValue += "<tr>";
	retValue += "<td" + strStyle + strClass + ">";
	retValue += "<nobr>";
	retValue += pStrContents;
	retValue += "</nobr>";
	retValue += "</td>";
	retValue += "</tr>";
	retValue += "</table>";
	
//	alert("Util.wrapInTable() returns [" + retValue + "]");
	return retValue;
}

Array.prototype.max = function() {
	var max = this[0];
	var len = this.length;
	for (var i = 1; i < len; i++) if (this[i] > max) max = this[i];
	return max;
}
Array.prototype.min = function() {
	var min = this[0];
	var len = this.length;
	for (var i = 1; i < len; i++) if (this[i] < min) min = this[i];
	return min;
}




















