The following code will detect the Windows verion installed on the computer. You can modify the results as needed to suit your needs. I made some comments in the code.
For the time being, I do not want it to run on any servers. All servers above 2003 will be reported as unknown, and a message will reflect that, if unknown is detected. I did not want to rely on a 3rd party utility.
Just copy and paste in a new page and run under IE only. It will not work with Firefox correctly.
I hope someone finds this useful.