If the user enters an EndDate that is <= the BeginingDate, the code enters an infinite loop. This is what needs to be corrected! Any other problem you may notice and bring to our attention will be appreciated. There are two textboxes defining a date range that need to be validated so that when the user leaves the textbox it contains a valid date and the end date is greater than the begining date. Currently, this is fired off the onBlur event and the code is function checkDate(formField){ var theDate, isValid; theDate = [login to view URL]; isValid = CheckValidDate(theDate); if (isValid){ if ([login to view URL] > 0) [login to view URL] = FormatDate(theDate,'MM/DD/YY'); isValid = checkValidDates(); } if (!isValid) { alert("Invalid Date Entered"); [login to view URL](); [login to view URL](); return false; } } function newDate(passedValue) { var makeDate = new Date(); var firstSlash=[login to view URL]("/"); var lastSlash=[login to view URL]("/"); var month=[login to view URL](0,firstSlash)-1; var day=[login to view URL](firstSlash+1,lastSlash); var year=[login to view URL](lastSlash+1); var newDate = new Date(year,month,day); return newDate; } function checkValidDates(){ var s = newDate([login to view URL]); var e = newDate([login to view URL]); // Check That The End Date Is After The Start Date if ([login to view URL]() >= [login to view URL]()) return false; return true; } And the HTML is
## Deliverables
1) Complete and fully-functional working code that meets the stated criteria. 2) Complete ownership and distribution copyrights to all work purchased.
## Platform
This must run on IIS.