_CF_checkform1 = 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 ml_email required check
        if( !_CF_hasValue(_CF_this['ml_email'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "ml_email", _CF_this['ml_email'].value, "Please enter your email address");
            _CF_error_exists = true;
        }

        //form element ml_firstname required check
        if( !_CF_hasValue(_CF_this['ml_firstname'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "ml_firstname", _CF_this['ml_firstname'].value, "Please enter your first name");
            _CF_error_exists = true;
        }

        //form element ml_lastname required check
        if( !_CF_hasValue(_CF_this['ml_lastname'], "TEXT", false ) )
        {
            _CF_onError(_CF_this, "ml_lastname", _CF_this['ml_lastname'].value, "Please enter your last name");
            _CF_error_exists = true;
        }

        //form element ml_zipcode 'ZIPCODE' validation checks
        if (!_CF_checkzip(_CF_this['ml_zipcode'].value, false))
        {
            _CF_onError(_CF_this, "ml_zipcode", _CF_this['ml_zipcode'].value, "Please enter a valid zip code");
            _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;
        }
    }
