function openpop(img) {
  var pop = window.open('popup.html?img=' + img, 'icon', 'scrollbars=no, status=no, location=no, toobar=no, width=770, height=640');
  !pop ? alert('Please disable your popup blocker and try again.') : '';
}


