function checkcarddata() {
<!-- Runs a check on the standard form used to authorise and show details of cards as well as redeem and award points. -->
	if (strtoupper(document.createaccount.cardID.value) != "A" && strtoupper(document.createaccount.cardID.value) != "R" && strtoupper(document.createaccount.cardID.value) != "S" && strtoupper(document.createaccount.cardID.value) != "AU" && strtoupper(document.createaccount.cardID.value) != "REG") {
		if ( document.frm_card.cardID.value == "")
		{alert("Please enter a valid card serial number.");
			return false;
		}
		
		
		if ( document.frm_card.points.value == "" )
		{alert("Please enter the number of points required.");
			return false;
		}
	}
	return true;
}



function checkstaffaccount(formname) {
	<!-- Runs a check on the form used to create or edit staff accounts in page module editaccounts.php  -->
	
	if ( document.getElementById(formname).staffID.value == "")
	{alert("Please enter a login ID for this staff member.");
		return false;
	}
	
	
	if ( document.getElementById(formname).password.value == "" )
	{alert("Please enter a password for this staff member.");
		return false;
	}
	
	return true;
}
