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("