function openImage(url,width,height){
  width   = (width*1)+40;
  height  = (height*1)+50;
  window.open('../inc/templates/popup.php?url='+url,'screenshots','width='+width+'px, height='+height+'px');
}