/* 03/12/2010 05:34:21 AM */ function AbreSeccion(){ var p2 = AbreSeccion.arguments[1]; var p1 = AbreSeccion.arguments[0]; var param = ''; if ( p2.indexOf('&Pag=') >= 0 ) { param = p2.substr( 0 , p2.indexOf( '&Pag=' ) ); } else { param = p2 ; } param = param + '&Pag=' + p1; window.document.location.href = param; } function dospacer(){ var dir_img2 = 'imagenes/cea/'; if ( cuentalineas < maxlineas -1 ) { document.write(''); cuentalineas = cuentalineas + 1; } } function Enlaces(){ var obj = Enlaces.arguments[0]; var idx = obj.selectedIndex; if (obj.options[idx].value != null && obj.options[idx].value != "" && idx != currentSelection ) { window.document.location.href= obj.options[idx].value; } } function abreBD(){ var currentVal = ""; var rtc =""; var rtctxt = ""; var obj = window.document.forms[0]; var cad = ""; var vista = ""; var id = ""; var obj2 = ""; var obj2idx = ""; var valor = ""; var param = abreBD.arguments[0]; if ( obj.dn.value == "" || obj.dn.value == null ) { // pag. principal if ( param.indexOf('http://') == 0 ) { // link externo window.open( param ); } else { if ( param.indexOf( CurrentDB ) == 0 ) { // misma pagina vista = abreBD.arguments[1]; id = abreBD.arguments[0]; currentVal = currentSelection; rtc = window.document.vars.rtc.value; rtctxt = ( rtc == "" || rtc == null ) ? '' : '&rtc=' + rtc; window.document.location.href= CurrentDB + vista + '/' + id + '?Opendocument&cat=' + currentVal + '&dn=' +docn + rtctxt; } else { // info interna cad = abreBD.arguments[0].split('|'); vista = cad[2]; id = cad[0]; currentVal = cad[1]; obj2 = window.document.AccRapido; obj2idx = obj2.combo_bd.selectedIndex; valor = obj2.combo_bd.options[obj2idx].value; window.document.location.href= CurrentDB + vista + '/' + id + '?Opendocument&cat=' + currentVal + '&dn=' +docn + rtctxt; } } } else { // pag. interior vista = abreBD.arguments[1]; id = abreBD.arguments[0]; currentVal = currentSelection; rtc = window.document.vars.rtc.value; rtctxt = ( rtc == "" || rtc == null ) ? '' : '&rtc=' + rtc; window.document.location.href= CurrentDB + vista + '/' + id + '?Opendocument&cat=' + currentVal + '&dn=' +docn + rtctxt; } } function ImprimirCombo(maxchars,factor,var1,var2,tipocombo,db,vista,func,nom){ function imprimir(palabras,valor) { //Para hallar el #ro de palabras: contPal=0; romper=0; j=0; while(romper==0) { if(palabras[j]!=null) { contPal=contPal+1;} else{ romper=1; } j=j+1; } //Armar linea por linea hasta maximo 40 caracteres por linea sin partir las palabras linea=""; nroCarPal=0; document.writeln('