Tax Compliance Risk Analyzer
Assess your potential tax compliance risk areas based on a self-guided questionnaire.
Enter Your Business Information
Answer the Following Questions
Risk Analysis Report
Disclaimer: This is a high-level risk assessment tool for informational purposes only and does not constitute tax or legal advice. Consult with a qualified professional for guidance specific to your situation.
No specific high-risk items were identified based on your responses.
`; } outputDiv.innerHTML = tableHTML; } // Download PDF functionality function downloadPdf() { const { jsPDF } = window.jspdf; const doc = new jsPDF(); const companyName = document.getElementById('companyName').value || 'N/A'; const summaryTitle = document.querySelector('#report-summary h3').textContent; const summaryText = document.querySelector('#report-summary p').textContent; doc.setFontSize(18); doc.text("Tax Compliance Risk Report", 14, 22); doc.setFontSize(11); doc.setTextColor(100); doc.text(`Company: ${companyName}`, 14, 32); doc.text(`Date: ${new Date().toLocaleDateString('en-US')}`, 14, 38); doc.setFontSize(12); doc.setFont(undefined, 'bold'); if (summaryTitle.includes('High')) doc.setTextColor('#dc2626'); else if (summaryTitle.includes('Medium')) doc.setTextColor('#f59e0b'); else doc.setTextColor('#16a34a'); doc.text(summaryTitle, 14, 50); doc.setFont(undefined, 'normal'); doc.setTextColor(100); const splitSummary = doc.splitTextToSize(summaryText, 180); doc.text(splitSummary, 14, 56); const reportTable = document.getElementById('report-table'); if(reportTable) { doc.autoTable({ html: '#report-table', startY: doc.previousAutoTable.finalY + 15 || 80, theme: 'grid', headStyles: { fillColor: [241, 245, 249], textColor: [51, 65, 85] }, styles: { cellPadding: 3, fontSize: 9 }, }); } const pageCount = doc.internal.getNumberOfPages(); for(let i = 1; i <= pageCount; i++) { doc.setPage(i); doc.setFontSize(8); doc.setTextColor(150); doc.text('Disclaimer: This tool is for informational purposes only and does not constitute legal or tax advice.', 14, doc.internal.pageSize.height - 10); } doc.save('Tax_Compliance_Risk_Report.pdf'); } // --- EVENT LISTENERS --- tabs.forEach((tab, index) => tab.addEventListener('click', () => switchTab(index))); nextBtn.addEventListener('click', () => currentTab < tabs.length - 1 && switchTab(currentTab + 1)); prevBtn.addEventListener('click', () => currentTab > 0 && switchTab(currentTab - 1)); document.getElementById('downloadPdfBtn').addEventListener('click', downloadPdf); // --- INITIALIZATION --- createQuestionnaire(); updateTabs(); });