function previewPortal(enlace,abrir){ var aux=" /portal/contratante"; aux = aux + '/pc_contenedor1.jsp'+"?seccion="; enlace=enlace.substring(2,enlace.length); if(aux.indexOf("?") == -1) aux = aux + enlace; else enlace = enlace.replace('?','&'); aux = aux + enlace; if(aux.indexOf("?") == -1) aux+="?language="+'es'; else aux+="&language="+'es'; aux+="&codResi="+1; aux+="&layout="+'pc_contenedor1.jsp'; if(abrir == "1") open(aux,""); else{ parent.location.href=aux; } }