﻿
// open popup

function view(id, totalImgs)
{
	//alert("ID: "+id+" | totalImgs: "+totalImgs)
	
	var screen_width = screen.availWidth;
	var screen_height = screen.availHeight;

	if (screen_width < 1) screen_width = screen_width;
	if (screen_height < 1) screen_width = screen_height;

	position_left = Math.floor(screen_width / 2) - Math.floor(screen_width / 2);
	position_top = Math.floor(screen_height / 2) - Math.floor(screen_height / 2);

	window.open("detail.html?id=" + id + "&totalImgs=" + totalImgs , "pop", "scrollbars=yes, links=no, toolbars=no, location=no, left="+ position_left +", top="+ position_top +", width="+ screen_width +", height="+ screen_height);

}