//coded by Julio Lau; email: afn45039@afn.org var commonimg = ""; var collapseimg = ""; function Topics(id) { var urlstr = window.document.location.href; var idx = urlstr.indexOf("="); var id2 = urlstr.substr(idx+1); if(urlstr.indexOf("Expand")>0) { if(id==id2) {document.location.href="/ulima.nsf/SeccionesSERVICIO?OpenView&Collapse=" + id;} else { document.location.href="/ulima.nsf/SeccionesSERVICIO?OpenView&Expand=" + id;} } if(urlstr.indexOf("Collapse")>0) { document.location.href="/ulima.nsf/SeccionesSERVICIO?OpenView&Expand=" + id; } if((urlstr.indexOf("Collapse")==-1) && (urlstr.indexOf("Expand")==-1)) { document.location.href="/ulima.nsf/SeccionesSERVICIO?OpenView&Expand=" + id; } } function doImage(id) { var urlstr = window.document.location.href; var idx = urlstr.indexOf("="); var id2 = urlstr.substr(idx+1); if(urlstr.indexOf("Expand")>0) { if(id==id2) {document.write(collapseimg);} else { document.write(commonimg);} } if(urlstr.indexOf("Collapse")>0) { document.write(commonimg);} if((urlstr.indexOf("Collapse")==-1) && (urlstr.indexOf("Expand")==-1)) { document.write(commonimg); } } function doImage2(id) { var urlstr = window.document.location.href; var idx = urlstr.indexOf("="); var id2 = urlstr.substr(idx+1); if(urlstr.indexOf("Expand")>0) { if(id==id2) { } else { document.write(""); } } if(urlstr.indexOf("Collapse")>0) { document.write("");} if((urlstr.indexOf("Collapse")==-1) && (urlstr.indexOf("Expand")==-1)) { document.write(""); } }