function report_error(msg,url,lno){if(frames['FrameRegistraErro']!=undefined){if(frames['FrameRegistraErro'].document.form1=!undefined){frames['FrameRegistraErro'].document.writeln('<form name="form1" method="post" enctype="multipart/form-data" action="erro_js.cfm">');frames['FrameRegistraErro'].document.writeln('<input type="Hidden" name="msg" value=""> ');frames['FrameRegistraErro'].document.writeln('<input type="text" name="url" value=""> ');frames['FrameRegistraErro'].document.writeln('<input type="Hidden" name="lno" value=""> ');frames['FrameRegistraErro'].document.writeln('<input type="Hidden" name="httporigem" value=""> ');frames['FrameRegistraErro'].document.writeln('</form>')}frames['FrameRegistraErro'].document.form1.msg.value=msg.replace(/\'/g,"\"");frames['FrameRegistraErro'].document.form1.url.value=url.replace(/\'/g,"\"");frames['FrameRegistraErro'].document.form1.lno.value=lno;frames['FrameRegistraErro'].document.form1.httporigem.value=document.referrer.replace(/\'/g,"\"");frames['FrameRegistraErro'].document.form1.submit();return true}else{return false}}window.onerror=report_error;
