function ttip(theid,txt){document.getElementById("tttip_"+theid).innerHTML=txt;}function larger(theid){document.getElementById(theid).rows+=3;}function smaller(theid){document.getElementById(theid).rows-=3;}function insertSelection(theid,sText,eText,question){var focusedElement=document.getElementById(theid);if(question!=""){res=prompt(question);if(res){sText=sText.substring(0,sText.length-1)+res+"]";}}if(document.selection){focusedElement.focus();var oRange=document.selection.createRange();oRange.text=sText+oRange.text+eText;oRange.collapse(true);oRange.select();}else{if(focusedElement.selectionStart||focusedElement.selectionStart=="0"){var iStart=focusedElement.selectionStart;focusedElement.value=focusedElement.value.substring(0,iStart)+sText+focusedElement.value.substring(iStart,focusedElement.selectionEnd)+eText+focusedElement.value.substring(focusedElement.selectionEnd,focusedElement.value.length);focusedElement.setSelectionRange(iStart+sText.length,iStart+sText.length);}}}function srchlem(pr,po,tf){var v=$("#"+pr+"ssrcht"+po).val();if(v!=""&&!v.match(/^\s+$/)){showInfos("#"+pr+"sschb"+po,"#"+pr+"sschi"+po);$("#"+pr+"slres"+po).hide().load(da_base+"lemma/searchlemma",{l:v,pr:pr,po:po,tf:tf},function(txt){hideInfos("#"+pr+"sschb"+po,"#"+pr+"sschi"+po);$("#"+pr+"slres"+po).show();});}return false;}function insertlemma(pr,po,tf,u,l){insertSelection(tf,"[w="+u+"]",l+"[/w]","");$("#"+pr+"slres"+po).hide();$("#"+pr+"ssrch"+po).hide();return false;}