IE=navigator.appName=="Netscape" && !document.getElementById?false:true;

function zoom(src,w,h) {

        html='<html><head><title>.:: Softtree Technologies Inc. ::.</title>'+'</head><body style="margin:0;padding:5px; background:#000;" onload="focus()">'+
		'<a href="#" OnClick="javascript:window.close();"><img src="'+src+'" border=0 title="Click the image to close this window" width='+w+' height='+h+'></a></body></html>';
	//var wX;
	//var hY;
	
  //if (typeof window.innerHeight != 'undefined') && (typeof window.innerWidth != 'undefined') {
    //wX = window.innerWidth;
	//hY= window.innerHeight;
	//} else if (typeof document.body.clientHeight != 'undefined') && (typeof document.body.clientWidth != 'undefined') {
//    wX = document.body.clientWidth;
	//hY = document.body.clientHeight;
	//}
	var wX = document.body.clientWidth;
	var hY = document.body.clientHeight;
		//alert(w+" / "+h);
		
	var scR=0;
	if (w > wX) { w=wX-30; scR=1; }
	if (h > hY) { h=hY-39; scR=1; }
		//alert(scR +" / "+ wX +" / "+hY +"\n"+ w+" / "+h);	
        if (IE) {
        	w = +w+20;
	        h = +h+62;   
		
			if (scR == 1) {
win=window.open('','_blank','width='+w+',height='+h+',resizable,top=50,scrollbars');
			} else {
win=window.open('','_blank','width='+w+',height='+h+',resizable,top=50');
}			
                win.document.open();
                win.document.write(html);
                win.document.close(); 
                win.resizeTo(w,h);

        
        }
        else {
  
win=window.open(src,'_blank','width='+w+',height='+h+',resizable=yes'+',top=50');
        }
                win.document.open();
                win.document.write(html);
                win.document.close(); 
                win.resizeTo(w,h);
          }

