function validateLogin() {
	var Username = document.getElementById("Username").value;
	var Password = document.getElementById("Password").value;
	
	if (Username == "") {
		alert("Please enter a username.");
		
	} else if (Password == "") {
		alert("Please enter a password.");
		
	} else {
		document.loginForm.submit();
	}
}

// SHOW/HIDE COMMENTS //
function toggleComments() {
	$("#commentsbox").slideToggle("slow");
}

function validateComments () {
	$("#response").html();
	$.ajax({
		type: "POST",
		url: "/assets/p_comments.php",
		data: 	"ProgrammeID=" + document.getElementById("ProgrammeID").value + 
				"&JudgeID=" + document.getElementById("JudgeID").value +
				"&Comment=" + document.getElementById("Comment").value,
		success: function(html){
			$("#response").html(html);
			$("#response").fadeIn("slow");
			$("#response").animate({opacity: 1.0}, 3000);
			$("#response").fadeOut("slow");
		}
	});	
}