function SubmitRegister() {
	if (signup.name.value == "") {
		signup.name.focus();
		alert("You need to fill in your full name.");
	} else if (signup.phone.value == "") {
		signup.phone.focus();
		alert("You need to fill in your phone number.");
	} else if (signup.email.value == "") {
		signup.email.focus();
		alert("You need to fill in your e-mail address.");
	} else if (signup.username.value == "") {
		signup.username.focus();
		alert("You need to fill in your desired username.");
	} else if (signup.password1.value == "") {
		signup.password1.focus();
		alert("You need to fill in your desired password.");
	} else if (signup.password2.value == "") {
		signup.password2.focus();
		alert("You need to repeat your desired password.");
	} else if (signup.password2.value != signup.password1.value)  {
		signup.password2.focus();
		alert("Your first password does not match your second password.");
	} else if (signup.ccnumber.value == "") {
		signup.ccnumber.focus();
		alert("You need to enter your credit card number.");
	} else if (signup.expmnth.value == "") {
		signup.expmnth.focus();
		alert("You need to select the expiration month.");
	} else if (signup.street.value == "") {
		signup.street.focus();
		alert("You need to fill in your street address.");
	} else if (signup.zip.value == "") {
		signup.zip.focus();
		alert("You need to fill in your zip code.");
	} else {
		signup.submit();
	}

}

function PhoneBook(book) {
	if (book.selectedIndex != 0) {
		var id = book.value;
		window.location = "/phonebook.php?id=" + id + "";
	}
}
