function spawntopfivewindow() { return; }
function setonclickmethods() { fixLinks();return; }

String.prototype.insert = function(pos, msg)
{
	if (pos > this.length) pos = this.length;
	if (pos < 0) return this;
	return this.substr(0, pos) + msg + this.substr(pos);
}

function alignNumericTds()
{
	var tdNums = document.getElementsByTagName("td");

	for (var i = 0; i < tdNums.length; i++) {
		var tdNum = tdNums[i];

		if (tdNum.className && tdNum.className == "num") {
			var num = "" + tdNum.firstChild.nodeValue, pos;

			if (num.indexOf(",") != -1) continue;
			for (pos = num.length - 3; pos > 0; pos -= 3) num = num.insert(pos, ",");
			tdNum.firstChild.nodeValue = num;
		}
	}
}

function fixLinks()
{
	for (var i = 0; i < document.links.length; i++)
		document.links[i].href = document.links[i].href.replace(/http.*http/, "http");
}
