function popup(name, uri, wdt, hgt) {
	var posCode = ''
	if ( (screen.height < 481) && (hgt > 400) ) { hgt = 400 }
	posX = Math.round((screen.width - wdt) / 2)
	posY = Math.round((screen.height - hgt) / 2)
	posCode = ",screenX="+posX+",screenY="+posY+",left="+posX+",top="+posY
	popuped = window.open(uri, name, "status=yes,menubar=no,toolbar=no,resizable=no,scrollbars=auto,location=no,width="+wdt+",height="+hgt+posCode)
	popuped.focus()
}

