John, that's pretty slick! In your form, can't you just use an onClick() to call your calculating function?