TTC HOME PAGE GENERATION PROGRAM

Fill in the form and select the "Create HTML" button. All fields are optional, but the more you can fill in the better the page will be.

Note: this program requires a JavaScript enabled browser

Club Name:
Address Name: example: John Doe High School
Street address: example: 111 Parkway Drive
City, State, ZIP: example: Philadelphia, PA 19111
Map Location, Latitude:
Map Location, Longitude:
Contact Name:
Contact Phone:
Contact email:
Hours Sunday: -
Hours Monday: -
Hours Tuesday: -
Hours Wednesday: -
Hours Thursday: -
Hours Friday: -
Hours Saturday: -
Club link 1 label: URL:
example: Message board URL: http://www.beseen.com/~abc123
Club link 2 label: URL:
Club link 3 label: URL:
Playing Level: - example: Intermediate(1400) - Advanced(2200)
Tables: example: 4 Butterfly Europa
Notes: example: Closed over school holidays
Color Scheme:

Pressing the "Create HTML" button will pop up a browser window with your table tennis home page. Save your page from that window by selecting "Save As" from the File menu. Save the HTML to file on your local hard drive. From there you can email it to your webmaster, or use it the create your own site.
Hosted by www.Geocities.ws

'); writeBody(clubInfo, winClubHTML.document); winClubHTML.document.writeln(''); winClubHTML.document.writeln('
Hosted by www.Geocities.ws

'); winClubHTML.document.close(); } function clubData(clubForm) { this.clubHours = new Array(7); this.clubName = clubForm.clubName.value; this.addressName = clubForm.addressName.value; this.streetAddress = clubForm.streetAddress.value; this.cityAddress = clubForm.cityAddress.value; this.contactName = clubForm.contactName.value; this.contactPhone = clubForm.contactPhone.value; this.contactEmail = clubForm.contactEmail.value; this.latitude = clubForm.latitude.value; this.longitude = clubForm.longitude.value; this.clubHours[0] = new day('Sunday', clubForm.openSunday.value, clubForm.closedSunday.value); this.clubHours[1] = new day('Monday', clubForm.openMonday.value, clubForm.closedMonday.value); this.clubHours[2] = new day('Tuesday', clubForm.openTuesday.value, clubForm.closedTuesday.value); this.clubHours[3] = new day('Wednesday', clubForm.openWednesday.value, clubForm.closedWednesday.value); this.clubHours[4] = new day('Thursday', clubForm.openThursday.value, clubForm.closedThursday.value); this.clubHours[5] = new day('Friday', clubForm.openFriday.value, clubForm.closedFriday.value); this.clubHours[6] = new day('Saturday', clubForm.openSaturday.value, clubForm.closedSaturday.value); this.tables = clubForm.tables.value; this.upperLevel = clubForm.upperLevel.value; this.lowerLevel = clubForm.lowerLevel.value; this.clubLink1Label = clubForm.clubLink1.value; this.clubLink1URL = clubForm.clubLink1URL.value; this.clubLink2Label = clubForm.clubLink2.value; this.clubLink2URL = clubForm.clubLink2URL.value; this.clubLink3Label = clubForm.clubLink3.value; this.clubLink3URL = clubForm.clubLink3URL.value; this.clubLinks = this.clubLink1Label != '' || this.clubLink1URL != '' || this.clubLink2Label != '' || this.clubLink2URL != '' || this.clubLink3Label != '' || this.clubLink3URL != ''; this.notes = clubForm.notes.value; this.color1 = clubForm.color1.value; this.color2 = clubForm.color2.value; this.color3 = clubForm.color3.value; } function writeBody(clubInfo, doc) { doc.writeln(''); doc.writeln('Club profile: ' + clubInfo.clubName + ''); doc.writeln(''); doc.writeln('

'); doc.writeln(''); doc.writeln(''); doc.writeln(''); doc.writeln(''); doc.writeln(''); if(clubInfo.contactName != '') { doc.writeln(''); doc.writeln(''); } if(clubInfo.contactPhone != '') { doc.writeln(''); doc.writeln(''); } if(clubInfo.contactEmail != '') { doc.writeln(''); doc.writeln(''); if(clubInfo.latitude != '' && clubInfo.longitude != '') { doc.writeln(''); doc.writeln(''); } doc.writeln(''); if(clubInfo.clubLinks) { doc.writeln(''); } if(clubInfo.upperLevel != '' || clubInfo.lowerLevel != '') { doc.writeln(''); doc.writeln(''); } if(clubInfo.tables != '') { doc.writeln(''); doc.writeln(''); } if(clubInfo.notes != '') { doc.writeln(''); } doc.writeln('
Address'); if(clubInfo.addressName) { doc.writeln(clubInfo.addressName + '
'); } if(clubInfo.streetAddress) { doc.writeln(clubInfo.streetAddress + '
'); } if(clubInfo.cityAddress) { doc.writeln(clubInfo.cityAddress + '
'); } doc.writeln('
Contact' + clubInfo.contactName + '
Phone' + clubInfo.contactPhone + '
Email' + clubInfo.contactEmail + ''); } doc.writeln('
MapClick here for a map, If you ask to plan a route the club location has been set by click.'); doc.writeln(''); doc.writeln('
Playing Schedule'); doc.writeln(''); doc.writeln(''); var i; timeColor = nextColor(); for(i = 0; i < 7; ++i) { if(clubInfo.clubHours[i].openTime != '' || clubInfo.clubHours[i].closeTime != '') doc.writeln(''); } nextColor(); doc.writeln('
DayFromTo
' + clubInfo.clubHours[i].dayName + '' + clubInfo.clubHours[i].openTime + '' + clubInfo.clubHours[i].closeTime + '

'); doc.writeln('
Club links'); if(clubInfo.clubLink1URL != '') { doc.writeln('' + clubInfo.clubLink1Label + '
'); } if(clubInfo.clubLink2URL != '') { doc.writeln('' + clubInfo.clubLink2Label + '
'); } if(clubInfo.clubLink3URL != '') { doc.writeln('' + clubInfo.clubLink3Label + '
'); } doc.writeln('
Playing level'); doc.writeln('
' + clubInfo.lowerLevel + ' - ' + clubInfo.upperLevel + '
Tables' + clubInfo.tables + '
Notes' + clubInfo.notes + '
'); } function day(name, openTime, closeTime) { this.dayName = name; this.openTime = openTime; this.closeTime = closeTime; } function nextColor() { if(currentColor == 2) { currentColor = 3; return clubInfo.color2; } else { currentColor = 2; return clubInfo.color3; } } 1