function pics(img,imgx,imgy)
		{
			var w = 0;
			var h = 0;
			if (screen.width-100 > imgx) { w = imgx+50; } else { w = Math.round(screen.width/3*2); }
			if (screen.height-100 > imgy) { h = imgy+50; } else { h = Math.round(screen.height/3*2); }
			var t = Math.round((screen.height - h) /2);
			var l = Math.round((screen.width - w) /2);
			window.open(img,'','top='+t+',left='+l+',width='+w+',height='+h+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes');
		}
