JAVASCRIPT-NEXT-WEEK.JS

This is the JavaScript version of next-week.php. It provides the date of any upcoming week day. It takes one argument, a number between 0 and 6, representing sunday to saturday.