Fiddling with BB's No. 2 codes above.
Part I: http://webreference.com/html/tutorial9/
Part II: http://webreference.com/html/tutorial10/
Seriously, a real blast from the past.