http://www.jtleigh.com/people/colin/blog/archives/2004/10/copysourceashtm.html

and

http://www.jtleigh.com/people/colin/blog/archives/2004/11/copysourceashtm_3.html