$xFRM->addHElem("<div class='tx4'><label for='f1'>" . $xFRM->lang("archivo") . "</label><input type='file'  name='f1' id='f1'  /></div>");
    $xFRM->addHElem($xSel->get("", "TR.tipo de importacion"));
    //$xFRM->addHElem( $xTxt2->getDeMoneda("idnumeropagina", $xFRM->lang("numero de", "pagina")) );
    $xFRM->addHElem($xTxt->get("idobservaciones", "", "Observaciones"));
    $xFRM->addSubmit();
    $xFRM->addFootElement('<input type="hidden" name="MAX_FILE_SIZE" value="1024000">');
    echo $xFRM->get();
} else {
    $doc1 = isset($_FILES["f1"]) ? $_FILES["f1"] : false;
    $observaciones = isset($DDATA["idobservaciones"]) ? $DDATA["idobservaciones"] : "";
    $tipoimportacion = isset($DDATA["idtipoimportacion"]) ? $DDATA["idtipoimportacion"] : "SDN";
    $xFil = new cFileImporter();
    $limit = $tipoimportacion == "SDN" ? 12 : 6;
    $xFil->setLimitCampos($limit);
    $xFil->setCharDelimiter("|");
    $xFil->setType("PIP");
    //var_dump($_FILES["f1"]);
    if ($xFil->processFile($doc1) == true) {
        $data = $xFil->getData();
        foreach ($data as $valores => $cont) {
            $id = $xT->cInt($cont[0]);
            switch ($tipoimportacion) {
                case "SDN":
                    $xFil->setDataRow($cont);
                    /*
                    4149|"CAVIEDES CRUZ, Leonardo"|"individual"|"SDNT"|
                    -5  - 6  - 7  - 8  -  9 - 10 - 11
                    -0- |-0- |-0- |-0- |-0- |-0- |-0-
                    -12 
                    |"DOB 23 Nov 1952; Cedula No. 16593470 (Colombia); Passport AB151486 (Colombia); alt. Passport AC444270 (Colombia); alt. Passport OC444290 (Colombia)." 
                    					 * */