function  _CF_checkContactForm(_CF_this)
    {
        //reset on submit
        _CF_error_exists = false;
        _CF_error_messages = new Array();
        _CF_error_fields = new Object();
        _CF_FirstErrorField = null;

        //form element FirstName required check
        if( !_CF_hasValue(_CF_this['FirstName'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "FirstName", _CF_this['FirstName'].value, "Please Enter a First Name.");
            _CF_error_exists = true;
        }

        //form element LastName required check
        if( !_CF_hasValue(_CF_this['LastName'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "LastName", _CF_this['LastName'].value, "Please Enter a Last Name.");
            _CF_error_exists = true;
        }

        //form element Company required check
        if( !_CF_hasValue(_CF_this['Company'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "Company", _CF_this['Company'].value, "Please Enter a Company.");
            _CF_error_exists = true;
        }

        //form element Email required check
        if( _CF_hasValue(_CF_this['Email'], "TEXT", false ) )
        {
            //form element Email 'EMAIL' validation checks
            if (!_CF_checkEmail(_CF_this['Email'].value, true))
            {
                _CF_onError(_CF_this, "Email", _CF_this['Email'].value, "Error in Email text.");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "Email", _CF_this['Email'].value, "Please Enter an Email Address.");
            _CF_error_exists = true;
        }

        //form element Address required check
        if( !_CF_hasValue(_CF_this['Address'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "Address", _CF_this['Address'].value, "Please Enter an Address.");
            _CF_error_exists = true;
        }

        //form element City required check
        if( !_CF_hasValue(_CF_this['City'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "City", _CF_this['City'].value, "Please Enter a City.");
            _CF_error_exists = true;
        }

        //form element Zip required check
        if( _CF_hasValue(_CF_this['Zip'], "TEXT", false ) )
        {
            //form element Zip 'ZIPCODE' validation checks
            if (!_CF_checkzip(_CF_this['Zip'].value, true))
            {
                _CF_onError(_CF_this, "Zip", _CF_this['Zip'].value, "Error in Zip text.");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "Zip", _CF_this['Zip'].value, "Please Enter a Zip Code.");
            _CF_error_exists = true;
        }

        //form element Phone required check
        if( _CF_hasValue(_CF_this['Phone'], "TEXT", false ) )
        {
            //form element Phone 'TELEPHONE' validation checks
            if (!_CF_checkphone(_CF_this['Phone'].value, true))
            {
                _CF_onError(_CF_this, "Phone", _CF_this['Phone'].value, "Error in Phone text.");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "Phone", _CF_this['Phone'].value, "Please Enter a Phone Number.");
            _CF_error_exists = true;
        }

        //form element Fax required check
        if( _CF_hasValue(_CF_this['Fax'], "TEXT", false ) )
        {
            //form element Fax 'TELEPHONE' validation checks
            if (!_CF_checkphone(_CF_this['Fax'].value, true))
            {
                _CF_onError(_CF_this, "Fax", _CF_this['Fax'].value, "Error in Fax text.");
                _CF_error_exists = true;
            }

        }else {
            _CF_onError(_CF_this, "Fax", _CF_this['Fax'].value, "Please Enter a Fax Number.");
            _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;
        }
    }