
{"id":10603,"date":"2025-08-16T17:48:17","date_gmt":"2025-08-16T17:48:17","guid":{"rendered":"https:\/\/indianbrahmins.com\/?page_id=10603"},"modified":"2025-10-25T04:25:39","modified_gmt":"2025-10-25T04:25:39","slug":"boss","status":"publish","type":"page","link":"https:\/\/indianbrahmins.com\/index.php\/boss\/","title":{"rendered":"SELF DCL"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"10603\" class=\"elementor elementor-10603\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9236c00 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-parent\" data-id=\"9236c00\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7ab8f1a elementor-widget elementor-widget-html\" data-id=\"7ab8f1a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!doctype html>\r\n<html lang=\"en\">\r\n<head>\r\n  <meta charset=\"utf-8\" \/>\r\n  <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" \/>\r\n  <title>Self-Declaration & Authority \u2014 Victims' Rights Protection Trust<\/title>\r\n  <style>\r\n    :root{\r\n      --dark-blue: #0b4f8c;\r\n      --yellow-field: #fff9c4; \/* light yellow *\/\r\n      --red-border: #d32f2f;\r\n      --muted: #444;\r\n      --paper-bg: #fbfbfb;\r\n      --card-shadow: 0 6px 18px rgba(0,0,0,0.08);\r\n      --max-width: 900px;\r\n    }\r\n    html,body{font-family: Arial, Helvetica, sans-serif; background:var(--paper-bg); margin:0; padding:18px; color:var(--muted);}\r\n    .container{max-width:var(--max-width); margin:18px auto; background:#fff; border-radius:8px; box-shadow:var(--card-shadow); padding:18px 20px;}\r\n    header{display:flex; align-items:center; gap:12px; margin-bottom:8px;}\r\n    .logo{\r\n      width:68px; height:68px; border-radius:8px; background:linear-gradient(180deg,var(--dark-blue),#074070); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700;\r\n      box-shadow: 0 4px 10px rgba(11,79,140,0.15);\r\n    }\r\n    h1{font-size:18px; margin:0; color:var(--dark-blue);}\r\n    p.subtitle{margin:4px 0 12px; font-size:13px; color:#333;}\r\n    form .row{display:flex; gap:12px; margin-bottom:10px; flex-wrap:wrap;}\r\n    label{font-size:13px; margin-bottom:6px; display:block;}\r\n    input[type=\"text\"], input[type=\"email\"], input[type=\"tel\"], input[type=\"number\"], textarea {\r\n      background: var(--yellow-field);\r\n      border: 2px solid var(--red-border);\r\n      padding:10px 12px; border-radius:4px; width:100%; box-sizing:border-box; font-size:14px; color:#111;\r\n    }\r\n    textarea{min-height:100px; resize:vertical;}\r\n    .col{flex:1 1 220px; min-width:220px;}\r\n    .full{flex:1 1 100%;}\r\n    .actions{display:flex; gap:10px; margin-top:12px; align-items:center;}\r\n    button{\r\n      background:var(--dark-blue); color:#fff; border:none; padding:10px 14px; border-radius:6px; cursor:pointer; font-weight:600;\r\n      box-shadow:0 6px 12px rgba(11,79,140,0.12);\r\n    }\r\n    button.secondary{background:#eee; color:#111; box-shadow:none; border:1px solid #ddd;}\r\n    .note{font-size:13px; color:#666; margin-top:8px;}\r\n    .preview-area{margin-top:16px; border:1px dashed #ddd; padding:12px; border-radius:6px; background:#fff;}\r\n    .doc-preview{background:#fff; padding:18px; border-radius:6px; box-shadow:0 4px 10px rgba(0,0,0,0.04); color:#111;}\r\n    .doc-header{text-align:center; margin-bottom:18px;}\r\n    .doc-header h2{margin:0; color:var(--dark-blue); font-size:16px;}\r\n    .doc-content p{line-height:1.5; margin:8px 0; white-space:pre-wrap;}\r\n    .success{color:green; font-weight:600;}\r\n    .error{color:#d32f2f; font-weight:600;}\r\n    .small{font-size:13px; color:#555;}\r\n    footer{margin-top:20px; font-size:12px; color:#666;}\r\n    @media (max-width:600px){\r\n      header{flex-direction:row; gap:10px;}\r\n      .logo{width:56px;height:56px;}\r\n    }\r\n  <\/style>\r\n<\/head>\r\n<body>\r\n  <div class=\"container\" role=\"main\">\r\n    <header>\r\n      <div class=\"logo\">VRPT<\/div>\r\n      <div>\r\n        <h1>SELF-DECLARATION & AUTHORITY TO REPRESENT INVESTOR<\/h1>\r\n        <p class=\"subtitle\">Victims\u2019 Rights Protection Trust \u2014 Prepare, preview & send declaration (up to 30th Sep 2025)<\/p>\r\n      <\/div>\r\n    <\/header>\r\n\r\n    <!-- Form -->\r\n    <form id=\"declarationForm\" onsubmit=\"return false;\">\r\n      <div class=\"small\" style=\"margin-bottom:8px;\">To, (Trust Details are prefilled below \u2014 you may change if needed)<\/div>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col full\">\r\n          <label>Trust Registration No. (prefilled)<\/label>\r\n          <input type=\"text\" id=\"trustReg\" value=\"209\/2025\" \/>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col full\">\r\n          <label>Addressed To (prefilled)<\/label>\r\n          <textarea id=\"addressedTo\" rows=\"2\">Sri Kalle Nagaraja Giri Prasad, Convenor\r\nSri Mamillapally Vijaykumar, Co-Convenor\r\nVictims\u2019 Rights Protection Trust\r\nBarkatpura, Hyderabad<\/textarea>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <hr style=\"border:none;border-top:1px solid #eee;margin:12px 0;\" \/>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col\">\r\n          <label>Date<\/label>\r\n          <input type=\"text\" id=\"dateField\" placeholder=\"e.g. 30 September 2025\" \/>\r\n        <\/div>\r\n\r\n        <div class=\"col\">\r\n          <label>(This declaration pertains to matters and calculations up to)<\/label>\r\n          <input type=\"text\" id=\"uptoField\" value=\"30th September 2025\" \/>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <h3 style=\"margin-top:8px;margin-bottom:6px;\">Declarant \/ Investor Details<\/h3>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col\">\r\n          <label>Name<\/label>\r\n          <input type=\"text\" id=\"name\" required \/>\r\n        <\/div>\r\n        <div class=\"col\">\r\n          <label>Father \/ Husband's Name<\/label>\r\n          <input type=\"text\" id=\"fatherName\" \/>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col\">\r\n          <label>Age (years)<\/label>\r\n          <input type=\"number\" id=\"age\" min=\"0\" \/>\r\n        <\/div>\r\n        <div class=\"col\">\r\n          <label>Profession \/ Occupation<\/label>\r\n          <input type=\"text\" id=\"profession\" \/>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col full\">\r\n          <label>As per Aadhaar - Permanent Address<\/label>\r\n          <textarea id=\"permanentAddress\" required><\/textarea>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col\">\r\n          <label>City \/ State \/ PIN<\/label>\r\n          <input type=\"text\" id=\"citystatepin\" \/>\r\n        <\/div>\r\n        <div class=\"col\">\r\n          <label>Mobile \/ WhatsApp No.<\/label>\r\n          <input type=\"tel\" id=\"mobile\" \/>\r\n        <\/div>\r\n        <div class=\"col\">\r\n          <label>E-Mail<\/label>\r\n          <input type=\"email\" id=\"email\" placeholder=\"your email (optional)\" \/>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <hr style=\"border:none;border-top:1px solid #eee;margin:12px 0;\" \/>\r\n\r\n      <h3 style=\"margin-bottom:6px;\">Recipient \/ Authorized Representative Details (prefilled)<\/h3>\r\n      <div class=\"row\">\r\n        <div class=\"col full\">\r\n          <label>Organization<\/label>\r\n          <input type=\"text\" id=\"org\" value=\"Victims\u2019 Rights Protection Trust\" \/>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col full\">\r\n          <label>Convenor<\/label>\r\n          <input type=\"text\" id=\"convenor\" value=\"Kalle Nagaraja Giri Prasad Sarma, \u201cAuthor \/ Founder \/ Convenor\u201d\" \/>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col full\">\r\n          <label>Office Address<\/label>\r\n          <textarea id=\"officeAddress\">3-4-1005\/6, Dantupally Chambers, Barkatpura, Beside Rajadhani Bank, Hyderabad, Telangana 500027<\/textarea>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"row\">\r\n        <div class=\"col\">\r\n          <label>WhatsApp<\/label>\r\n          <input type=\"text\" id=\"whatsapp\" value=\"9701609689\" \/>\r\n        <\/div>\r\n        <div class=\"col\">\r\n          <label>Send Declaration File To (email)<\/label>\r\n          <input type=\"email\" id=\"sendEmail\" value=\"forvictimsprotection@gmail.com\" required \/>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"actions\">\r\n        <button id=\"previewBtn\" type=\"button\">Preview Declaration<\/button>\r\n        <button id=\"confirmBtn\" type=\"button\">Confirm & Send<\/button>\r\n        <button id=\"downloadBtn\" type=\"button\" class=\"secondary\">Download Word File<\/button>\r\n        <div id=\"statusMsg\" style=\"margin-left:8px;\"><\/div>\r\n      <\/div>\r\n\r\n      <div class=\"note\">Fields background is yellow and border is red as requested. Preview shows letter exactly as will be sent. \"Confirm & Send\" will try to POST the generated Word (.doc) file to FormSubmit (serverless email service) and send it to the specified email. If automatic sending is blocked by the browser\/CORS, you'll get a downloadable Word file to attach manually.<\/div>\r\n\r\n      <div id=\"preview\" class=\"preview-area\" aria-live=\"polite\" style=\"display:none;\">\r\n        <div class=\"doc-preview\" id=\"docPreview\"><\/div>\r\n      <\/div>\r\n    <\/form>\r\n\r\n    <footer>\r\n      <div class=\"small\">Note: This page generates a Word-compatible .doc file (HTML saved as .doc) which Microsoft Word or LibreOffice will open. The \"Confirm & Send\" flow attempts to send the .doc as an attachment using <strong>FormSubmit<\/strong> (https:\/\/formsubmit.co\/) by posting the file from your browser \u2014 this works when FormSubmit accepts the client POST. If the browser blocks cross-origin posting, the script will fall back to providing the downloadable file and a mailto link so you can attach & send manually.<\/div>\r\n    <\/footer>\r\n  <\/div>\r\n\r\n  <script>\r\n    \/\/ Utility: sanitize text for HTML\r\n    function escapeHtml(text){\r\n      if(!text && text !== 0) return '';\r\n      return String(text)\r\n        .replaceAll('&','&amp;')\r\n        .replaceAll('<','&lt;')\r\n        .replaceAll('>','&gt;')\r\n        .replaceAll('\"','&quot;')\r\n        .replaceAll(\"'\",'&#039;')\r\n        .replaceAll('\\\\n','<br\/>');\r\n    }\r\n\r\n    \/\/ Build letter HTML (for preview and .doc content)\r\n    function buildLetterHTML(fields){\r\n      const {\r\n        addressedTo, trustReg, dateField, uptoField, name, fatherName, age, profession,\r\n        permanentAddress, citystatepin, mobile, email,\r\n        org, convenor, officeAddress, whatsapp\r\n      } = fields;\r\n\r\n      const header = `\r\n        <div style=\"text-align:left; font-family: Arial, Helvetica, sans-serif; color:#111;\">\r\n          <div style=\"white-space:pre-wrap; margin-bottom:12px;\">${escapeHtml(addressedTo)}<\/div>\r\n          <div style=\"margin-bottom:6px;\"><strong>Trust Regd No.:<\/strong> ${escapeHtml(trustReg)}<\/div>\r\n          <div style=\"margin-bottom:12px;\"><strong>Date:<\/strong> ${escapeHtml(dateField || '')}<\/div>\r\n          <div style=\"margin-bottom:10px;\"><em>(This declaration pertains to matters and calculations up to ${escapeHtml(uptoField || '')}.)<\/em><\/div>\r\n          <hr style=\"border:none;border-top:1px solid #ddd;margin:12px 0;\">\r\n          <h2 style=\"color:#0b4f8c; margin:0 0 12px 0; font-size:16px;\">SELF-DECLARATION, STATEMENT OF SUPPORT AND AUTHORITY TO REPRESENT BEFORE THE HIGH COURT<\/h2>\r\n        <\/div>`;\r\n\r\n      const declarantSection = `\r\n        <div style=\"margin-top:8px;\">\r\n          <h3 style=\"margin:6px 0 8px 0;\">Declarant \/ Investor Details<\/h3>\r\n          <p><strong>Name:<\/strong> ${escapeHtml(name)}<\/p>\r\n          <p><strong>Father \/ Husband's Name:<\/strong> ${escapeHtml(fatherName)}<\/p>\r\n          <p><strong>Age:<\/strong> ${escapeHtml(age)}<\/p>\r\n          <p><strong>Profession \/ Occupation:<\/strong> ${escapeHtml(profession)}<\/p>\r\n          <p style=\"white-space:pre-wrap;\"><strong>As per Aadhaar - Permanent Address:<\/strong><br\/> ${escapeHtml(permanentAddress)}<\/p>\r\n          <p><strong>City \/ State \/ PIN:<\/strong> ${escapeHtml(citystatepin)}<\/p>\r\n          <p><strong>Mobile \/ WhatsApp No.:<\/strong> ${escapeHtml(mobile)}<\/p>\r\n          <p><strong>E-Mail:<\/strong> ${escapeHtml(email)}<\/p>\r\n        <\/div>`;\r\n\r\n      const recipientSection = `\r\n        <div style=\"margin-top:10px;\">\r\n          <h3 style=\"margin:6px 0 8px 0;\">Recipient \/ Authorized Representative Details<\/h3>\r\n          <p><strong>Organization:<\/strong> ${escapeHtml(org)}<\/p>\r\n          <p><strong>Convenor:<\/strong> ${escapeHtml(convenor)}<\/p>\r\n          <p style=\"white-space:pre-wrap;\"><strong>Office Address:<\/strong><br\/> ${escapeHtml(officeAddress)}<\/p>\r\n          <p><strong>WhatsApp:<\/strong> ${escapeHtml(whatsapp)}<\/p>\r\n        <\/div>`;\r\n\r\n      const body = `\r\n        <div style=\"margin-top:12px;\">\r\n          <p>I, the undersigned <strong>${escapeHtml(name)}<\/strong>, do hereby solemnly affirm and declare as follows:<\/p>\r\n\r\n          <ol>\r\n            <li>That I am a citizen of India, competent to make this declaration, and that the statements made herein are true and correct to the best of my knowledge and belief.<\/li>\r\n\r\n            <li>That I am one of the investors \/ aggrieved persons affected by the fraudulent and unlawful acts committed by Mr. Kamalakar Sarma Pantangi and his associated persons\/entities, which caused significant financial and mental hardship.<\/li>\r\n\r\n            <li>That I have been informed and made aware that Victims\u2019 Rights Protection Trust has initiated lawful proceedings before the Hon\u2019ble High Court seeking recovery of principal, legitimate interest, and 25% compensation for losses suffered by investors, including myself.<\/li>\r\n\r\n            <li>Through this declaration, I voluntarily and willingly authorize Victims\u2019 Rights Protection Trust, its Convenor \u2014 Kalle Nagaraja Giri Prasad Sarma, and its legal representatives to act on my behalf for all purposes connected with the said case, including representation before any court, tribunal, or competent authority.<\/li>\r\n\r\n            <li>I hereby grant full and irrevocable authority to the said Trust and its authorized representatives to:\r\n              <ul>\r\n                <li>File petitions, affidavits, and other documents before the Hon\u2019ble High Court and other judicial or administrative bodies;<\/li>\r\n                <li>Engage, instruct, and coordinate with advocates, counsels, and legal consultants;<\/li>\r\n                <li>Receive, collect, and give acknowledgment for any compensation, settlement, or decree amounts on my behalf;<\/li>\r\n                <li>Represent my interest in all collective legal actions, settlements, or recovery proceedings; and<\/li>\r\n                <li>Undertake any act or proceeding necessary or incidental to securing justice for the investor community, including myself.<\/li>\r\n              <\/ul>\r\n            <\/li>\r\n\r\n            <li>I understand that this declaration and authority are issued for the lawful purpose of collective legal representation and will remain valid until withdrawn by me in writing.<\/li>\r\n\r\n            <li>I affirm my full support to Victims\u2019 Rights Protection Trust and confirm that my participation in this declaration signifies my commitment to the Trust\u2019s lawful mission of protecting investors\u2019 rights and pursuing justice through the High Court and competent authorities.<\/li>\r\n\r\n            <li>I agree to provide any documentary proof, identification, or records when requested by the Trust or its legal representatives for the purpose of ongoing proceedings.<\/li>\r\n\r\n            <li>I declare that this authorization has been executed voluntarily, without coercion or misrepresentation, and with full understanding of its purpose and implications.<\/li>\r\n          <\/ol>\r\n        <\/div>`;\r\n\r\n      const verification = `\r\n        <div style=\"margin-top:12px;\">\r\n          <h4 style=\"margin-bottom:6px;\">DECLARATION \/ VERIFICATION<\/h4>\r\n          <p>I hereby certify that the contents of this declaration are true and correct to the best of my knowledge and belief. Nothing material has been concealed or misstated.<\/p>\r\n\r\n          <p>Signed at ${escapeHtml(citystatepin || '')} on this ${escapeHtml(dateField || '')}.<\/p>\r\n\r\n          <p style=\"margin-top:18px;\">Signature of Declarant \/ Investor: _______________________________<br\/>\r\n          Name: ${escapeHtml(name)}<br\/>\r\n          Place: ${escapeHtml(citystatepin || '')}<\/p>\r\n\r\n          <p style=\"margin-top:12px;\">(Preferably to be notarised \/ attested by a competent authority where required.)<\/p>\r\n\r\n          <p style=\"margin-top:12px;\"><strong>INSTRUCTIONS FOR SUBMISSION<\/strong><br\/>\r\n          Print this declaration, fill all personal details, sign and attach photocopy of Aadhaar or valid ID.<br\/>\r\n          Courier or hand-deliver or Email signed papers to: ${escapeHtml(fields.sendEmail)}<\/p>\r\n\r\n          <p style=\"margin-top:6px;\">\r\n          Victims\u2019 Rights Protection Trust<br\/>\r\n          ${escapeHtml(officeAddress)}<br\/>\r\n          WhatsApp: ${escapeHtml(whatsapp)} | Email: ${escapeHtml(fields.sendEmail)}\r\n          <\/p>\r\n        <\/div>`;\r\n\r\n      return `\r\n        <!doctype html>\r\n        <html>\r\n          <head>\r\n            <meta charset=\"utf-8\" \/>\r\n            <title>Self Declaration - ${escapeHtml(name)}<\/title>\r\n            <style>\r\n              body{font-family: Arial, Helvetica, sans-serif; color:#111; padding:20px;}\r\n              h2{color:#0b4f8c;}\r\n              ol{line-height:1.55;}\r\n            <\/style>\r\n          <\/head>\r\n          <body>\r\n            ${header}\r\n            ${declarantSection}\r\n            ${recipientSection}\r\n            ${body}\r\n            ${verification}\r\n          <\/body>\r\n        <\/html>\r\n      `;\r\n    }\r\n\r\n    \/\/ Get form values\r\n    function getFormValues(){\r\n      return {\r\n        addressedTo: document.getElementById('addressedTo').value.trim(),\r\n        trustReg: document.getElementById('trustReg').value.trim(),\r\n        dateField: document.getElementById('dateField').value.trim(),\r\n        uptoField: document.getElementById('uptoField').value.trim(),\r\n        name: document.getElementById('name').value.trim(),\r\n        fatherName: document.getElementById('fatherName').value.trim(),\r\n        age: document.getElementById('age').value,\r\n        profession: document.getElementById('profession').value.trim(),\r\n        permanentAddress: document.getElementById('permanentAddress').value.trim(),\r\n        citystatepin: document.getElementById('citystatepin').value.trim(),\r\n        mobile: document.getElementById('mobile').value.trim(),\r\n        email: document.getElementById('email').value.trim(),\r\n        org: document.getElementById('org').value.trim(),\r\n        convenor: document.getElementById('convenor').value.trim(),\r\n        officeAddress: document.getElementById('officeAddress').value.trim(),\r\n        whatsapp: document.getElementById('whatsapp').value.trim(),\r\n        sendEmail: document.getElementById('sendEmail').value.trim()\r\n      };\r\n    }\r\n\r\n    \/\/ Preview handler\r\n    document.getElementById('previewBtn').addEventListener('click', function(){\r\n      const vals = getFormValues();\r\n      const html = buildLetterHTML(vals);\r\n      const previewDiv = document.getElementById('preview');\r\n      const docPreview = document.getElementById('docPreview');\r\n      docPreview.innerHTML = html;\r\n      previewDiv.style.display = 'block';\r\n      document.getElementById('statusMsg').innerText = '';\r\n      \/\/ Scroll to preview\r\n      previewDiv.scrollIntoView({behavior:'smooth', block:'center'});\r\n    });\r\n\r\n    \/\/ Generate .doc (HTML saved as .doc) Blob\r\n    function generateDocFile(filename){\r\n      const vals = getFormValues();\r\n      const html = buildLetterHTML(vals);\r\n      \/\/ Word opens HTML saved with .doc extension. Use proper meta.\r\n      const docBlob = new Blob([\r\n        '<html><head><meta charset=\"utf-8\"><\/head><body>',\r\n        html,\r\n        '<\/body><\/html>'\r\n      ], {type: \"application\/msword;charset=utf-8\"});\r\n      const file = new File([docBlob], filename, {type: \"application\/msword\"});\r\n      return { file, html };\r\n    }\r\n\r\n    \/\/ Download fallback\r\n    document.getElementById('downloadBtn').addEventListener('click', function(){\r\n      const vals = getFormValues();\r\n      const safeName = (vals.name || 'declaration').replaceAll(\/\\s+\/g,'_');\r\n      const filename = `${safeName}_declaration.doc`;\r\n      const { file } = generateDocFile(filename);\r\n      const url = URL.createObjectURL(file);\r\n      const a = document.createElement('a');\r\n      a.href = url;\r\n      a.download = filename;\r\n      document.body.appendChild(a);\r\n      a.click();\r\n      a.remove();\r\n      URL.revokeObjectURL(url);\r\n      document.getElementById('statusMsg').innerText = 'Downloaded file. Attach & send to ' + document.getElementById('sendEmail').value;\r\n    });\r\n\r\n    \/\/ Confirm & Send handler\r\n    document.getElementById('confirmBtn').addEventListener('click', async function(){\r\n      const status = document.getElementById('statusMsg');\r\n      status.innerHTML = '';\r\n      const vals = getFormValues();\r\n\r\n      \/\/ basic validation: ensure name and address present and sendEmail exists\r\n      if(!vals.name){ status.innerHTML = '<span class=\"error\">Please enter your Name.<\/span>'; return; }\r\n      if(!vals.permanentAddress){ status.innerHTML = '<span class=\"error\">Please enter permanent address.<\/span>'; return; }\r\n      if(!vals.sendEmail){ status.innerHTML = '<span class=\"error\">Please set destination email.<\/span>'; return; }\r\n\r\n      \/\/ Build file\r\n      const safeName = (vals.name || 'declaration').replaceAll(\/\\s+\/g,'_');\r\n      const filename = `${safeName}_declaration.doc`;\r\n      const { file, html } = generateDocFile(filename);\r\n\r\n      \/\/ Show preview\r\n      document.getElementById('docPreview').innerHTML = html;\r\n      document.getElementById('preview').style.display = 'block';\r\n      document.getElementById('preview').scrollIntoView({behavior:'smooth', block:'center'});\r\n\r\n      \/\/ Attempt to send via FormSubmit (client-side POST)\r\n      \/\/ FormSubmit endpoint: https:\/\/formsubmit.co\/EMAIL\r\n      const endpoint = 'https:\/\/formsubmit.co\/' + encodeURIComponent(vals.sendEmail);\r\n\r\n      status.innerHTML = 'Sending... Please wait.';\r\n      try{\r\n        \/\/ Build FormData\r\n        const fd = new FormData();\r\n        fd.append('DeclarationFile', file); \/\/ key name arbitrary\r\n        \/\/ Add a few fields for email body\r\n        fd.append('Name', vals.name);\r\n        fd.append('Email', vals.email || '');\r\n        fd.append('Mobile', vals.mobile || '');\r\n        fd.append('Subject', 'Investor Declaration from ' + (vals.name || 'Investor'));\r\n        fd.append('_template', 'table'); \/\/ optional FormSubmit template\r\n        fd.append('_autoresponse', 'We have received your declaration.'); \/\/ optional\r\n        \/\/ Note: FormSubmit requires no API key for simple form POSTs.\r\n        \/\/ Attempt fetch POST\r\n        const resp = await fetch(endpoint, {\r\n          method: 'POST',\r\n          mode: 'cors',\r\n          body: fd\r\n        });\r\n\r\n        if(resp && (resp.status === 200 || resp.status === 302 || resp.status === 0 || (resp.status >= 200 && resp.status < 400))){\r\n          status.innerHTML = '<span class=\"success\">Successfully submitted. A copy has been sent to ' + vals.sendEmail + ' (if supported by the service).<\/span>';\r\n        } else {\r\n          \/\/ Non-2xx: fallback\r\n          status.innerHTML = '<span class=\"error\">Automatic sending failed (server returned status ' + resp.status + '). A downloadable file has been prepared below for manual email.<\/span>';\r\n          \/\/ offer download link\r\n          fallbackDownload(file);\r\n        }\r\n      } catch(err){\r\n        console.error(err);\r\n        status.innerHTML = '<span class=\"error\">Automatic sending blocked by browser\/CORS. Please download the Word file and send manually (or use the fallback mail link).<\/span>';\r\n        fallbackDownload(file);\r\n      }\r\n    });\r\n\r\n    \/\/ Fallback: create download link + mailto prefill\r\n    function fallbackDownload(file){\r\n      const url = URL.createObjectURL(file);\r\n      const a = document.createElement('a');\r\n      a.href = url;\r\n      a.download = file.name;\r\n      a.textContent = 'Click here to download the Word file';\r\n      a.style.display = 'inline-block';\r\n      a.style.marginLeft = '8px';\r\n      a.style.fontWeight = '600';\r\n      document.getElementById('statusMsg').appendChild(document.createElement('br'));\r\n      document.getElementById('statusMsg').appendChild(a);\r\n\r\n      \/\/ Create a mailto link with subject and body instructing to attach the file\r\n      const sendEmail = encodeURIComponent(document.getElementById('sendEmail').value || 'forvictimsprotection@gmail.com');\r\n      const subj = encodeURIComponent('Investor Declaration - ' + (document.getElementById('name').value || 'Investor'));\r\n      const body = encodeURIComponent('Dear Trust,\\n\\nPlease find attached my signed declaration (downloaded from the web form). I am sending this as part of the Victims Rights collective submission.\\n\\nRegards,\\n' + (document.getElementById('name').value || '') + '\\nMobile: ' + (document.getElementById('mobile').value || '') + '\\n\\n(Attach the downloaded .doc file to this email before sending.)');\r\n      const mailto = 'mailto:' + sendEmail + '?subject=' + subj + '&body=' + body;\r\n\r\n      const mailLink = document.createElement('a');\r\n      mailLink.href = mailto;\r\n      mailLink.textContent = 'Or click here to open your email client and send (remember to attach the downloaded file)';\r\n      mailLink.style.display = 'block';\r\n      mailLink.style.marginTop = '8px';\r\n      document.getElementById('statusMsg').appendChild(mailLink);\r\n    }\r\n\r\n    \/\/ Small polyfill for replaceAll with regex handling in older browsers\r\n    if(!String.prototype.replaceAll){\r\n      String.prototype.replaceAll = function(search,replace){\r\n        if(Object.prototype.toString.call(search) === '[object RegExp]'){\r\n          return this.replace(search, replace);\r\n        }\r\n        return this.split(search).join(replace);\r\n      };\r\n    }\r\n  <\/script>\r\n<\/body>\r\n<\/html>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Self-Declaration &#038; Authority \u2014 Victims&#8217; Rights Protection Trust VRPT SELF-DECLARATION &#038; AUTHORITY TO REPRESENT INVESTOR Victims\u2019 Rights Protection Trust \u2014 Prepare, preview &#038; send declaration (up to 30th Sep 2025) To, (Trust Details are prefilled below \u2014 you may change if needed) Trust Registration No. (prefilled) Addressed To (prefilled) Sri Kalle Nagaraja Giri Prasad, Convenor Sri Mamillapally Vijaykumar, Co-Convenor Victims\u2019 Rights Protection Trust Barkatpura, Hyderabad Date (This declaration pertains to matters and calculations up to) Declarant \/ Investor Details Name Father \/ Husband&#8217;s Name Age (years) Profession \/ Occupation As per Aadhaar &#8211; Permanent Address City \/ State \/ PIN Mobile \/ WhatsApp No. E-Mail Recipient \/ Authorized Representative Details (prefilled) Organization Convenor Office Address 3-4-1005\/6, Dantupally Chambers, Barkatpura, Beside Rajadhani Bank, Hyderabad, Telangana 500027 WhatsApp Send Declaration File To (email) Preview Declaration Confirm &#038; Send Download Word File Fields background is yellow and border is red as requested. Preview shows letter exactly as will be sent. &#8220;Confirm &#038; Send&#8221; will try to POST the generated Word (.doc) file to FormSubmit (serverless email service) and send it to the specified email. If automatic sending is blocked by the browser\/CORS, you&#8217;ll get a downloadable Word file to attach manually. Note: This page generates a Word-compatible .doc file (HTML saved as .doc) which Microsoft Word or LibreOffice will open. The &#8220;Confirm &#038; Send&#8221; flow attempts to send the .doc as an attachment using FormSubmit (https:\/\/formsubmit.co\/) by posting the file from your browser \u2014 this works when FormSubmit accepts the client POST. If the browser blocks cross-origin posting, the script will fall back to providing the downloadable file and a mailto link so you can attach &#038; send manually.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-10603","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/indianbrahmins.com\/index.php\/wp-json\/wp\/v2\/pages\/10603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/indianbrahmins.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/indianbrahmins.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/indianbrahmins.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/indianbrahmins.com\/index.php\/wp-json\/wp\/v2\/comments?post=10603"}],"version-history":[{"count":17,"href":"https:\/\/indianbrahmins.com\/index.php\/wp-json\/wp\/v2\/pages\/10603\/revisions"}],"predecessor-version":[{"id":12213,"href":"https:\/\/indianbrahmins.com\/index.php\/wp-json\/wp\/v2\/pages\/10603\/revisions\/12213"}],"wp:attachment":[{"href":"https:\/\/indianbrahmins.com\/index.php\/wp-json\/wp\/v2\/media?parent=10603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}