function showPic(img){
 var newImg=new Image();
 newImg.src=img.src;
 wt=newImg.width/292;
 ht=newImg.height/170;
 if(wt>1 || ht>1)
  {
   (wt<ht)?(img.width=newImg.width/ht):(img.height=newImg.height/wt);
  }
 else
  {
   img.width=newImg.width;
   img.height=newImg.height;
  }
}
