// Display the current GMT-based year// Must adjust where in string to look because Netscape uses 2 digit days (01-31)// and IE uses floating digit days (1-31).// We use the space before and after the year in the string to our advantage here.theDate = new Date();var yearLocation=12;if (theDate.getDate() < 10) {	yearLocation=yearLocation-1}var theGMTYear = theDate.toGMTString();var theYear = theGMTYear.substring(yearLocation,yearLocation+5);document.write(theYear);// EOF