function CSignup(strForm)
{
    // Class variables
   	var m_objForm = eval(strForm);								///< Contains the reference to the form object
	var m_strForm = strForm;									///< Contains the form name as a string - used for eval expressions

    // Set up the function calls in the class
    this.checkRegistrationForm = checkRegistrationForm;
    this.doDelete = doDelete;
    this.doExport = doExport;

    /**
	* checkRegistrationForm; This function checks that the data in the registration form is valid
	*
	* @return void
	*/
	function checkRegistrationForm() {
    	// Check the first name field
    	if (!objUtils.checkText(m_objForm.first_name, 'Please enter your first name')) {
        	// Indicate the error
        	return false;
        }
    	// Check the last name field
    	if (!objUtils.checkText(m_objForm.last_name, 'Please enter your last name')) {
        	// Indicate the error
        	return false;
        }
    	// Check the email address
    	if (!objUtils.checkEmailAddress(m_objForm.email_address, 'Please enter your email address')) {
        	// Indicate the error
        	return false;
        }
    	// Check the phone number field
    	if (!objUtils.checkText(m_objForm.phone_number, 'Please enter your phone number')) {
        	// Indicate the error
        	return false;
        }
    	// Check the city field
    	if (!objUtils.checkText(m_objForm.city, 'Please enter your city')) {
        	// Indicate the error
        	return false;
        }
        // Check the state field
    	if (!objUtils.checkText(m_objForm.state, 'Please enter your state')) {
        	// Indicate the error
        	return false;
        }
        // Check the country field
    	if (!objUtils.checkSelect(m_objForm.country, 'Please select your country')) {
        	// Indicate the error
        	return false;
        }
        // Check the verification field
    	if (!objUtils.checkText(m_objForm.captcha_verification, 'Please enter the verification value')) {
        	// Indicate the error
        	return false;
        }       
		// Success
		return true;
	}
	
	/**
	* checkPreferencesForm; This function checks that the data in the password form is valid
	*
	* @return void
	*/
	function checkPreferencesForm() {
    	// Check the first name field
    	if (!objUtils.checkPassword(m_objForm.password, m_objForm.password_confirm, 'Please ensure that your passwords match.')) {
        	// Indicate the error
        	return false;
        }
		// Success
		return true;
	}
	
	/**
	* doDelete; This function sets the action to delete the record
	*
	* @return void
	*/
	function doDelete() {
		// Set the action
		m_objForm.form_action.value = 'delete';
		// Submit the form
		m_objForm.submit();
	}
	
	/**
	* doExport; This function sets the action to export the selected records
	*
	* @return void
	*/
	function doExport() {
		// Set the action
		m_objForm.form_action.value = 'export';
		// Submit the form
		m_objForm.submit();
	}
}
