// JavaScript Document
	function validateForm()
	{
	// Create a reference to the listUnits dropdown
	var formField = document.frmSubscribe.listUnits;
	
	// See if the user typed anything in the listUnits dropdown
	if (formField.value == '')
		{
		 // If not, display error message and exit
		  alert ('Please select your unit');
		  formField.focus();
		  return false;
		}
	
	var confirmPDU = document.frmSubscribe.pdu_number;
	
	// See if the user typed anything in the confirm_password text box
	if (confirmPDU.value == '')
		{
		 // If not, display error message and exit
		  alert ('Please enter your PDU number');
		  formField.focus();
		  return false;
		}
	
	// See if the register_password text box matches the confirm_password text box
	if (formField.value != confirmPDU.value)
		{
		 // If not, display error message and exit
		  alert ('Incorrect PDU number');
		  confirmPDU.focus();
		  return false;
		}
	
	// Create a reference to the author textbox
	var formField = document.frmSubscribe.author;
	
	// See if the user typed anything in the author text box
	if (formField.value == '')
		{
		 // If not, display error message and exit
		  alert ('Please enter your name');
		  formField.focus();
		  return false;
		}
	
	// Create a reference to the register_username textbox
	var formField = document.frmSubscribe.register_username;
	
	// See if the user typed anything in the register_username text box
	if (formField.value == '')
		{
		 // If not, display error message and exit
		  alert ('Please enter your email address');
		  formField.focus();
		  return false;
		}
	
	// Create a reference to the register_password textbox
	var formField = document.frmSubscribe.register_password;
	
	// See if the user typed anything in the register_password text box
	if (formField.value == '')
		{
		 // If not, display error message and exit
		  alert ('Please enter a password');
		  formField.focus();
		  return false;
		}
	
	var confirmPassword = document.frmSubscribe.confirm_password;
	
	// See if the user typed anything in the confirm_password text box
	if (confirmPassword.value == '')
		{
		 // If not, display error message and exit
		  alert ('Please re-type your password');
		  formField.focus();
		  return false;
		}
	
	// See if the register_password text box matches the confirm_password text box
	if (formField.value != confirmPassword.value)
		{
		 // If not, display error message and exit
		  alert ('Your passwords do not match - please try again');
		  confirmPassword.focus();
		  return false;
		}
	
	
	
	// If there are no errors we can submit the form
	return true;
	}

