function applyVisibility(tag_id, flag) { document.getElementById(tag_id).style.visibility = flag == true ? "visible" : "hidden"; } /**verändert die Buttons */ function changeButton(id,flag){ var obj = document.getElementById(id); var src = obj.src; if(flag){ if(src.match(/_on/)){ return; }else{ obj.src = src.replace(/.gif/,"_on.gif"); } } else{ if(!src.match(/_on/)){ return; }else{ obj.src = src.replace(/_on.gif/,".gif"); } } return 'kl'; } function changeButton2(obj, flag, width){ if(flag) obj.style.backgroundPosition = '-'+width+'px 0px'; else obj.style.backgroundPosition = '0px 0px'; } function changeButtonBackground(obj, color){ obj.style.backgroundColor = color; } function changeButton2(obj, flag, width){ if(flag) obj.style.backgroundPosition = '-'+width+'px 0px'; else obj.style.backgroundPosition = '0px 0px'; } /*lässt die dazuegehörigen(übergebenen OrderButtons aufleuchten) und ruft nach eine Sekunde die methode auf die buttons wieder auszuschalten */ order_button_array = new Array(); function blinkOrder(){ for(fx in order_button_array){ changeButton(fx,true); } window.setTimeout("blinkOrderOff()",1000); } /*schaltet die Order Buttons wieder aus */ function blinkOrderOff(){ for(fx in order_button_array){ changeButton(fx,false); } } function historyBack(){ window.history.back(); } function historyForward(){ window.history.forward(); } function myPrint(){ window.print(); } //ertsellt eine Cookie assoziatives Array function getCookieArray(){ var ret = new Array(); var arr = document.cookie.split(';'); for(fx in arr){ var tmp = arr[fx].split('='); if(tmp && tmp[0] && tmp[1]){ tmp[0] = tmp[0].replace(/ /,''); tmp[1] = tmp[1].replace(/ /,''); ret[tmp[0]] = tmp[1]; } } return ret; } //gibt den Cookie mit denNamen zurück function getCookie(key){ var tmp = getCookieArray(); return tmp[key]; } //schreibmaschine var text = ""; var zaehler=0; function mySchreib(str){ text = str; schreib(); } function schreib(){ var ch = text.charAt(zaehler); if(document.all) document.getElementById('ssh_desc').innerHTML += ch; else document.getElementById('ssh_desc').firstChild.nodeValue += ch; zaehler++; if (zaehler