    function RW_Forms_Set(Forms_ID) {
        var d = new Date();
        var Rich_Web_Contact_Form_DatePicker_Format = jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_DatePicker_Format`).val();
        var Rich_Web_Contact_Form_DatePicker_Months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
        var Rich_Web_Contact_Form_DatePicker_Current = jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_DatePicker_Current`).val();
        var Rich_Web_Contact_Form_TimePicker_Current = jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_TimePicker_Current`).val();
        if (Rich_Web_Contact_Form_DatePicker_Current == 'current') {
            if (parseInt(parseInt(d.getMonth()) + 1) < 10) {
                var dgetMonth = '0' + parseInt(parseInt(d.getMonth()) + 1);
            } else {
                var dgetMonth = parseInt(parseInt(d.getMonth()) + 1);
            }
            if (d.getDate() < 10) {
                var dgetDate = '0' + d.getDate();
            } else {
                var dgetDate = d.getDate();
            }
            if (Rich_Web_Contact_Form_DatePicker_Format == 'yy-mm-dd') {
                var DatePicker_Rich_Web = d.getFullYear() + '-' + dgetMonth + '-' + dgetDate;
            } else if (Rich_Web_Contact_Form_DatePicker_Format == 'yy MM dd') {
                var DatePicker_Rich_Web = d.getFullYear() + ' ' + Rich_Web_Contact_Form_DatePicker_Months[d.getMonth()] + ' ' + dgetDate;
            } else if (Rich_Web_Contact_Form_DatePicker_Format == 'dd-mm-yy') {
                var DatePicker_Rich_Web = dgetDate + '-' + dgetMonth + '-' + d.getFullYear();
            } else if (Rich_Web_Contact_Form_DatePicker_Format == 'dd MM yy') {
                var DatePicker_Rich_Web = dgetDate + ' ' + Rich_Web_Contact_Form_DatePicker_Months[d.getMonth()] + ' ' + d.getFullYear();
            } else if (Rich_Web_Contact_Form_DatePicker_Format == 'mm-dd-yy') {
                var DatePicker_Rich_Web = dgetMonth + '-' + dgetDate + '-' + d.getFullYear();
            } else if (Rich_Web_Contact_Form_DatePicker_Format == 'MM dd, yy') {
                var DatePicker_Rich_Web = Rich_Web_Contact_Form_DatePicker_Months[d.getMonth()] + ' ' + dgetDate + ', ' + d.getFullYear();
            }
        }
        if (Rich_Web_Contact_Form_TimePicker_Current == 'current') {
            if (d.getHours() < 10) {
                dgetHours = '0' + d.getHours();
            } else {
                dgetHours = d.getHours();
            }
            if (d.getMinutes() < 10) {
                dgetMinutes = '0' + d.getMinutes();
            } else {
                dgetMinutes = d.getMinutes();
            }
            jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_TimePicker`).val(dgetHours + ':' + dgetMinutes);
        }
        jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_DataPicker`).val(DatePicker_Rich_Web);
        jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_DataPicker`).datepicker({ dateFormat: Rich_Web_Contact_Form_DatePicker_Format });
        jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_Phone`).intlTelInput({
            allowDropdown: true,
            autoHideDialCode: true,
            autoPlaceholder: "off",
            nationalMode: true,
            numberType: "MOBILE",
            separateDialCode: true,
        });
        jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_Country`).countrySelect({});
        jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_Media_Div`).click(function() {
            var Rich_Web_Contact_Form_MediaID = jQuery(this).find('input[type=file]').attr('id');
            var Zint = setInterval(function() {
                var code = jQuery('#' + Rich_Web_Contact_Form_MediaID);
                if (code.val()) {
                    jQuery('#' + Rich_Web_Contact_Form_MediaID + '_div').html(code.val());
                    clearInterval(Zint);
                }
            }, 300);
        })
    }

    function Rich_Web_Forms_Check_Privacy(Forms_ID, Empty_Text) {
        var rw_cf_privacy_requriement = jQuery(`form#Rich_Web_Forms_Form_${Forms_ID} .Rich_Web_Contact_Form_Privacy_Required`).val();
        var rw_form_privacy = 'checked';
        if (rw_cf_privacy_requriement == 'noprivacy' || rw_cf_privacy_requriement == '') {
            rw_form_privacy = 'checked';
        } else if (rw_cf_privacy_requriement == 'required') {
            if (jQuery(`#Rich_Web_Contact_Form_Privacy_${Forms_ID}`).prop("checked")) {
                rw_form_privacy = 'checked';
                jQuery(`#Rich_Web_Contact_Form_Privacy_${Forms_ID}_Span`).removeClass('Rich_Web_Contact_Form_Span_Error');
                jQuery(`#Rich_Web_Contact_Form_Privacy_${Forms_ID}_Span`).html('');
            } else {
                jQuery(`#Rich_Web_Contact_Form_Privacy_${Forms_ID}_Span`).addClass('Rich_Web_Contact_Form_Span_Error');
                jQuery(`#Rich_Web_Contact_Form_Privacy_${Forms_ID}_Span`).html(Empty_Text);
                rw_form_privacy = 'nochecked';
            }
        }
        return rw_form_privacy;
    }

    function isValidEmailAddress(emailAddress) {
        var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i);
        return pattern.test(emailAddress);
    }