$(document).ready(function() {

    $("input.customer_register").click(function() {
	var firstName = $(this).parent().parent().children('p:first').children('input').val();
	var lastName  = $(this).parent().parent().children('p:first').next().children('input').val();
	var email     = $("input.email").val();

	if (!firstName || !lastName || !email) {
	    var message = "You did not ener the follwoing required ifnormation:\n";
	    if (!firstName) { message += "First Name\n"; }
	    if (!lastName) { message += "Last Name\n"; }
	    if (!email) { message += "Email Address\n"; }
	    alert(message);
	    return false;
	}
    });

    $("input.player").autocomplete("php/player_auto_complete.php");
    



});
