// popup Ver.0.9
// 2002.04.19
function popupwin(tgturl, winname, winwidth, winheight, winscroll, winresize, xpos, ypos) {
	if (xpos == 'center') {
		xpos = (screen.width - winwidth) / 2;
	}
	if (ypos =='center') {
		ypos = (screen.height - winheight) / 2;
	}
	winoption = "left="+xpos+",top="+ypos+",width="+winwidth+",height="+winheight+",scrollbars="+winscroll+",resizable="+winresize;
	subwin = window.open(tgturl, winname, winoption);
}
