function AddVotes() {
	hide('AddVotePanel');
	hide('AddVotePanel2');
	show('AddVoteLoading');
	
	GirlInc.HottieOfTheMonth.AddVote(parseFloat(document.forms[0].DropRate.options[document.forms[0].DropRate.selectedIndex].text),parseFloat(document.getElementById("HottieID").value),CallAddVotes);
}

function CallAddVotes(result) {
	hide('AddVotePanel');
	show('AddVotePanel2');
	hide('AddVoteLoading');
	document.getElementById("Display").innerHTML = result.value +"/10";
	
}

function AddComment()
{
	hide("CommentsPanel");
	hide("CommentsPanel2");
	show("Loading");
	GirlInc.HottieOfTheMonth.AddComment(document.getElementById("Comment").value,parseFloat(document.getElementById("HottieID").value),CallAddComment);
}

function CallAddComment(result)
{
	hide("Loading")
	if(result.value == 'True')
	{
		hide("CommentsPanel")
		show("CommentsPanel2");
	}
	else {
		show("CommentsPanel");
		hide("CommentsPanel2");
		alert("We aplogise for this error: "+ result.value)
	}
}

function ValidateData() {
   var CanSubmit = false;
   var errormessage = "Please make sure that you have filled in the following fields before clicking Send:\n\n"

   // Check to make sure that the full name field is not empty.
   CanSubmit = ForceEntry(document.forms[0].Comment);
   if (CanSubmit == false) 
	{
		errormessage += "What do you want to say?\n";
	}
   // Check to make sure ranking is between 1 and 10
   if (errormessage == 'Please make sure that you have filled in the following fields before clicking Send:\n\n')
   {
	return true;
   }
   else 
   {
	alert(errormessage)
	return false;
   }
}