function openpic(image, width, height, title)
{
	var s="<html><title>"+title+"</title><body leftmargin='2' topmargin='2'><a href='javascript:window.parent.close();'><img src='"+image+"' border='0' alt='Close'></a></body></html>";
	ImageWindow=window.open("", "newwin",config="width="+(width+4)+",height="+(height+4)+",toolbar=0,scrollbars=0,menubar=0");
	ImageWindow.document.write(s);
	ImageWindow.document.close();
	ImageWindow.focus();
}

function changepage(bodyfile)
{
	document.forms['bodypos'].dy.Value=parent.frames["Story"].document.body.scrollTop;
	parent.frames["Story"].location.href=bodyfile;
}

function scrolldown(headfile)
{
	dy = parent.frames["Head"].document.forms['bodypos'].dy.Value;
	window.scroll(0, dy);
	parent.frames["Head"].location.href=headfile;
}
