var javadminhighlight = 0; var javaadminhighdisabled = false; var javaadminhighdisabled_click = false; var high_container = ""; var high_container_count = 0; function JavAdminHighlight(el, act, lang) { if(el){ var amount = el.childNodes.length; var array = new Array(); javadminhighlight++; if(act == "select" && javaadminhighdisabled_click == false){ if(high_container.match("{"+el.id+"}")) { high_container = high_container.replace("{"+el.id+"}", ""); high_container_count--; } else { high_container = high_container+"{"+el.id+"}"; high_container_count++; } var span = document.getElementById('javadmnhighlight_selected'+lang); if(span){ if(high_container.length > 0) { span.className = "txt"; var child = span.childNodes[1]; if(child) { child.disabled = false; } document.getElementById('f_selected_post'+lang).value = high_container; } else { span.className = "grey"; var child = span.childNodes[1]; if(child){ child.disabled = true; } } } } for(i=0; i