';
}
return cadena
}
function filtrarIdsNoticias (listadoIds){
listadoIds = listadoIds.replace("noticia:","");
listadoIds = listadoIds.replace("noticias:","");
listadoIds = listadoIds.replace(/}/g,"");
listadoIds = listadoIds.replace(/{/g,"");
listadoIds = listadoIds.replace("[","");
listadoIds = listadoIds.replace("]","");
listadoIds = listadoIds.replace(/id_act_not=/g,"");
return listadoIds;
}
function noticiaSiguiente(id_noti_actual, listadoIds){
var textIni ="| siguiente";
listadoNoticias = filtrarIdsNoticias(listadoIds).split(",");
var i = 0;
while(i < listadoNoticias.length){
if(listadoNoticias[i] == id_noti_actual){
if(i == listadoNoticias.length-1)
return " ";
else{
return textIni + listadoNoticias[i+1] + textFin;
}
}
i++;
}
return " ";
}
function noticiaAnterior(id_noti_actual, listadoIds){
var textIni ="anterior |";
listadoNoticias = filtrarIdsNoticias(listadoIds).split(",");
var i = 0;
while(i < listadoNoticias.length){
if(listadoNoticias[i] == id_noti_actual){
if(i == 0)
return " ";
else{
return textIni + listadoNoticias[i-1] + textFin;
}
}
i++;
}
return " ";
}
function fRedimensiona(){
total=0;
var a = document.getElementById('area_search');
if(a != null && a.value != ""){
total=total+document.getElementById('area_search').offsetHeight;
}
var b = document.getElementById('area_tab');
if(b != null && b.value != ""){
total=total+document.getElementById('area_tab').offsetHeight;
}
var c = document.getElementById('area_footer');
if(c != null && c.value != ""){
total=total+document.getElementById('area_footer').offsetHeight;
}
var d = document.getElementById('div_fichaTxtG');
if(d != null && d.value != ""){
total=total+document.getElementById('div_fichaTxtG').offsetHeight;
}
var e = document.getElementById('iMcabe');
if(e != null && e.value != ""){
total=total+document.getElementById('iMcabe').offsetHeight;
}
var f = document.getElementById('isubCabNot');
if(f != null && f.value != ""){
total=total+document.getElementById('isubCabNot').offsetHeight;
}
if(total<840){
total='840';
}
//alert(total)
top.document.getElementById("ajuste").style.height=(total+a+b+c)+'px';
top.document.getElementById("div_body").style.height=(total)+'px';
}
//-->