function Ask(question, pageurl) { Check = window.confirm(question); if (Check == true){ document.location.href=pageurl; } } function pullout(id, tid) { var obj=document.getElementById(id); var tobj=document.getElementById(tid); if(obj.style.display=='none') { obj.style.display='block'; obj.style.position='relative'; tobj.innerHTML='[ Weniger anzeigen ]'; } else { obj.style.display='none'; tobj.innerHTML='[ Alles anzeigen ]'; } } function CheckLen(target,max,countfield){ var wert; wert = max-target.value.length; if (wert < 0) { target.value = target.value.substring(0,max); wert = max-target.value.length; countfield.value = wert; } else { countfield.value = max - target.value.length; } }