$action = parametro("action", SYS_NINGUNO);
$xHP->init();
$xFRM = new cHForm("frm", "./");
$xBtn = new cHButton();
$xTxt = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
$xHNot = new cHNotif();
$msg = "";
$xRPT = new cPanelDeReportes(iDE_AML, "aml.legal");
$xRPT->setConFechas();
//$xRPT->addFechaInicial();
//$xRPT->OFRM()->addToolbar("<div class='noticon'> <i class='fa fa-warning fa-lg'></i> <span id='numeroerrores' class='noticount'>0</span></div><div class='noticon'> <i class='fa fa-newspaper-o fa-lg'></i><span id='numeroregistros' class='noticount'>0</span></div>");
//$xRPT->OFRM()->addToolbar($xHNot->getNoticon("numeroerrores", $xHNot->NOTICE) . $xHNot->getNoticon("numeroregistros", $xHNot->ic()->REGISTROS));
//$xRPT->OFRM()->addDivSolo($xHNot->getNoticon("numeroerrores", $xHNot->NOTICE) . "<label>ERRORES</label>", $xHNot->getNoticon("numeroerrores", $xHNot->NOTICE), "tx24", "txt24");
$xRPT->OFRM()->addHElem($xRPT->addFechaFinal("TR.Fecha de Corte"));
$xRPT->addCheckBox("TR.Definitivo", "definitivo");
$xhtm = "<h2>Errores</h2><p id='mensajesdelreporte' class='warn'></p>";
//$xRPT->addFooterBar($xhtm);// $xHNot->get($xhtm, "idnoticias", $xHNot->WARNING) );
echo $xRPT->get();
echo $xRPT->getJs();
//$jxc ->drawJavaScript(false, true);
?>
<script>
function jsBlurListaDeReportes(){
	jsDiagnosticoReporte();
}
function jsDiagnosticoReporte(){
	var fechaFinal		= $('#idfecha-1').val();
	var idreporte		= $('#idreporte').val();
	var idsucursal		= $('#idsucursal').val();