function launchSite(url) {
	window.open(url);
}

function getValToHighlight() {
	var val = $('#hgltAmnt').val();
	if (!IsNumeric(val)) {
		alert("Please provide a numeric value!");
		return;
	}
	highlightVals(val*1);
}

function highlightVals(val) {
	$("td").each(function() {
		var splt = $(this).text().split(" ");
		if (splt.length == 3 && splt[1] == "-")
			if (val >= splt[0] && val <= splt[2])
				$(this).next().css({"background-color":"yellow"});
			else
				$(this).next().css({"background-color":"white"});
	});
}

function IsNumeric(sText) {
	if (sText == "") return false;
	var ValidChars = "0123456789";
	var IsNumber = true;
	var Char;
	for (i = 0; i < sText.length && IsNumber == true; i++) {
		Char = sText.charAt(i);
		if (ValidChars.indexOf(Char) == -1) {
			IsNumber = false;
		}
	}
	return IsNumber;
}

$(document).ready(function(){
	if (top.location != self.location) {
		top.location.href = self.location.href;
	}
	if (pageName != "live" && pageName != "hist") {
		document.getElementById("hgltSpn").style.display = "none";
	}
	var trgtDt = new Date();
	trgtDt.setFullYear(2011,11,1);
	var tdyDt = new Date();
	if (trgtDt > tdyDt) {
		// new
	}
});
