<script language="JavaScript">
function popupWindow(URL, width, height)
{
	var name = "Name";
	var prop;
	var w = 475;
	var h = 450;
	if (width != null) w = width;
	if (height != null) h = height;
	prop = 'directories=0,';
	prop += 'dependent=0,';
	prop += 'height='+h+',';
	prop += 'location=0,';
	prop += 'menubar=0,';
	prop += 'resizable=0,';
	prop += 'scrollbars=1,';
	prop += 'status=0,';
	prop += 'width='+w+',';
	prop += 'screenX='+parseInt((screen.availWidth - w) / 2) + ',';
	prop += 'screenY='+parseInt((screen.availHeight - h) / 2) +',';
	prop += 'top='+parseInt((screen.availHeight - h) / 2) +',';
	prop += 'left='+parseInt((screen.availWidth - w) / 2) +',';
	prop += 'toolbar=0';
	window.open(URL, name, prop);
}
</script>
