function checkForm(form, type)
{
	var errors = '';
	if (document.getElementById('strFirstName').value.length == 0)
		errors += 'Error: "First name" is not registered.' + "\n";
	if (document.getElementById('strLastName').value.length == 0)
		errors += 'Error: "Last name" is not registered.' + "\n";
	if (document.getElementById('strFirstName').value == document.getElementById('strLastName').value)
		errors += 'Error: First and last name cannot be the same.' + "\n";
	if (document.getElementById('strEmail').value.length == 0)
		errors += 'Error: "E-mail address" is not registered.' + "\n";
	if (type == 'Member' && document.getElementById('strPassword').value.length == 0)
		errors += 'Error: You have not chosen a password.' + "\n";
	if (document.getElementById('security_code').value.length == 0)
		errors += 'Error: You have not entered the authorization code.' + "\n";
	if (errors.length > 0)
	{
		alert(errors + "\n" + 'Please correct the above errors before continuing.');
	}
	else
	{
		xajax_checkSecurityCode(document.getElementById('security_code').value);
	}
	return false;
}

