fixed input validation

small changes in sundial to ids of 2 elements.
changed the validation function in sundialscript.js to use regular
expressions to validate the input from the user.  also rewrote the date
and lat/lon checks for valid values.
~2