function zoom(url,MYtitle)
{
t=url;
var CWIN=window.open("","wpictures","top=250,left=450,width=500,height=400,titlebar=1,toolbars=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,border=1")
mhtml="<HTML><HEAD>\n";
mhtml+="<TITLE>"+MYtitle+"</TITLE>\n";
mhtml+="<SCRIPT LANGUAGE=\"JavaScript\">\n";
mhtml+="function resy()\n{\n";
mhtml+="w=document.images['myimg1'].width+8;\n";
mhtml+="h=document.images['myimg1'].height+32;\n";

//mhtml+="if (w>1024) w=1024;\n";
//mhtml+="if (h>768) h=768;\n";

mhtml+="window.resizeTo(w,h);\n";
//mhtml+="alert('h='+h+' :::  w='+w);\n";

mhtml+="}\n";
mhtml+="</SCRIPT>\n</HEAD>\n";
//mhtml+="<body bgcolor='#ffffff' topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 border=0 onblur='window.close();' onload='resy();'>";

mhtml+="<body bgcolor='#ffffff' topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 border=0 onload='resy();'>";
//mhtml+="<a href='javascript:window.close()'><img name='myimg1' id='myimg1' src='"+t+"' border=0 alt='Close window'></a></body>";
mhtml+="<a href='javascript:window.close()' title='"+MYtitle+"'><img name='myimg1' id='myimg1' src='"+t+"' border=0 alt='Close window'></a>\n</body>\n</HTML>";
CWIN.document.open()
CWIN.document.write(mhtml)
//CWIN.document.title=MYtitle;


//var myimg=new Image();
//myimg.src=t;
//CWIN.document.images['myimg1'].src=myimg.src;



//CWIN.document.images['myimg1'].src=myimg.src;


w=CWIN.document['myimg1'].width+8;
h=CWIN.document['myimg1'].height+32;

//if ((w==108)||(h==0))
//{
//alert("zero happend");
//}
//alert("w="+w+"   h="+h);

//CWIN.resizeTo(w,h);
CWIN.resizeBy(w,h);
//CWIN.document.title=MYtitle;
CWIN.document.close();
CWIN.focus();
/*
for (ii=50;ii>0;ii--)
{
	CWIN.moveTo(ii*5,ii*5)
}
*/
}// function zoom();
//--------------------------------------------------------
function zoomIn(o)
{
	url=o.src;
	MYtitle=o.alt;
	//alert("MYtitle: "+MYtitle);
	//zoom(url.replace("thumbnails","big"),title);
	myurl=url.replace("text/imgs/","text/imgs/big/");
	zoom(myurl,MYtitle);
}//function zoomIn(o)
//--------------------------------------------------------