function openpop(iname,img_width,img_height)
{
 var screen_width=screen.width;
 var screen_height=screen.height;
 var x=Math.round((screen_width/2)-(img_width/2));
 var y=Math.round((screen_height/2)-(img_height/2));
 y=y+50;

 window.open("popupimg.php?id="+iname+"&w="+img_width+"&h="+img_height,"_blank","left="+x+",top="+y+",width="+img_width+",height="+(img_height+35)+",scrollbars=no");
 
}
