function ViewImage(ifile,ix,iy,ileft,itop,ititle) { 
	var win;
	var sWidth;
	var sHeight;
	var ie = (document.all)? true:false;
	var n4 = (document.layers)? true:false;
	var n6 = (ie==false && document.getElementById)? true:false;

	win = window.open("","imageviewer","width="+ix+",height="+iy+",left="+ileft+",top="+itop+",screenX="+ileft+",screenY="+itop+"menubar=no,toolbar=no");
	if (n4) {
		sWidth = win.innerWidth;
		sHeight = win.innerHeight;
		} 
	else if (n6) {
		sWidth = win.document.body.clientWidth;
		sHeight = win.document.body.clientHeight;
		}
	else {
		sWidth = win.document.body.clientWidth;
		sHeight = win.document.body.clientHeight;
		}
		
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
}
