// whole form check

var error = String

function checkProfileValidation(theForm) {
    var why = "";
	why += checkFavPlayer(theForm.favourite_player.selectedIndex);
	if (why != "") {
		alert("You didn't choose your favourite player from the drop-down list.\n");
		return false; 
	}
return true;
};
function checkFavPlayer(choice) {
    var error = "";
    if (choice == 0) {
       error = "error";
    }    
return error;
};