//window.onerror=fehler; //function fehler(){return true;} //alert("uhoUH"); /////////////////////////// // Funktionen zum Drucken // von Seiten function preparePrint(URL) { //newURL="http://www.aichele-werkzeuge.de/templates/printPage.php4?URL="+URL+"&UID="; printWin=window.open("","Print","status=0,location=0,menubar=1,scrollbars=1,toolbar=0,height=705,width=850"); printWin.document.location=URL; printWin.print(); } /////////////////////////// // Funktionen für das Encoden // von Bildern function showImage(imgURL) { IMG=window.open("","IMG","resizable=1,status=0,location=0,menubar=0,scrollbars=0,toolbar=0,height=800,width=800"); IMG.document.location="http://www.aichele-werkzeuge.de/templates/show_image.php5?IMG="+imgURL+"&DOMAIN_HTTP_ROOT=aHR0cDovL3d3dy5haWNoZWxlLXdlcmt6ZXVnZS5kZS8=&SHARED_HTTP_ROOT=aHR0cDovL3d3dy5haWNoZWxlLXdlcmt6ZXVnZS5kZS8=&LANG=de" IMG.focus(); } /////////////////////////// // Funktionen für Resize // von Fenstern function resizeWindow() { height=document.images.bild.height; width=document.images.bild.width; if (navigator.appName.indexOf("Netscape")!=-1 && ((navigator.appVersion.indexOf("5.")!=-1) || (navigator.appVersion.indexOf("6.")!=-1))){ width=width+10; height=height+200; } else{ width=width+12; height=height+180; } if (width<800) width=800; self.resizeTo(width,height); self.focus(); } //////////////////////////// // Liefert die Layer // mit dem übergebenen Namen zurück function get_Layer(name) { tmp=""; if (BROWSER=="OP" || (BROWSER=="NS" && VERSION>=6)) tmp="ELEM=document.getElementById('"+name+"');"; if (BROWSER=="IE" && VERSION>=4) tmp="ELEM=document.all['"+name+"'];"; if (BROWSER=="NS" && VERSION<6) tmp="ELEM=document.layers['"+name+"'];"; eval(tmp); return ELEM; } //////////////////////////// // Ändert die Sichtbarkeit der übergebenen Ebene function set_visibility(ELEM,visibility) { tmp=""; if (BROWSER=="OP" || (BROWSER=="NS" && VERSION>=6)) tmp="ELEM.style.visibility='"+visibility+"';"; if (BROWSER=="IE" && VERSION>=4) tmp="ELEM.style.visibility='"+visibility+"';"; if (BROWSER=="NS" && VERSION<6) tmp="ELEM.visibility='"+visibility+"';"; eval(tmp); return true; } //////////////////////////// // Ändert die Sichtbarkeit der übergebenen Ebene function setbgColor(ELEM,color) { tmp=""; if ((BROWSER=="NS" && VERSION>=6)) tmp="ELEM.style.backgroundColor='"+color+"';"; if ((BROWSER=="OP" && VERSION>=5) || (BROWSER=="IE" && VERSION>=4)) tmp="ELEM.style.background='"+color+"';"; if ( (BROWSER=="NS" && VERSION<6)) tmp="ELEM.background='"+color+"';"; eval(tmp); return true; } //////////////////////////// // Email Decrypt function CrMto(s, shift) { var n=0; var r=""; for(var i=0;i=8364) {n = 128;} r += String.fromCharCode(n-(shift)); } return r; } function linkMCr(sh,s) { location.href=CrMto(s, sh); }