
//  this script auto-updates a modified web page, using string manipulation of the 'lastModified' date format
// see 'ScriptDemo.html' in Cols Templates for original versions
// you can shorten this file by deleting any lines starting with // & re-saving. I left them in so you could
// remove them to see the progressive changes in the strings leading up the final format
//  to customise the actual update text for your web page, alter the very last 2 lines at bottom
// check last doc.write command for correct use of Font commands within the script
//  to change font color, alter the next line or delete it & use normal HTML codes in your web page

	document.fgColor = "#006666";
	cDate = document. lastModified
	// document.write( cDate  +" <p> ")
	str1 = document.lastModified
	// document.write(str1 +" <p> ");
	// document.write("Truncated date : " +(str1.substring(0,11)) +" <p> ");
	str2 =  (str1.substring(0,2) );
	str3 =  (str1.substring(5,2) );
	str3a =  (str3.substring(1,3) );
	str4 =  (str1.substring(6,10) );
	str5 =  (str3a +"/" + str2  + "/" + str4);
	// document.write("Month only : " + str2 + " <p> ");
	// document.write("Day only : " + str3 + " <p> ");
	// document.write("Day only : " + str3a + " <p> ");
	// document.write("Year only : " + str4 + " <p> ");
	// document.write("<h3><fontColor(red)>This is the original un-modified date:-</h3>" + " <p><p> " );
	// document.write("Updated on " + document.lastModified );
	// document.write("<h2>This is the modified date - good innit?:-</h2>" + " <p> " );
	// document.write("I've converted the date & time format - at top of page - to this modified date, using string manipulation " + " <p> " );
	// document.write("To check the code, right click & select View Source" + " <p> " );
	// document.write("Updated on: " + (str5.fontcolor("cyan")) + " <p> " );	
	//document.write("&nbsp;Last revised: " + (str5.fontsize(2)) + " &nbsp;&nbsp;&nbsp; © of CWCS&nbsp;&nbsp; and&nbsp;&nbsp;&nbsp");
	document.write("<font face=Verdana size=0 color=#006666>&nbsp;Last revised: " + (str5.fontcolor("#006666")) + " &nbsp;&nbsp; © of CWCS&nbsp;&nbsp; and&nbsp;&nbsp" + " </font>");




