
	if (window.ColdFusion) ColdFusion.required['txtEmail']=true;



	if (window.ColdFusion) ColdFusion.required['txtEmail2']=true;



	if (window.ColdFusion) ColdFusion.required['txtFName']=true;



	if (window.ColdFusion) ColdFusion.required['txtLName']=true;



	if (window.ColdFusion) ColdFusion.required['txtAddress1']=true;



	if (window.ColdFusion) ColdFusion.required['txtCity']=true;



	if (window.ColdFusion) ColdFusion.required['txtState']=true;



	if (window.ColdFusion) ColdFusion.required['txtZip']=true;



	if (window.ColdFusion) ColdFusion.required['txtPhone1']=true;



	if (window.ColdFusion) ColdFusion.required['txtPhone2']=true;



	if (window.ColdFusion) ColdFusion.required['txtPhone3']=true;



    _CF_checkfrmRegistration = function(_CF_this)
    {
        //reset on submit
        _CF_error_exists = false;
        _CF_error_messages = new Array();
        _CF_error_fields = new Object();
        _CF_FirstErrorField = null;

        //form element txtEmail required check
        if( _CF_hasValue(_CF_this['txtEmail'], "TEXT", false ) )
        {
            //form element txtEmail 'EMAIL' validation checks
            if (!_CF_checkEmail(_CF_this['txtEmail'].value, true))
            {
                _CF_onError(_CF_this, "txtEmail", _CF_this['txtEmail'].value, "Please enter a Valid Email Address.");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "txtEmail", _CF_this['txtEmail'].value, "Please enter a Valid Email Address.");
            _CF_error_exists = true;
        }

        //form element txtEmail2 required check
        if( _CF_hasValue(_CF_this['txtEmail2'], "TEXT", false ) )
        {
            //form element txtEmail2 'EMAIL' validation checks
            if (!_CF_checkEmail(_CF_this['txtEmail2'].value, true))
            {
                _CF_onError(_CF_this, "txtEmail2", _CF_this['txtEmail2'].value, "Please ensure both email addresses match.");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "txtEmail2", _CF_this['txtEmail2'].value, "Please ensure both email addresses match.");
            _CF_error_exists = true;
        }

        //form element txtFName required check
        if( !_CF_hasValue(_CF_this['txtFName'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "txtFName", _CF_this['txtFName'].value, "Please enter a First Name.");
            _CF_error_exists = true;
        }

        //form element txtLName required check
        if( !_CF_hasValue(_CF_this['txtLName'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "txtLName", _CF_this['txtLName'].value, "Please enter a Last Name.");
            _CF_error_exists = true;
        }

        //form element txtAddress1 required check
        if( !_CF_hasValue(_CF_this['txtAddress1'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "txtAddress1", _CF_this['txtAddress1'].value, "Please enter an Address.");
            _CF_error_exists = true;
        }

        //form element txtCity required check
        if( !_CF_hasValue(_CF_this['txtCity'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "txtCity", _CF_this['txtCity'].value, "Please enter a City.");
            _CF_error_exists = true;
        }

        //form element txtState required check
        if( !_CF_hasValue(_CF_this['txtState'], "SELECT", false ) )
        {
            _CF_onError(_CF_this, "txtState", _CF_this['txtState'].value, "Please enter a State.");
            _CF_error_exists = true;
        }

        //form element txtZip required check
        if( !_CF_hasValue(_CF_this['txtZip'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "txtZip", _CF_this['txtZip'].value, "Please enter a Zip.");
            _CF_error_exists = true;
        }

        //form element txtPhone1 required check
        if( _CF_hasValue(_CF_this['txtPhone1'], "TEXT", false ) )
        {
            //form element txtPhone1 'RANGE' validation checks
            if  (!_CF_checkrange(_CF_this['txtPhone1'].value, 100.0,999.0, true))
            {
                _CF_onError(_CF_this, "txtPhone1", _CF_this['txtPhone1'].value, "Please enter your Telephone's Area Code");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "txtPhone1", _CF_this['txtPhone1'].value, "Please enter your Telephone's Area Code");
            _CF_error_exists = true;
        }

        //form element txtPhone2 required check
        if( _CF_hasValue(_CF_this['txtPhone2'], "TEXT", false ) )
        {
            //form element txtPhone2 'RANGE' validation checks
            if  (!_CF_checkrange(_CF_this['txtPhone2'].value, 100.0,999.0, true))
            {
                _CF_onError(_CF_this, "txtPhone2", _CF_this['txtPhone2'].value, "Please enter a Home Telephone.");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "txtPhone2", _CF_this['txtPhone2'].value, "Please enter a Home Telephone.");
            _CF_error_exists = true;
        }

        //form element txtPhone3 required check
        if( _CF_hasValue(_CF_this['txtPhone3'], "TEXT", false ) )
        {
            //form element txtPhone3 'REGULAR_EXPRESSION' validation checks
            if (!_CF_checkregex(_CF_this['txtPhone3'].value, /[0-9][0-9][0-9][0-9]/, true))
            {
                _CF_onError(_CF_this, "txtPhone3", _CF_this['txtPhone3'].value, "Please enter a Home Telephone.");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "txtPhone3", _CF_this['txtPhone3'].value, "Please enter a Home Telephone.");
            _CF_error_exists = true;
        }


        //display error messages and return success
        if( _CF_error_exists )
        {
            if( _CF_error_messages.length > 0 )
            {
                // show alert() message
                _CF_onErrorAlert(_CF_error_messages);
                // set focus to first form error, if the field supports js focus().
                if( _CF_this[_CF_FirstErrorField].type == "text" )
                { _CF_this[_CF_FirstErrorField].focus(); }

            }
            return false;
        }else {
            return true;
        }
    }