Create Javascript Gradient Code

This html file has the javascript code used to create a gradient on the canvas. Am going to try and use it on the requirement list jsp page to give it some flare. Anyone else who wants to use this is more than welcome to!