</select></th>
				<th>Tipo</th>
				<th><?php 
$xS = new cSelect("cTipoPoliza", "idTipoPoliza", "contable_polizasdiarios");
$xS->addEspOption("todas", "Todas");
$xS->setOptionSelect("todas");
$xS->addEvent("onchange", "jsObtenPolizas");
$xS->show(false);
?>
</th>
			</tr>
		</tbody>
	</table>
<div id="divListado">
<?php 
echo jsaGetPolizas();
?>
</div>
</fieldset>
</form>
</body>
<script  >
var vLSep	= "<?php 
echo STD_LITERAL_DIVISOR;
?>
";
	function jsObtenPolizas(mArg){
		jsaGetPolizas();
	}
	function setValueKey(vKey){
		var vDPoliza = vKey.split(vLSep);
$xHP->init();
$xFRM = new cHForm("frmpolizas", "frm_poliza_contable.php");
$msg = "";
$xBtn = new cHImg();
$xHF = new cHDate();
$xHS = new cHSelect();
$xDiv = new cHDiv();
$xHS->addEvent("jsaGetPolizas()", "onchange");
//`contable_polizasdiarios`
$xHF->addEvents(" onchange=\"jsaGetPolizas()\" ");
$xFRM->addHElem($xHF->get("TR.Fecha"));
$xSelPol = $xHS->getListaDeTiposDePolizas();
$xSelPol->addEspOption(SYS_TODAS, $xFRM->lang("Todas"));
$xSelPol->setOptionSelect(SYS_TODAS);
$xFRM->addHElem($xSelPol->get(true));
$xFRM->addDivSolo(jsaGetPolizas(false, false), "", "tx34", "txt14", array(1 => array("id" => "idlistadopolizas")));
//fecha tipo
$xFRM->OHidden("idpolizaactiva", "", "");
$xFRM->OButton("TR.Agregar", "jsAgregarPoliza()", "agregar");
$xFRM->addCerrar();
$xFRM->addRefrescar("jsaGetPolizas()");
$xFRM->addAviso(" ");
echo $xFRM->get();
?>
<script>
var xG = new Gen();
function jsAgregarPoliza(){ xG.w({ url : "../frmcontabilidad/nueva_poliza.frm.php?", w : 640, h: 480, tiny : true  }); }
function jsAgregarMovimientos(id){	xG.w({ url : "../frmcontabilidad/poliza_movimientos.frm.php?codigo=" + id, w : 800, h: 600, tiny : true  });}
function jsImprimirPoliza(id){ var xCont	= new ContGen(); xCont.ImprimirPoliza(id);}
function jsEliminarPoliza(id){
	$("#idpolizaactiva").val(id);