Some code refactoring and a JS alert when choosing not acceptable dates
2013.09.28. - JS alerts, global defaultDates, script copied to .cs file.