${$('#preview').innerHTML} \n`); w.document.close(); setTimeout(()=>{try{w.focus();w.print();}catch(e){}},300); } function doClear(){ Object.keys(state).forEach(k=>{ if(k==='effDate')state[k]=new Date().toISOString().slice(0,10); else if(k==='p1Share')state[k]=50; else if(k==='p2Share')state[k]=50; else if(k==='termYears')state[k]=0; else if(k==='withdrawNotice')state[k]=90; else state[k]=''; }); saveState(); renderForm(); renderPreview(); } function loadExample(){ state={pName:'Carter & Hayes Consulting',bizPurpose:'providing management consulting, strategy advisory and business transformation services to small and medium-sized enterprises.',effDate:new Date().toISOString().slice(0,10),p1Name:'Robert J. Carter',p1Addr:'55 Elm Street\nAustin, TX 78701',p1Contrib:'$60,000 cash',p1Share:55,p2Name:'Sarah L. Hayes',p2Addr:'210 Cedar Avenue\nAustin, TX 78702',p2Contrib:'$40,000 cash plus client list',p2Share:45,bizAddr:'120 Commerce Street, Suite 8, Austin, TX 78701, USA',termYears:0,authority:'equal authority to sign contracts and bind the Partnership up to $25,000 per transaction',banking:'a joint business bank account requiring both Partners\' signatures for withdrawals above $10,000; annual audit by an independent CPA',withdrawNotice:90,jurisdiction:'the State of Texas, United States of America'}; saveState(); renderForm(); renderPreview(); } loadState(); renderForm(); renderPreview(); $('#toolbar').innerHTML = ``; GZ.renderToolPage({ category: 'text', titleKey: 'toolTitle', descKey: 'toolDesc', howToSteps: ['step1','step2','step3','step4'], related: [ {icon:'💼', href:'/text/employment-contract.html', name:'Employment Contract'}, {icon:'🤝', href:'/text/independent-contractor-agreement.html', name:'Contractor Agreement'}, {icon:'🏠', href:'/text/lease-agreement.html', name:'Lease Agreement'}, {icon:'🔒', href:'/text/nda-generator.html', name:'NDA Generator'}, ] });