function expand( id ) { var details = document.getElementById('masTE' + id ); var enlaceMas= document.getElementById( 'expandTE' + id ); var enlaceMenos= document.getElementById( 'contraeTE' + id ); details.style.display = ( details.style.display == 'block' ) ? 'none' : 'block'; enlaceMas.style.display = ( details.style.display == 'block' ) ? 'none' : 'inline'; enlaceMenos.style.display = ( details.style.display == 'block' ) ? 'inline' : 'none'; } function expandLink( id ) { var details = document.getElementById( id ); var enlaceMas= document.getElementById( 'expandTE' + id ); var enlaceMenos= document.getElementById( 'contraeTE' + id ); details.style.display = ( details.style.display == 'block' ) ? 'none' : 'block'; enlaceMas.style.display = ( details.style.display == 'block' ) ? 'none' : 'inline'; enlaceMenos.style.display = ( details.style.display == 'block' ) ? 'inline' : 'none'; } function montre(id) { if (document.getElementById) { document.getElementById(id).style.display="block"; } else if (document.all) { document.all[id].style.display="block"; } else if (document.layers) { document.layers[id].display="block"; } } function cache(id) { if (document.getElementById) { document.getElementById(id).style.display="none"; } else if (document.all) { document.all[id].style.display="none"; } else if (document.layers) { document.layers[id].display="none"; } } function checkrequired(which) { var pass=true; if (document.images) { for (i=0;i)/gi, ''); } $("#search-q").autocomplete('searcher.php', { width: 260, minChars: 1, selectFirst: false }); $("#search-q").result(function(event, data, formatted) { if (data) $(this).parent().next().find("input").val(data[1]); }); $("#addExistTerm").autocomplete('searcher.php?t=e', { width: 260, minChars: 1, selectFirst: false }); $("#addExistTerm").result(function(event, data, formatted) { if (data) $(this).parent().next().find("input").val(data[1]); }); $("#addTerms").autocomplete('searcher.php', { width: 300, multiple: true, matchContains: true, formatItem: formatItem, formatResult: formatResult, multipleSeparator: "\n", minChars: 1 }); $(":text, textarea").result(log).next().click(function() { $(this).prev().search(); }); $("#clear").click(function() { $(":input").unautocomplete(); }); });