{"id":597,"date":"2024-11-07T16:28:53","date_gmt":"2024-11-07T16:28:53","guid":{"rendered":"https:\/\/protaxcenter.com\/?page_id=597"},"modified":"2024-11-21T17:23:45","modified_gmt":"2024-11-21T17:23:45","slug":"incorporation-form","status":"publish","type":"page","link":"https:\/\/protaxcenter.com\/ru\/incorporation-form\/","title":{"rendered":"Incorporation form"},"content":{"rendered":"<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\t\t<link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.0.0-beta3\/css\/all.min.css\">\n\t\t<script src=\"https:\/\/www.google.com\/recaptcha\/enterprise.js\" async defer><\/script>\n\t\t<script src=\"https:\/\/www.google.com\/recaptcha\/enterprise.js?render=6LdNMoYqAAAAAOsCXPTyNvrmm_erA79lGVlvEfKh\"><\/script>\n\t\t<title>Corporation Form<\/title>\n\t\t<style>\n    \/* Global Styles *\/\n      * {\n        margin: 0;\n        padding: 0;\n        box-sizing: border-box;\n        line-height: 1.5;\n      }\n\n      html, body {\n        width: 100%;\n        height: 100%;\n        font-family: Arial, sans-serif;\n        background-color: #f9f9f9;\n        color: #333;\n      }\n\n      body {}\n\n      \/* Heading Styles *\/\n      h3, h4 {\n        text-align: center;\n        font-size: 16px;\n      }\n\n      \/* Form Styling *\/\n      form {\n        width: 60%;\n        background: white;\n        border-radius: 10px;\n        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n        padding: 20px;\n      }\n\n      \/* Row Styling *\/\n      .row {\n        padding: 5px;\n        margin-left: 10px;\n      }\n\n      \/* Label Styling *\/\n      label {\n        display: block;\n        font-weight: bold;\n      }\n\n      \/* Input Fields *\/\n      input {\n        width: 100%;\n        padding: 10px !important;\n        border: 1px solid #ccc;\n        border-radius: 4px;\n        font-size: 14px;\n        line-height: 1 !important;\n        min-height: 0 !important;\n      }\n\n      input:focus {\n        border-color: #007BFF;\n        outline: none;\n      }\n\n      input.error {\n        border: 2px solid #dc3545;\n        background-color: #f8d7da;\n      }\n\n      \/* Table Styling *\/\n      table {\n        width: 100%;\n        border-collapse: collapse;\n      }\n\n      .nested-table {\n        margin: 20px 0;\n      }\n\n      .nested-table td {\n        padding: 8px;\n        border: 1px solid #ccc;\n      }\n\n      .nested-table td label {\n        margin: 0;\n      }\n\n      \/* Button Styling *\/\n      button {\n        padding: 10px 15px;\n        background-color: #007BFF;\n        color: white;\n        border: none;\n        border-radius: 34px !important;\n        cursor: pointer;\n        font-size: 16px;\n      }\n\n      submit_button:hover{\n        background-color: #0056b3;\n      }\n      button:hover {\n        background-color: #daa520;\n      }\n\n      \/* Delete Button *\/\n      .delete-btn {\n        background: none;\n        color: black;\n        padding: 5px 10px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        font-size: 14px;\n      }\n\n      .delete-btn:hover {\n        background: none !important;\n      }\n\n      \/* IF_section_header Styling *\/\n      .IF_section_header {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        position: relative;\n        padding: 20px;\n        background: #e6e6e6;\n        margin: 0;\n      }\n\n      .IF_section_header_icon {\n        position: absolute;\n        left: 20px;\n        font-size: 30px;\n      }\n\n      .IF_section_header_title {\n        flex-grow: 1;\n        text-align: center;\n      }\n\n      \/* Error Message Styling *\/\n      .error-message {\n        color: #dc3545;\n        font-size: 12px;\n        margin-top: 5px;\n        font-style: italic;\n      }\n\n      \/* Image Upload Styles *\/\n      .image-upload-container {\n        width: 100%;\n        display: flex;\n        justify-content: center;\n        align-items: center;\n      }\n\n      .image-field {\n        position: relative;\n        width: 100%;\n        height: 100px;\n        border: 1px dashed #ccc;\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        overflow: hidden;\n        cursor: pointer;\n        border-radius: 8px;\n      }\n\n      .upload-btn {\n        position: absolute;\n        background-color: rgba(0, 0, 0, 0.5);\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        font-size: 16px;\n        cursor: pointer;\n        z-index: 10;\n      }\n\n      .preview-img {\n        width: 100%;\n        height: 100%;\n        object-fit: cover;\n        display: none;\n      }\n\n      .image-info {\n        margin-top: 10px;\n      }\n\n      .no_background {\n        background: none;\n      }\n\n      \/* Submit Button Styling *\/\n      .submit_button {\n        padding: 10px 15px;\n        color: white;\n        border: none;\n        border-radius: 5px;\n        font-size: 16px;\n        cursor: pointer;\n      }\n\n      .submit_button:disabled {\n        background-color: #ccc;\n        color: #666;\n        cursor: not-allowed;\n      }\n\n      \/* Form Container *\/\n      .IF_form_container {\n        width: 100%;\n        display: flex;\n        flex-direction: column;\n        justify-content: center;\n        align-items: center;\n        margin: 0;\n      }\n\n      \/* Checkbox Styling *\/\n      .checkbox-label {\n        display: inline-flex;\n        align-items: center;\n        font-size: 14px;\n        margin-right: 10px;\n      }\n\n      #signedCheckbox {\n        margin-right: 8px;\n      }\n\n      \/* Select Box Styling *\/\n      #business-type {\n        width: 100%;\n        padding: 10px;\n        display: flex;\n        flex-direction: row;\n        gap: 20px;\n      }\n\n      #business-type label {\n        display: flex;\n        align-items: center;\n      }\n\n      #business-type input[type=\"radio\"] {\n        margin-right: 8px;\n      }\n\n      .radio_button_label {\n        font-weight: normal;\n      }\n\n      \/* Styling for Select Dropdown *\/\n      .select-wrapper {\n        position: relative;\n        display: inline-block;\n        width: 100%;\n      }\n\n      select {\n        appearance: none;\n        -webkit-appearance: none;\n        -moz-appearance: none;\n        border-radius: 4px;\n        padding: 8px 12px;\n        font-size: 16px;\n        background-color: #fff;\n        color: #333;\n        outline: none;\n        cursor: pointer;\n        width: 100%;\n      }\n\n      .select-wrapper::after {\n        content: '';\n        position: absolute;\n        right: 10px;\n        top: 50%;\n        transform: translateY(-50%);\n        width: 12px;\n        height: 7px;\n        background: url('https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/4.7.0\/css\/font-awesome.min.css') no-repeat center center;\n        background-size: contain;\n        pointer-events: none;\n      }\n\n      \/* Hide default dropdown arrow in IE *\/\n      select::-ms-expand {\n        display: none;\n      }\n\n      \/* Corporate Info Section *\/\n      .corporate-info {\n        display: flex;\n        flex-direction: row;\n        margin-bottom: 20px;\n      }\n\n      .section_line {\n        border-radius: 2px;\n        width: 6px;\n        background: #e6e6e6;\n      }\n\n      .left_panel {\n        width: 100%;\n      }\n\n      .section_header {\n        margin-bottom: 20px;\n      }\n\n      .section_title {\n        color: #007BFF !important;\n        color: #daa520 !important;\n        font-size: 24px;\n        font-weight: 700;\n      }\n\n      #Shareholders, .AddAdditionalOfficers {\n        margin-left: 15px;\n      }\n\n      .submit_section_input{\n        width: auto !important;\n      }\n      .submit_section{\n        flex-direction: column;\n      }\n      .submit_section_label{\n        margin-bottom: 15px;\n      }\n      .AddAdditionalOfficers{\n        background-color: rgba(0, 0, 0, 0.5);\n      }\n\t  \/* Full-page overlay to block content *\/\n\t#loader-overlay {\n\t\tposition: fixed; \/* Fixed positioning to cover the entire screen *\/\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground-color: rgba(0, 0, 0, 0.5); \/* Semi-transparent background *\/\n\t\tdisplay: none; \/* Hidden by default *\/\n\t\tjustify-content: center; \/* Center the spinner *\/\n\t\talign-items: center; \/* Center the spinner vertically *\/\n\t\tz-index: 9999; \/* Ensure the overlay is above all other content *\/\n\t}\n\n\t\/* Spinner styling *\/\n\t#spinner {\n\t\tborder: 16px solid #f3f3f3; \/* Light gray border *\/\n\t\tborder-top: 16px solid #3498db; \/* Blue top border *\/\n\t\tborder-radius: 50%; \/* Make it circular *\/\n\t\twidth: 120px; \/* Set spinner size *\/\n\t\theight: 120px;\n\t\tanimation: spin 2s linear infinite; \/* Spin animation *\/\n\t}\n\n\t\/* Keyframes for the spinning animation *\/\n\t@keyframes spin {\n\t\t0% { transform: rotate(0deg); }\n\t\t100% { transform: rotate(360deg); }\n\t}\n\n\t@media only screen and (max-width: 768px) {\n\t\tform{\n\t\t\twidth: 100%;\n\t\t}\n\t\t#business-type{\n\t\t\tflex-direction: column;\n\t\t}\n\t\t.section_line{\n\t\t\tdisplay: none;\n\t\t}\n\t\t.row{\n\t\t\tmargin-left: 0;\n\t\t}\n\t\t#adobeEsign{\n\t\t\tmin-width: 100% !important;\n\t\t}\n\t}\n\n\t\t<\/style>\n\n\t\t<script type=\"text\/javascript\">\n  function googleTranslateElementInit() {\n    new google.translate.TranslateElement({\n      pageLanguage: 'en',   \/\/ Original language of your content\n      includedLanguages: 'ru,uk',  \/\/ Add Ukrainian (uk) and Russian (ru)\n      layout: google.translate.TranslateElement.InlineLayout.SIMPLE\n    }, 'google_translate_element');\n  }\n<\/script>\n<script type=\"text\/javascript\" src=\"https:\/\/translate.google.com\/translate_a\/element.js?cb=googleTranslateElementInit\"><\/script>\n\n\t<\/head>\n\t<body>\n\t\t<div class=\"IF_form_container\">\n\t\t\t<div class=\"IF_section_header no_background\">\n\t\t\t\t<h2 style=\"font-size:1.5em;\">\n\t\t\t\t\tForm to Start a New Business\n\t\t\t\t<\/h2>\n\t\t\t<\/div>\n\t\t\t<form id=\"myForm\" action=\"\">\n\n\t\t\t\t<div class=\"section_header\">\n\t\t\t\t\t<label for=\"translatebox\">English\/\u0420\u0443\u0441\u0441\u043a\u0438\u0439\/\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430:<\/label>\n\t\t\t\t\t<div id=\"google_translate_element\" name=\"translatebox\"><\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"section_header\">\n\t\t\t\t\t<h2 class=\"section_title\">Company Information<\/h2>\n\t\t\t\t<\/div>\n\t\t\t\t<!-- Corporate Information Section -->\n\t\t\t\t<section class=\"corporate-info\">\n\t\t\t\t\t<div class=\"section_line\"><\/div>\n\t\t\t\t\t<div class=\"left_panel\">\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<label for=\"business-type\">Select Business Type:<\/label>\n\t\t\t\t\t\t\t<div id=\"business-type\" name=\"business-type\" required>\n\t\t\t\t\t\t\t\t<label class=\"radio_button_label\">\n\t\t\t\t\t\t\t\t\t<input class=\"submit_section_input\" type=\"radio\" name=\"business-type\" value=\"C-Corporation\" required checked>C-Corporation <\/label>\n\t\t\t\t\t\t\t\t<label class=\"radio_button_label\">\n\t\t\t\t\t\t\t\t\t<input class=\"submit_section_input\" type=\"radio\" name=\"business-type\" value=\"LLC\">LLC <\/label>\n\t\t\t\t\t\t\t\t<label class=\"radio_button_label\">\n\t\t\t\t\t\t\t\t\t<input class=\"submit_section_input\" type=\"radio\" name=\"business-type\" value=\"S-Corporation\">S-Corporation <\/label>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<label for=\"CorporateName1\">Company Name:<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" id=\"CorporateName1\" name=\"corporateName1\" aria-label=\"Corporate Name\" required>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<label for=\"CorporateName2\">Company Name (Option 2, should differ from previous): <p style=\"color:gray; font-size:12px; font-weight:100\"><\/p>\n\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" id=\"CorporateName2\" name=\"corporateName2\" aria-label=\"Corporate Name Option 2\" required>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<label for=\"CorporateName3\">Company Name (Option 3, should differ from previous):<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" id=\"CorporateName3\" name=\"corporateName3\" aria-label=\"Corporate Name Option 3\" required>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<label for=\"PrincipalActivity\">Principal Activity:<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" id=\"PrincipalActivity\" name=\"principalActivity\" aria-label=\"Principal Activity\" required>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<label for=\"PhysicalAddressOfTheCorporation\">Physical Address of the Company:<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" id=\"PhysicalAddressOfTheCorporation\" name=\"physicalAddressOfTheCorporation\" aria-label=\"Physical Address of the Corporation\" required>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<label for=\"MailingAddress\">Mailing Address (Optionsl, if different from physical location):<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" id=\"MailingAddress\" name=\"mailingAddress\" aria-label=\"Mailing Address\">\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/section>\n\t\t\t\t<!-- President Information Section -->\n\t\t\t\t<div class=\"section_header\">\n\t\t\t\t\t<h2 class=\"section_title\">President \/ Member of the Company<\/h2>\n\t\t\t\t\t<p>Name exactly as appears on the SS Card<\/p>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"corporate-info\">\n\t\t\t\t\t<div class=\"section_line\"><\/div>\n\t\t\t\t\t<div class=\"left_panel\">\n\t\t\t\t\t\t<section class=\"president-info\">\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"President-FirstName\">First Name:<\/label>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"President-FirstName\" name=\"presidentFirstName\" aria-label=\"President's First Name\" required>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"President-LastName\">Last Name:<\/label>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"President-LastName\" name=\"presidentLastName\" aria-label=\"President's Last Name\" required>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"President-SocialSecurity\">Social Security Number:<\/label>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"President-SocialSecurity\" name=\"presidentSocialSecurity\" maxlength=\"11\" placeholder=\"XXX-XX-XXXX\" oninput=\"formatSSN(this)\" aria-label=\"President's Social Security Number\" required>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"President-PercentageOfOwnership\">Percentage of Ownership (0-100%):<\/label>\n\t\t\t\t\t\t\t\t<input type=\"number\" id=\"President-PercentageOfOwnership\" name=\"presidentPercentage-OfOwnership\" max=\"100\" placeholder=\"%\" aria-label=\"President's Percentage of Ownership\" required>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"President-HomeAddress\">Home Address:<\/label>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"President-HomeAddress\" name=\"presidentHomeAddress\" aria-label=\"President's Home Address\" required>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"President-DOB\">DOB:<\/label>\n\t\t\t\t\t\t\t\t<input type=\"date\" id=\"President-DOB\" name=\"presidentDOB\" aria-label=\"President's Date of Birth\" required>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"President-CellNumber\">Cell Number:<\/label>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"President-CellNumber\" name=\"presidentCellNumber\" placeholder=\"(XXX) XXX-XXXX\" oninput=\"maskPhoneNumber(this)\" aria-label=\"President's Cell Number\" required>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"President-Email\">Email:<\/label>\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"PresidentEmail\" name=\"presidentEmail\" placeholder=\"example@mail.com\" aria-label=\"President's email\" required>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<label for=\"ImageUpload\">President's \/ Member's ID (Only image files with a maximum size of 5MB are supported for upload):<\/label>\n\t\t\t\t\t\t\t\t<div class=\"image-upload-container\">\n\t\t\t\t\t\t\t\t\t<input type=\"file\" id=\"ImageUpload\" name=\"presidentImageUpload\" accept=\"image\/*\" style=\"display: none;\" onchange=\"previewImage(event)\" aria-label=\"Upload President's ID\">\n\t\t\t\t\t\t\t\t\t<div class=\"image-field\">\n\t\t\t\t\t\t\t\t\t\t<button type=\"button\" onclick=\"document.getElementById('ImageUpload').click();\" class=\"upload-btn\" id=\"AddChangeImageButton\" aria-label=\"Add Image\"> Add Image <\/button>\n\t\t\t\t\t\t\t\t\t\t<img id=\"imagePreview\" class=\"preview-img\" alt=\"Image preview\" style=\"display: none;\" \/>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div id=\"imageInfo\" class=\"row image-info\" style=\"display: none;\">\n\t\t\t\t\t\t\t\t\t<span id=\"fileName\">No file chosen<\/span>\n\t\t\t\t\t\t\t\t\t<button type=\"button\" onclick=\"deleteImage()\" class=\"delete-btn\" aria-label=\"Delete Image\">\n\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-trash-alt\"><\/i>\n\t\t\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/section>\n\t\t\t\t<!-- Additional Officers\/Shareholders Section -->\n\t\t\t\t<div class=\"section_header\">\n\t\t\t\t\t<h2 class=\"section_title\">Additional Officers\/Shareholder\/Member<\/h2>\n\t\t\t\t\t<p>If your corporation has multiple officers or shareholders, you can add them here<\/p>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"corporate-info\">\n\t\t\t\t\t<div class=\"section_line\"><\/div>\n\t\t\t\t\t<div class=\"left_panel\">\n\t\t\t\t\t\t<section class=\"officers-info\">\n\t\t\t\t\t\t\t<table id=\"Shareholders\">\n\t\t\t\t\t\t\t\t<tbody id=\"shareholders-table-body\">\n\t\t\t\t\t\t\t\t\t<!-- Shareholder rows will be inserted here dynamically -->\n\t\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t\t\t<\/table>\n\t\t\t\t\t\t\t<button class=\"AddAdditionalOfficers\" type=\"button\" onclick=\"addShareholder()\" aria-label=\"Add Additional Officers\/Shareholders\">\n\t\t\t\t\t\t\t\t<i class=\"fas fa-plus-circle\"><\/i> Add Additional Officers\/Shareholders <\/button>\n\t\t\t\t\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/section>\n        <div class=\"section_header\" style=\"margin-bottom:0;\">\n\t\t\t\t\t<h2 class=\"section_title\" style=\"margin-bottom:0;\">BOI Disclaimer<\/h2>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"adobe-e-sign\">\n\t\t\t\t\t<iframe loading=\"lazy\" id=\"adobeEsign\" src=\"https:\/\/na2.documents.adobe.com\/public\/esignWidget?wid=CBFCIBAA3AAABLblqZhARm9dF8wiPTeb9MilC52xBOxpdJZv-hbAviDi39c201nXV_kO1OL-Rb40pTNLKcL4*&hosted=false\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border: 0; overflow: hidden; min-height: 500px; min-width: 600px; margin-top:15px\"><\/iframe>\n\t\t\t\t<\/section>\n\t\t\t\t<div id=\"recaptcha-container\"><\/div>\n\t\t\t<input type=\"hidden\" name=\"trp-form-language\" value=\"ru\"\/><\/form>\n\t\t\t<!-- Submit Section -->\n\t\t\t<div id=\"loader-overlay\">\n\t\t\t\t<div id=\"spinner\"><\/div>\n\t\t\t<\/div>\n\t\t\t<div class=\"row IF_section_header no_background submit_section\">\n\t\t\t\t<label class=\"submit_section_label\" for=\"signedCheckbox\">\n\t\t\t\t\t<input class=\"submit_section_input\" type=\"checkbox\" id=\"signedCheckbox\"> I signed BOI Disclaimer <\/label>\n\t\t\t\t<button type=\"button\" class=\"submit_button\" onclick=\"convertToJSON()\" aria-label=\"Submit Form\" id=\"submitButton\" disabled>\n\t\t\t\t\t<i class=\"fas fa-check-circle\"><\/i> Submit Form <\/button>\n\t\t\t<\/div>\n\n\n\t\t<\/div>\n\t\t<script>\n    \/*\n\t\t\t\/\/ This function handles the file input and preview image\n\t\t\tfunction previewImage(event) {\n\t\t\t\tconst file = event.target.files[0];\n\t\t\t\tconst preview = document.getElementById('imagePreview');\n\t\t\t\tconst fileName = document.getElementById('fileName');\n\t\t\t\tconst imageInfo = document.getElementById('imageInfo');\n\t\t\t\tconst addChangeImageButton = document.getElementById('AddChangeImageButton');\n\t\t\t\t\/\/ Check if the file is an image or a PDF\n\t\t\t\tconst allowedTypes = ['image\/jpeg', 'image\/png', 'image\/gif', 'application\/pdf']; \/\/ allowed MIME types\n\t\t\t\tconst maxSize = 5 * 1024 * 1024; \/\/ 5MB in bytes\n\t\t\t\tif (file) {\n\t\t\t\t\t\/\/ Check file size\n\t\t\t\t\tif (file.size > maxSize) {\n\t\t\t\t\t\talert(\"File size exceeds 5MB. Please upload a smaller image or PDF.\");\n\t\t\t\t\t\tevent.target.value = ''; \/\/ Clear the file input\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\/\/ Check file type\n\t\t\t\t\tif (!allowedTypes.includes(file.type)) {\n\t\t\t\t\t\talert(\"Invalid file type. Only images (JPG, PNG, GIF) and PDFs are allowed.\");\n\t\t\t\t\t\tevent.target.value = ''; \/\/ Clear the file input\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\/\/ If valid, process the file\n\t\t\t\t\tconst reader = new FileReader();\n\t\t\t\t\treader.onload = function() {\n\t\t\t\t\t\tif (file.type.startsWith(\"image\")) {\n\t\t\t\t\t\t\t\/\/ Show the image preview for image files\n\t\t\t\t\t\t\tpreview.src = reader.result;\n\t\t\t\t\t\t\tpreview.style.display = 'block'; \/\/ Show the image preview\n\t\t\t\t\t\t} else if (file.type === 'application\/pdf') {\n\t\t\t\t\t\t\t\/\/ For PDFs, just show a PDF icon or name\n\t\t\t\t\t\t\tpreview.src = ''; \/\/ Clear preview (as no image will be shown)\n\t\t\t\t\t\t\tpreview.style.display = 'none';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\/\/ Display the file name and update the button text\n\t\t\t\t\t\tfileName.textContent = \"Selected file: \" + file.name;\n\t\t\t\t\t\timageInfo.style.display = 'block'; \/\/ Show the file name and delete button\n\t\t\t\t\t\taddChangeImageButton.innerHTML = 'Replace Image\/PDF';\n\t\t\t\t\t};\n\t\t\t\t\treader.readAsDataURL(file);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\/\/ This function handles the deletion of the image\n\t\t\tfunction deleteImage() {\n\t\t\t\t\/\/ Cache DOM elements for better performance\n\t\t\t\tconst elements = {\n\t\t\t\t\tfileInput: document.getElementById('ImageUpload'),\n\t\t\t\t\tpreview: document.getElementById('imagePreview'),\n\t\t\t\t\tfileName: document.getElementById('fileName'),\n\t\t\t\t\timageInfo: document.getElementById('imageInfo'),\n\t\t\t\t\taddChangeImageButton: document.getElementById('AddChangeImageButton')\n\t\t\t\t};\n\t\t\t\t\/\/ Reset the file input, hide preview, and reset other UI elements\n\t\t\t\telements.fileInput.value = ''; \/\/ Clear the file input\n\t\t\t\telements.preview.style.display = 'none'; \/\/ Hide the image preview\n\t\t\t\telements.fileName.textContent = 'No file chosen'; \/\/ Reset file name text\n\t\t\t\telements.imageInfo.style.display = 'none'; \/\/ Hide image info and delete button\n\t\t\t\telements.addChangeImageButton.innerHTML = 'Add Image'; \/\/ Reset button text\n\t\t\t}\n\n\t\t\tlet shareholderCount = 0; \/\/ Initial count is 0\n\t\t\t\/\/ Set the max attribute to today's date for DOB\n\t\t\tconst dobInput = document.getElementById('President-DOB');\n\t\t\tconst today = new Date();\n\t\t\tconst maxDate = today.toISOString().split('T')[0];\n\t\t\tdobInput.setAttribute('max', maxDate);\n\n\t\t\tfunction formatSSN(input) {\n\t\t\t\t\/\/ Remove all non-digit characters\n\t\t\t\tlet ssn = input.value.replace(\/\\D\/g, '');\n\t\t\t\t\/\/ Format the SSN as XXX-XX-XXXX\n\t\t\t\tif (ssn.length <= 3) {\n\t\t\t\t\tinput.value = ssn;\n\t\t\t\t} else if (ssn.length <= 5) {\n\t\t\t\t\tinput.value = ssn.slice(0, 3) + '-' + ssn.slice(3);\n\t\t\t\t} else if (ssn.length <= 9) {\n\t\t\t\t\tinput.value = ssn.slice(0, 3) + '-' + ssn.slice(3, 5) + '-' + ssn.slice(5, 9);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlet totalOwnership = 0; \/\/ Variable to track total ownership percentage\n\t\t\tfunction addShareholder() {\n\t\t\t\tshareholderCount++;\n\t\t\t\tconst shareholdersTable = document.getElementById(\"shareholders-table-body\");\n\t\t\t\t\/\/ Create a new row for the shareholder\n\t\t\t\tconst newRow = document.createElement('tr');\n\t\t\t\t\/\/ Add the shareholder form with a label at the start\n\t\t\t\tnewRow.innerHTML = `\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"nested-table\" id=\"shareholder-table-${shareholderCount}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>Additional Officer\/Shareholder<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"FirstName-Shareholders-${shareholderCount}\">First Name:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"FirstName-Shareholders-${shareholderCount}\" name=\"FirstName-Shareholders-${shareholderCount}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"LastName-Shareholders-${shareholderCount}\">Last Name:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"LastName-Shareholders-${shareholderCount}\" name=\"LastName-Shareholders-${shareholderCount}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"SocialSecurity-Shareholders-${shareholderCount}\">Social Security Number:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"SocialSecurity-Shareholders-${shareholderCount}\" name=\"SocialSecurity-Shareholders-${shareholderCount}\" maxlength=\"11\" placeholder=\"XXX-XX-XXXX\" oninput=\"formatSSN(this)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"PercentageOfOwnership-Shareholders-${shareholderCount}\">Percentage of Ownership:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"number\" id=\"PercentageOfOwnership-Shareholders-${shareholderCount}\" name=\"PercentageOfOwnership-Shareholders-${shareholderCount}\" max=\"100\" placeholder=\"%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"CellNumber-Shareholders-${shareholderCount}\">Cell Number:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"CellNumber-Shareholders-${shareholderCount}\" name=\"CellNumber-Shareholders-${shareholderCount}\" placeholder=\"(XXX) XXX-XXXX\" oninput=\"maskPhoneNumber(this)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"Email-Shareholders-${shareholderCount}\">Email:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"email\" id=\"Email-Shareholders-${shareholderCount}\" name=\"Email-Shareholders-${shareholderCount}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"HomeAddress-Shareholders-${shareholderCount}\">Home Address:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"HomeAddress-Shareholders-${shareholderCount}\" name=\"HomeAddress-Shareholders-${shareholderCount}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"DOB-Shareholders-${shareholderCount}\">DOB:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"date\" id=\"DOB-Shareholders-${shareholderCount}\" name=\"DOB-Shareholders-${shareholderCount}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"DOB-Shareholders-${shareholderCount}\">Shareholders's ID:<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"image-upload-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" id=\"ImageUpload-Shareholders-${shareholderCount}\" name=\"ImageUpload-Shareholders-${shareholderCount}\" accept=\"image\/*\" style=\"display: none;\" onchange=\"previewImageForShareholder(event, ${shareholderCount})\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"image-field\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" onclick=\"document.getElementById('ImageUpload-Shareholders-${shareholderCount}').click();\" class=\"upload-btn\" id=\"AddChangeImageButtonShareholder-${shareholderCount}\">\n                                  Add Image of ID\n                              <\/button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img id=\"imagePreview-Shareholders-${shareholderCount}\" class=\"preview-img\" alt=\"Image preview\" style=\"display: none;\" \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"imageInfo-Shareholders-${shareholderCount}\" class=\"row image-info\" style=\"display: none;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span id=\"fileName-Shareholders-${shareholderCount}\">No file chosen<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" onclick=\"deleteImageForShareholder(${shareholderCount})\" class=\"delete-btn\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-trash-alt\"><\/i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"delete-btn\" onclick=\"deleteShareholder(this)\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fas fa-trash-alt\"><\/i> Delete Officer\/Shareholder\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/td>\n  `;\n\t\t\t\t\/\/ Append the new row to the table\n\t\t\t\tshareholdersTable.appendChild(newRow);\n\t\t\t\t\/\/ Add event listener for the new Percentage of Ownership field\n\t\t\t\tconst ownershipInput = document.getElementById(`PercentageOfOwnership-Shareholders-${shareholderCount}`);\n\t\t\t\townershipInput.addEventListener('change', updateTotalOwnership);\n\t\t\t\tconst emailInput = document.getElementById(`Email-Shareholders-${shareholderCount}`);\n\t\t\t\temailInput.addEventListener('change', onShareholderEmailChange);\n\t\t\t}\n\n\t\t\t\/\/ Event listener to update the total ownership when any ownership input changes\n\t\t\tfunction updateTotalOwnership() {\n\t\t\t\tcheckTotalOwnership();\n\t\t\t}\n\n\t\t\t\/\/ Function to handle changes to the shareholder email input\n\t\t\tfunction onShareholderEmailChange() {\n\t\t\t\tconst emailInput = document.getElementById(`Email-Shareholders-${shareholderCount}`);\n\t\t\t\tconst email = emailInput.value.trim(); \/\/ Get the value of the input\n\t\t\t\t\/\/ Validate the email format\n\t\t\t\tif (!validateEmail(email)) {\n\t\t\t\t\temailInput.classList.add('error'); \/\/ Add an error class to style the input\n\t\t\t\t} else {\n\t\t\t\t\temailInput.classList.remove('error'); \/\/ Remove error class if email is valid\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction previewImageForShareholder(event, shareholderId) {\n\t\t\t\tconst file = event.target.files[0];\n\t\t\t\tconst preview = document.getElementById(`imagePreview-Shareholders-${shareholderId}`);\n\t\t\t\tconst fileName = document.getElementById(`fileName-Shareholders-${shareholderId}`);\n\t\t\t\tconst imageInfo = document.getElementById(`imageInfo-Shareholders-${shareholderId}`);\n\t\t\t\tconst addChangeImageButton = document.getElementById(`AddChangeImageButtonShareholder-${shareholderId}`);\n\t\t\t\t\/\/ Allowed MIME types (images and PDFs)\n\t\t\t\tconst allowedTypes = ['image\/jpeg', 'image\/png', 'image\/gif', 'application\/pdf'];\n\t\t\t\tconst maxSize = 5 * 1024 * 1024; \/\/ 5MB in bytes\n\t\t\t\tif (file) {\n\t\t\t\t\t\/\/ Check file size\n\t\t\t\t\tif (file.size > maxSize) {\n\t\t\t\t\t\talert(\"File size exceeds 5MB. Please upload a smaller image or PDF.\");\n\t\t\t\t\t\tevent.target.value = ''; \/\/ Clear the file input\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\/\/ Check file type\n\t\t\t\t\tif (!allowedTypes.includes(file.type)) {\n\t\t\t\t\t\talert(\"Invalid file type. Only images (JPG, PNG, GIF) and PDFs are allowed.\");\n\t\t\t\t\t\tevent.target.value = ''; \/\/ Clear the file input\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tconst reader = new FileReader();\n\t\t\t\t\treader.onload = function() {\n\t\t\t\t\t\tif (file.type.startsWith(\"image\")) {\n\t\t\t\t\t\t\t\/\/ Show the image preview for image files\n\t\t\t\t\t\t\tpreview.src = reader.result;\n\t\t\t\t\t\t\tpreview.style.display = 'block'; \/\/ Show the image preview\n\t\t\t\t\t\t} else if (file.type === 'application\/pdf') {\n\t\t\t\t\t\t\t\/\/ For PDFs, just show a PDF icon or name\n\t\t\t\t\t\t\tpreview.src = ''; \/\/ Clear preview (as no image will be shown)\n\t\t\t\t\t\t\tpreview.style.display = 'none';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfileName.textContent = \"Selected file: \" + file.name;\n\t\t\t\t\t\timageInfo.style.display = 'block'; \/\/ Show the file name and delete button\n\t\t\t\t\t\taddChangeImageButton.innerHTML = 'Change Image\/PDF';\n\t\t\t\t\t};\n\t\t\t\t\treader.readAsDataURL(file);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction deleteImageForShareholder(shareholderId) {\n\t\t\t\tconst fileInput = document.getElementById(`ImageUpload-Shareholders-${shareholderId}`);\n\t\t\t\tconst preview = document.getElementById(`imagePreview-Shareholders-${shareholderId}`);\n\t\t\t\tconst fileName = document.getElementById(`fileName-Shareholders-${shareholderId}`);\n\t\t\t\tconst imageInfo = document.getElementById(`imageInfo-Shareholders-${shareholderId}`);\n\t\t\t\tconst addChangeImageButton = document.getElementById(`AddChangeImageButtonShareholder-${shareholderCount}`);\n\t\t\t\tfileInput.value = '';\n\t\t\t\tpreview.style.display = 'none';\n\t\t\t\tfileName.textContent = 'No file chosen';\n\t\t\t\timageInfo.style.display = 'none';\n\t\t\t\taddChangeImageButton.innerHTML = 'Add Image of ID';\n\t\t\t}\n\n\t\t\tfunction maskPhoneNumber(input) {\n\t\t\t\t\/\/ Remove all non-digit characters\n\t\t\t\tlet phone = input.value.replace(\/\\D\/g, '');\n\t\t\t\t\/\/ If the phone number is empty, reset the input value\n\t\t\t\tif (phone === '') {\n\t\t\t\t\tinput.value = '';\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\/\/ Format the phone number as (XXX) XXX-XXXX\n\t\t\t\tif (phone.length <= 3) {\n\t\t\t\t\tinput.value = `(${phone}`;\n\t\t\t\t} else if (phone.length <= 6) {\n\t\t\t\t\tinput.value = `(${phone.slice(0, 3)}) ${phone.slice(3)}`;\n\t\t\t\t} else {\n\t\t\t\t\tinput.value = `(${phone.slice(0, 3)}) ${phone.slice(3, 6)}-${phone.slice(6, 10)}`;\n\t\t\t\t}\n\t\t\t\t\/\/ If the user deletes the phone number and it's shorter than 3 digits, clear out the parentheses\n\t\t\t\tif (phone.length < 3) {\n\t\t\t\t\tinput.value = phone;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction deleteShareholder(button) {\n\t\t\t\tconst row = button.closest(\"tr\").parentNode;\n\t\t\t\tconst table = row.closest(\"table\");\n\t\t\t\ttable.remove(); \/\/ This removes the entire nested table\n\t\t\t}\n\n\t\t\tfunction convertToJSON() {\n\t\t\t\t\/\/ Initialize totalOwnership at the start\n\t\t\t\tlet totalOwnership = 0;\n\t\t\t\t\/\/ Get the form element\n\t\t\t\tconst form = document.getElementById(\"myForm\");\n\t\t\t\t\/\/ Variable to check if the form is valid\n\t\t\t\tlet formValid = true;\n\t\t\t\t\/\/ Clear any previous error highlights or messages\n\t\t\t\tconst inputs = form.querySelectorAll('input[required]');\n\t\t\t\tinputs.forEach(input => {\n\t\t\t\t\tinput.classList.remove('error'); \/\/ Remove error class\n\t\t\t\t\tconst errorMessage = input.parentElement.querySelector('.error-message');\n\t\t\t\t\tif (errorMessage) {\n\t\t\t\t\t\terrorMessage.remove(); \/\/ Remove any previous error messages\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\/\/ Check if all required fields are filled\n\t\t\t\tinputs.forEach(input => {\n\t\t\t\t\tif (!input.checkValidity()) {\n\t\t\t\t\t\tformValid = false; \/\/ If any field is invalid, mark the form as invalid\n\t\t\t\t\t\tinput.classList.add('error'); \/\/ Add error class for invalid fields\n\t\t\t\t\t\t\/\/ Create and display error message next to the field\n\t\t\t\t\t\tconst errorMessage = document.createElement('div');\n\t\t\t\t\t\terrorMessage.classList.add('error-message');\n\t\t\t\t\t\terrorMessage.textContent = input.validationMessage; \/\/ Use the browser's built-in validation message\n\t\t\t\t\t\tinput.parentElement.appendChild(errorMessage); \/\/ Append the error message to the field's container\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\/\/ If the form is not valid, prevent submission\n\t\t\t\tif (!formValid) {\n\t\t\t\t\talert(\"Please fill out all required fields before submitting.\");\n\t\t\t\t\treturn; \/\/ Prevent form submission\n\t\t\t\t}\n\t\t\t\t\/\/ Check for duplicate Corporate Names (CorporateName1, CorporateName2, CorporateName3)\n\t\t\t\tconst corporateName1 = document.getElementById(\"CorporateName1\").value.trim();\n\t\t\t\tconst corporateName2 = document.getElementById(\"CorporateName2\").value.trim();\n\t\t\t\tconst corporateName3 = document.getElementById(\"CorporateName3\").value.trim();\n\t\t\t\tlet errorMessage = \"\";\n\t\t\t\tif (corporateName1 === corporateName2) {\n\t\t\t\t\terrorMessage += \"Corporate Name 1 cannot be the same as Corporate Name 2.\\n\";\n\t\t\t\t}\n\t\t\t\tif (corporateName1 === corporateName3) {\n\t\t\t\t\terrorMessage += \"Corporate Name 1 cannot be the same as Corporate Name 3.\\n\";\n\t\t\t\t}\n\t\t\t\tif (corporateName2 === corporateName3) {\n\t\t\t\t\terrorMessage += \"Corporate Name 2 cannot be the same as Corporate Name 3.\\n\";\n\t\t\t\t}\n\t\t\t\tif (errorMessage) {\n\t\t\t\t\talert(errorMessage); \/\/ Show all error messages at once\n\t\t\t\t\tformValid = false; \/\/ Prevent form submission\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\/\/ Check total ownership percentage before form submission\n\t\t\t\tif (!checkTotalOwnership()) {\n\t\t\t\t\tformValid = false; \/\/ Mark the form as invalid if total ownership check fails\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\/\/ Check if an image is uploaded\n\t\t\t\tconst imageInput = document.getElementById('ImageUpload');\n\t\t\t\tif (!imageInput.files || imageInput.files.length === 0) {\n\t\t\t\t\tformValid = false; \/\/ Mark form as invalid if no image is uploaded\n\t\t\t\t\talert(\"Please upload an image before submitting.\");\n\t\t\t\t\treturn; \/\/ Prevent form submission\n\t\t\t\t}\n\t\t\t\t\/\/ Create a FormData object for the entire form\n\t\t\t\tconst formData = new FormData(form);\n\t\t\t\tconst obj = {};\n\t\t\t\t\/\/ Add all the form data (non-shareholder data) into the object\n\t\t\t\tformData.forEach((value, key) => {\n\t\t\t\t\tobj[key] = value;\n\t\t\t\t});\n\t\t\t\t\/\/ Handle the Main Image Upload (ID Image or Similar)\n\t\t\t\t\/\/const imageInput = document.getElementById('ImageUpload');\n\t\t\t\tif (imageInput.files && imageInput.files[0]) {\n\t\t\t\t\tconst file = imageInput.files[0];\n\t\t\t\t\tconst reader = new FileReader();\n\t\t\t\t\treader.onload = function(event) {\n\t\t\t\t\t\tobj['image'] = event.target.result; \/\/ This will hold the Base64 data of the image\n\t\t\t\t\t\t\/\/console.log('Main Image Base64:', event.target.result); \/\/ For debugging purposes\n\t\t\t\t\t\t\/\/ After the main image is processed, collect shareholder data\n\t\t\t\t\t\tcollectShareholderData(obj); \/\/ Ensure this function is defined elsewhere in your code\n\t\t\t\t\t};\n\t\t\t\t\treader.readAsDataURL(file); \/\/ Convert to Base64 string\n\t\t\t\t} else {\n\t\t\t\t\t\/\/ Handle case where no image is uploaded (optional)\n\t\t\t\t\tobj['image'] = null;\n\t\t\t\t\tcollectShareholderData(obj); \/\/ Proceed if no image is selected\n\t\t\t\t}\n\t\t\t}\n\t\t\t\/\/ Function to check if total ownership exceeds 100%\n\t\t\tfunction checkTotalOwnership() {\n\t\t\t\tlet totalOwnership = 0;\n\t\t\t\t\/\/ Get the President's ownership input\n\t\t\t\tconst PresidentownershipInputs = document.getElementById('President-PercentageOfOwnership');\n\t\t\t\tif (!PresidentownershipInputs) {\n\t\t\t\t\tconsole.error(\"Element with id 'President-PercentageOfOwnership' not found!\");\n\t\t\t\t\treturn false; \/\/ Return false if the element is not found\n\t\t\t\t}\n\t\t\t\tlet PresidentownershipInputsNumber = parseFloat(PresidentownershipInputs.value) || 0; \/\/ Parse the value or set 0 if empty\n\t\t\t\ttotalOwnership += PresidentownershipInputsNumber; \/\/ Add president's ownership to the total\n\t\t\t\t\/\/ Get all shareholder ownership percentage fields\n\t\t\t\tconst ownershipInputs = document.querySelectorAll('[id^=\"PercentageOfOwnership-Shareholders-\"]');\n\t\t\t\townershipInputs.forEach(input => {\n\t\t\t\t\ttotalOwnership += parseFloat(input.value) || 0; \/\/ Add shareholder ownership percentages\n\t\t\t\t});\n\t\t\t\t\/\/ If total ownership exceeds 100%, show an alert and prevent form submission\n\t\t\t\tif (totalOwnership > 100) {\n\t\t\t\t\talert(\"Total percentage ownership exceeds 100%. Please adjust the values.\");\n\t\t\t\t\t\/\/ Clear the ownership input fields\n\t\t\t\t\tPresidentownershipInputs.value = ''; \/\/ Clear President's ownership\n\t\t\t\t\townershipInputs.forEach(input => {\n\t\t\t\t\t\tinput.value = ''; \/\/ Clear all shareholder ownership fields\n\t\t\t\t\t});\n\t\t\t\t\treturn false; \/\/ Prevent form submission if ownership exceeds 100%\n\t\t\t\t}\n\t\t\t\treturn true; \/\/ Return true if total ownership is valid\n\t\t\t}\n\t\t\t\/\/end of convertToJSON()\n\n\t\t\t\/\/ Function to decode HTML entities (e.g., &#038; to &)\n\t\t\tfunction decodeHtmlEntity(str) {\n\t\t\t\tvar doc = new DOMParser().parseFromString(str, 'text\/html');\n\t\t\t\treturn doc.documentElement.textContent || doc.body.textContent;\n\t\t\t}\n\n\t\t\t\/\/ Function to decode HTML entities (ensuring HTML-encoded text is decoded correctly)\n\t\t\tfunction decodeHtmlEntity(str) {\n\t\t\t\tconst txt = document.createElement(\"textarea\");\n\t\t\t\ttxt.innerHTML = str;\n\t\t\t\treturn txt.value;\n\t\t\t}\n\n\t\t\t\/\/ Function to collect shareholder data\n\t\t\tfunction collectShareholderData(obj) {\n\t\t\t\tconst shareholders = [];\n\t\t\t\tconst promises = []; \/\/ Array to hold promises for image loading\n\t\t\t\tfor (let i = 1; i <= shareholderCount; i++) {\n\t\t\t\t\t\/\/ Retrieve field elements\n\t\t\t\t\tconst fields = {\n\t\t\t\t\t\tfirstName: document.getElementById(`FirstName-Shareholders-${i}`),\n\t\t\t\t\t\tlastName: document.getElementById(`LastName-Shareholders-${i}`),\n\t\t\t\t\t\tsocialSecurity: document.getElementById(`SocialSecurity-Shareholders-${i}`),\n\t\t\t\t\t\tpercentageOfOwnership: document.getElementById(`PercentageOfOwnership-Shareholders-${i}`),\n\t\t\t\t\t\tcellNumber: document.getElementById(`CellNumber-Shareholders-${i}`),\n\t\t\t\t\t\temail: document.getElementById(`Email-Shareholders-${i}`),\n\t\t\t\t\t\thomeAddress: document.getElementById(`HomeAddress-Shareholders-${i}`),\n\t\t\t\t\t\tdob: document.getElementById(`DOB-Shareholders-${i}`),\n\t\t\t\t\t\timageInput: document.getElementById(`ImageUpload-Shareholders-${i}`)\n\t\t\t\t\t};\n\t\t\t\t\t\/\/ Check if all required fields are filled\n\t\t\t\t\tif (Object.values(fields).every(field => field)) {\n\t\t\t\t\t\tconst shareholder = {\n\t\t\t\t\t\t\tfirstName: decodeHtmlEntity(fields.firstName.value), \/\/ Decode HTML entity\n\t\t\t\t\t\t\tlastName: decodeHtmlEntity(fields.lastName.value), \/\/ Decode HTML entity\n\t\t\t\t\t\t\tsocialSecurity: decodeHtmlEntity(fields.socialSecurity.value), \/\/ Decode HTML entity\n\t\t\t\t\t\t\tpercentageOfOwnership: decodeHtmlEntity(fields.percentageOfOwnership.value), \/\/ Decode HTML entity\n\t\t\t\t\t\t\tcellNumber: decodeHtmlEntity(fields.cellNumber.value), \/\/ Decode HTML entity\n\t\t\t\t\t\t\temail: decodeHtmlEntity(fields.email.value), \/\/ Decode HTML entity\n\t\t\t\t\t\t\thomeAddress: decodeHtmlEntity(fields.homeAddress.value), \/\/ Decode HTML entity\n\t\t\t\t\t\t\tdob: decodeHtmlEntity(fields.dob.value), \/\/ Decode HTML entity\n\t\t\t\t\t\t\timage: null \/\/ Default image value (in case no image is uploaded)\n\t\t\t\t\t\t};\n\t\t\t\t\t\t\/\/ Handle image upload asynchronously if a file is provided\n\t\t\t\t\t\tconst file = fields.imageInput.files[0]; \/\/ Get the first file (if any)\n\t\t\t\t\t\tif (file) {\n\t\t\t\t\t\t\tconst reader = new FileReader();\n\t\t\t\t\t\t\tconst imagePromise = new Promise((resolve, reject) => {\n\t\t\t\t\t\t\t\treader.onload = function(event) {\n\t\t\t\t\t\t\t\t\tshareholder.image = event.target.result; \/\/ Add the image as Base64\n\t\t\t\t\t\t\t\t\tresolve(); \/\/ Resolve the promise after image processing is complete\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\treader.onerror = function() {\n\t\t\t\t\t\t\t\t\treject('Error reading file');\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\treader.readAsDataURL(file); \/\/ Convert to Base64\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tpromises.push(imagePromise); \/\/ Push image promise to the array\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\/\/ Add shareholder data to the shareholders array\n\t\t\t\t\t\tshareholders.push(shareholder);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\/\/ Wait for all image promises to resolve before finalizing the shareholder data\n\t\t\t\tPromise.all(promises).then(() => {\n\t\t\t\t\tobj.shareholders = shareholders; \/\/ Add the collected shareholders data to the main object\n\t\t\t\t\tconsole.log(JSON.stringify(obj)); \/\/ Output the object (for testing)\n\t\t\t\t}).catch((error) => {\n\t\t\t\t\tconsole.error('Error processing images:', error);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t\/\/ Add event listeners to clear error styles when a user starts editing the field\n\t\t\tdocument.querySelectorAll('input[required]').forEach(input => {\n\t\t\t\tinput.addEventListener('input', function() {\n\t\t\t\t\t\/\/ Remove error styling when the user starts editing the field\n\t\t\t\t\tthis.classList.remove('error');\n\t\t\t\t\t\/\/ Remove the error message if it exists\n\t\t\t\t\tconst errorMessage = this.parentElement.querySelector('.error-message');\n\t\t\t\t\tif (errorMessage) {\n\t\t\t\t\t\terrorMessage.remove();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\n\t\t\tdocument.getElementById('President-PercentageOfOwnership').addEventListener('change', function() {\n\t\t\t\t\/\/ Call a function whenever the President's ownership percentage is changed\n\t\t\t\tcheckTotalOwnership();\n\t\t\t});\n\n\t\t\t\/\/ Function to validate the email format\n\t\t\tfunction validateEmail(email) {\n\t\t\t\tconst emailPattern = \/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}$\/;\n\t\t\t\treturn emailPattern.test(email); \/\/ Returns true if valid, false otherwise\n\t\t\t}\n\n\t\t\t\/\/ Add event listener for changes to the President's Email input field\n\t\t\tdocument.getElementById('PresidentEmail').addEventListener('change', function() {\n\t\t\t\tconst emailInput = document.getElementById('PresidentEmail');\n\t\t\t\tconst email = emailInput.value.trim(); \/\/ Get the value of the input\n\t\t\t\t\/\/ Validate the email format\n\t\t\t\tif (!validateEmail(email)) {\n\t\t\t\t\temailInput.classList.add('error'); \/\/ Add an error class to style the input\n\t\t\t\t} else {\n\t\t\t\t\temailInput.classList.remove('error'); \/\/ Remove error class if email is valid\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\/\/ Add event listener for form submission\n\t\t\tdocument.getElementById('myForm').addEventListener('submit', function(event) {\n\t\t\t\tconst emailInput = document.getElementById('PresidentEmail');\n\t\t\t\tconst email = emailInput.value.trim(); \/\/ Get the value of the email input\n\t\t\t\t\/\/ Validate the email format\n\t\t\t\tif (!validateEmail(email)) {\n\t\t\t\t\t\/\/ If invalid, prevent form submission and show an alert\n\t\t\t\t\talert(\"Please enter a valid email address for the President.\");\n\t\t\t\t\temailInput.classList.add('error'); \/\/ Add error class to highlight the invalid input\n\t\t\t\t\tevent.preventDefault(); \/\/ Prevent the form from submitting\n\t\t\t\t} else {\n\t\t\t\t\temailInput.classList.remove('error'); \/\/ Remove error class if email is valid\n\t\t\t\t}\n\t\t\t});*\/\n\t\t<\/script>\n\t<\/body>\n<\/html>\n<input type=\"hidden\" id=\"incorporation_form_nonce\" name=\"incorporation_form_nonce\" value=\"251a9a8968\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/ru\/wp-json\/wp\/v2\/pages\/597\" \/>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-597","page","type-page","status-publish","hentry"],"acf":[],"aioseo_notices":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"Protaxcenter_Admin","author_link":"https:\/\/protaxcenter.com\/ru\/author\/protaxcenter_admin\/"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/protaxcenter.com\/ru\/wp-json\/wp\/v2\/pages\/597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/protaxcenter.com\/ru\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/protaxcenter.com\/ru\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/protaxcenter.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/protaxcenter.com\/ru\/wp-json\/wp\/v2\/comments?post=597"}],"version-history":[{"count":3,"href":"https:\/\/protaxcenter.com\/ru\/wp-json\/wp\/v2\/pages\/597\/revisions"}],"predecessor-version":[{"id":834,"href":"https:\/\/protaxcenter.com\/ru\/wp-json\/wp\/v2\/pages\/597\/revisions\/834"}],"wp:attachment":[{"href":"https:\/\/protaxcenter.com\/ru\/wp-json\/wp\/v2\/media?parent=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}