You might want to allow visitors to change the stylesheet for a page; perhaps you want to cater to those with poor sight, or for some other reason. This script will do that for you. It must be said that this sort of thing is better done by server-side scripting, but client-side JavaScript will work as well.
It might be possible to combine this script with a cookie, so that visitors choose which style sheet they want to use once for the entire site.
You need to create two stylesheets, named 'style1.css' and 'style2.css' in this example, then put the code below on your page.