I am currently redeveloping a webpage (.asp or .html). I need a script. I have looked and looked but to no avail, maybe I will be more lucky here.
The purpose of this script is to inform trainees when our trainers are visiting their town again to do some software support at their hospital. For 2 cities the frequency between visits is fortnightly for one it is monthly.
The script that I need should be able to do the following:
Say I entered as a reference starting date: 6th of November (06/11/2007).
I want a script that calculates every 2nd Tuesday (case 1 in one table row) and every 4th Tuesday (2nd and 3rd scenario in another row) from that date onwards. (Requirement 1).
(Requirement 2

Only the first 3 occurrences which must be either today or in the future I want to appear in my table cell. As soon as three dates are listed the script can finish for this row.
i.e.
Name of Town, Next 3 visits, Frequency of visits
Town 1, 06/11/2007, 20/11/2007, 04/12/2007 (Fortnightly)
Town 2 13/11/2007, 11/12/2007, 08/01/2007 (every four weeks)
Town 3 27/11/2007, 25/12/2007, 22/01/2007 (every four weeks)
So basically I want each of the three (Next 3 visits) tablecells to call one of three functions (each holding a different starting reference date and different interval (as I said, 1 will happen fortnightly, 2 will happen every four weeks) to do that calculation and then each to arrive at 3 dates only (that meet that criteria).
All past dates should be ignored - only todays and future dates are accepted to display, but no more than 3! in one cell.
What I want to be able to do is to just insert the reference dates and intervals in the functions once and leave the webpage untouched after that, since it keeps the table cells up-to-date from then on in.
This I'm sure can be done, but I wonder if someone could work out how.
I would be so grateful for all those who give this a try.
Best Regards,
Andreas