function showimg(iname, who, wt, ht)
{


ht += 15; 
wt += 15; 
var wind=iname;
var re = /-/g
wind = wind.replace(re, "")

iname="archive/fanwork/"+who+"/"+iname+".jpg";
var scheight=screen.height -10
var scwidth=screen.width -10
var csize = 0

if (scheight < ht)
{
csize ++
ht = scheight -20
}

if (scwidth < wt)
{
csize ++
wt = scwidth -20
}


if (csize > 0)
{
setting="toolbar=no,screenX=10,screenY=10,height="+ht+",width="+wt+",scrollbars=yes"
}
else
{
setting="toolbar=no,screenX=10,screenY=10,height="+ht+",width="+wt
}

window.open(iname,wind,setting);
}
