<![CDATA[Add Language]]> savelang=function(){ var d=document,i=0,el,e,p=d.getElementById("languages"),v=d.forms["searchform"]["srchLanguage"],ev,re; while((el=d.getElementById("slang"+i))!=null){ ev=el.value; if (el.checked&&d.getElementById(ev)==null){ e=d.createElement("li"); e.id=ev; e.innerHTML=""+ev+""; p.appendChild(e); v.value+=el.value+","; } else if(!el.checked&&(re=d.getElementById(ev))!=null) removelang(re); i++; } var lh=d.getElementById("langhr"); lh.href="#_AddLanguage"; lh.rev=""; var la=d.getElementById("langall"); if (v.value==""&&la==null){ e=d.createElement("li"); e.id="langall"; e.innerHTML="All languages"; p.appendChild(e); } else if (v.value!=""&&la!=null) p.removeChild(la); } Save
]]>