function zoom(img, w, h){ //alert (screen.availWidth+' '+screen.availHeight); var width = w+20; var height = h+20; var zoomWin; //comparing the available size with the image size: if (width < (screen.availWidth-30) & height < (screen.availHeight)-130){ zoomWin = window.open('','zoom'+w+h,'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+width+',height='+height); zoomWin.document.open(); zoomWin.document.write("Bild Detailansicht
"); zoomWin.document.close(); } else { //if the image is bigger than the screen, than only open image-file in the broser, so that the browser can reduce the image size his-self zoomWin = window.open(img,'zoom'+w+h,'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no'); } zoomWin.focus(); //-> Beispiel zur Verwendung: // } function UnCryptMailto(s) { var n=0; var r=""; for(var i=0;i