function apri(imageName,imageWidth,imageHeight) {
//	imageWidth=465;
//	imageHeight=640;
//	alt=title;
	alt="Zoom";

	var adj=1;
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var posLeft=0;
	var posTop=0;

//	if (imageHeight > (h*1)-adj || imageWidth > w-adj){
//		imageHeight=imageHeight-adj;
//		imageWidth=imageWidth-adj;
//	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	imageWidth = parseInt(imageWidth);		
	imageHeight = parseInt(imageHeight);		
	scrWidth = parseInt(imageWidth+4);		
	scrHeight = parseInt(imageHeight+4);		
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
		newWindow = window.open("zooming.html","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop+",scrollbars=no,resizable=yes,status=no");
		newWindow.document.open();
		newWindow.document.write('<html><title>'+alt+'</title><body marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginheight="0" bgcolor="#ffffff" onBlur="self.close()" onClick="self.close()">');  
		newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+imageHeight+' ><tr><td>');
		newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
		newWindow.document.write('</td></tr></table></body></html>');
		newWindow.document.close();
		newWindow.focus();
	}
}

