﻿function openImage(game, image, w, h) {
 var leftPos = (screen.width)?((screen.width - w)/2):0;
 var topPos = (screen.height)?((screen.height - h)/2):0;
 var URL = "http://www.chickensoft.com/games.screenshot.php?game=" + game + "&screenshot=" + image;
 var Params = "width=" + w + ",height=" + h + ",scrollbars=0,left=" + leftPos + ",top=" + topPos;
 window.open(URL,"",Params);
}