function pop_window(id, iWidth, iHeight) {
	CalWidth	= eval(iWidth)+60;
	Calheight	= eval(iHeight)+150;
	var width	= CalWidth;
	var height	= Calheight;
	window.open('view.php?id=' + id + '', 'popup', 'width=' + width + ', height=' + height + ', top=100, left=100, menubar=0, scrollbars=1, location=0, toolbar=0,  resizable=1, status=0');
}

function pop_Guestbook(sPage, iGuestbook, iEpisode, iCount, iWidth, iHeight) {
	CalWidth	= eval(iWidth)+60;
	Calheight	= eval(iHeight)+150;
	var width	= CalWidth;
	var height	= Calheight;
	window.open('guestbook.php?p=' + sPage + '&g=' + iGuestbook + '&e=' + iEpisode + '&t=' + iCount + '', 'popup', 'width=' + width + ', height=' + height + ', top=100, left=100, menubar=0, scrollbars=1, location=0, toolbar=0,  resizable=1, status=0');
}

function resize(iWidth, iHeight) {
	CalWidth	= eval(iWidth)+60;
	Calheight	= eval(iHeight)+150;
	var width	= CalWidth;
	var height	= Calheight;
	resizeTo(width, height);
}