
	var ds = "";
	
	function SetHero(id) {
		if (ds == id) { hideHeroList(); return; }
		if (ds != "") return;
		
		showHeroList(id);
	}
	
	function ChooseHero(ic,id) {
		get(ds).src = "Images/Heroes/" + ic + ".gif";
		get(ds+"I").value = id;
		hideHeroList();
	}
	
	function RecommendView(id, hid)
	{	
		hid = get(id+"I").value;
		if (hid == 0) return;

		if (get(id+"R").value == "0")
		{
			get(id+"M").src = "Images/Recommend.gif";
			get(id+"R").value = hid;
		} else
		{
			get(id+"M").src = "Images/Recommend_s.gif";
			get(id+"R").value = "0";
		}
	}
	
	function showHeroList(id) {
		get("HeroList").style.display = "block";
		get(id).className = "R_Cs";
		ds = id;
	}
	function hideHeroList() {
		get("HeroList").style.display = "none";
		get(ds).className = "R_Cso";
		ds = "";
	}
	function submitReport() {
		var hA = ""; var hB = ""; var dA = ""; var dB = "";
		for (i=0; i<5; i++)
		{
			hA += "[" + get("Sentinel_"+i+"I").value + "]";
			hB += "[" + get("Scourge_"+i+"I").value + "]";
			dA += "[" + get("Sentinel_"+i+"R").value + "]";
			dB += "[" + get("Scourge_"+i+"R").value + "]";
		}
		get("SentinelHeroes").value = hA;
		get("ScourgeHeroes").value = hB;
		get("SentinelAdditions").value = dA;
		get("ScourgeAdditions").value = dB;
	}
	
	function JumpTo(url) {
		location.replace(url);
	}
