
//Screenshot Popups
function screenPop(sid, w, h)
{
	now = new Date();
	id = now.getTime();
	url = "screen.php?shot="+sid;
	window.open(url, id, "toolbar = 0, scrollbars=0, location=0, statusbar=0, menubar=0, resizeable=0, width = "+(w+20)+", height = "+(h+20));
	//window.open(url, id, "toolbar = 0, scrollbars=0, location=0, statusbar=0, menubar=0, resizeable=0, width = "+w+", height = "+h);
}

//Attachment Popups
function athPop(aid, afn, w, h)
{
	now = new Date();
	id = now.getTime();
	url = "screen.php?img="+aid+"&fn="+afn;
	window.open(url, id, "toolbar = 0, scrollbars=0, location=0, statusbar=0, menubar=0, resizeable=0, width = "+(w+20)+", height = "+(h+20));
	//window.open(url, id, "toolbar = 0, scrollbars=0, location=0, statusbar=0, menubar=0, resizeable=0, width = "+w+", height = "+h);
}

//Img Popups
function imgPop(ifn, w, h)
{
	now = new Date();
	id = now.getTime();
	url = "screen.php?ifn="+ifn;
	window.open(url, id, "toolbar = 0, scrollbars=0, location=0, statusbar=0, menubar=0, resizeable=0, width = "+(w+20)+", height = "+(h+20));
	//window.open(url, id, "toolbar = 0, scrollbars=0, location=0, statusbar=0, menubar=0, resizeable=0, width = "+w+", height = "+h);
}
