function ValidateForm()
{
	var winner_id=document.voting.winner_id
	var fight_rating=document.voting.fight_rating
	var fight_lopsided=document.voting.fight_lopsided
	var away_player_rating=document.voting.away_player_rating
	var home_player_rating=document.voting.home_player_rating
	var fight_end_tko=document.voting.fight_end_tko
	var fight_end_ko=document.voting.fight_end_ko

	if ((fight_end_tko.checked && fight_end_ko.checked))
	{
		alert("A fight cannot end in both a KO and TKO")
		fight_end_ko.focus()
		return false
	}

	if (winner_id.value == "select")
	{
		alert("You must select a winner")
		winner_id.focus()
		return false
	}

	if (fight_rating.value == "select")
	{
		alert("You must give the fight a rating")
		fight_rating.focus()
		return false
	}

	if (fight_lopsided.value == "select")
	{
		alert("You must select how lopsided the fight was")
		fight_lopsided.focus()
		return false
	}
/*
	if (away_player_rating.value == "select")
	{
		alert("You must select a player rating")
		away_player_rating.focus()
		return false
	}

	if (home_player_rating.value == "select")
	{
		alert("You must select a player rating")
		home_player_rating.focus()
		return false
	}
*/
	return true
}

var olduserid = 0;
function showeditform(userid)
{
	if (document.getElementById)
	{
		if (olduserid != 0)
		{
			var editArea = document.getElementById("review" + olduserid);
			var editForm = document.getElementById("editform" + olduserid);
			editArea.style.display = "";
			editForm.style.display = "none";
			document.getElementById("useridreview").value = 0;
		}
		
		if (olduserid != userid)
		{
			var editArea = document.getElementById("review" + userid);
			var editForm = document.getElementById("editform" + userid);
			editArea.style.display = "none";
			editForm.style.display = "";
			document.getElementById("useridreview").value = userid;
			olduserid = userid;
		} 
		else
		{
			olduserid = 0;
		}
	}
}