// If IE 'lastModified' = 05/23/02 18:48:46 
// If Netscape 6, = Thursday, May 23, 2002 11:48:46 
// If Netscape 6 on UNIX, = Thu, 23 May 2002 11:48:46 gmt
// This script distinguishes among the three forms
// 	and standardizes the output
//

//	Usage:
//	<script type="text/javascript" language="JavaScript" src="http://www.lsro.org/last_m.js"></script>

	var lm = document.lastModified
	
	var dtu = ""	// date to use
	var month = ""
	var day = ""
	var msg = ""	// message written to page

	// convert to lowercase
	lm = lm.toLowerCase()

	// get rid of commas
	while (lm.indexOf (",") != -1)	{
		lm = lm.replace(",", "")
	}

	// collect words in an array
	var arr_str = new Array()
	arr_str = lm.split(" ")

	// if there are two elements in the array, it's the IE form
	// otherwise its the Netscape form
	
	if (arr_str.length == 2)	{
		dtu = arr_str[0]
	}
	else if (arr_str.length >= 5)	{
		if (arr_str.length == 5)	{
			month = arr_str[1]
			day = arr_str[2]
		}
		
		if (arr_str.length == 6)	{
			month = arr_str[2]
			day = arr_str[1]
		}
		
		if (month == "january" || month == "jan")	{
			dtu = "01"
		}
		if (month == "february" || month == "feb")	{
			dtu = "02"
		}
		if (month == "march" || month == "mar")	{
			dtu = "03"
		}
		if (month == "april" || month == "apr")	{
			dtu = "04"
		}
		if (month == "may")	{
			dtu = "05"
		}
		if (month == "june" || month == "jun")	{
			dtu = "06"
		}
		if (month == "july" || month == "jul")	{
			dtu = "07"
		}
		if (month == "august" || month == "aug")	{
			dtu = "08"
		}
		if (month == "september" || month == "sep")	{
			dtu = "09"
		}
		if (month == "october" || month == "oct")	{
			dtu = "10"
		}
		if (month == "november" || month == "nov")	{
			dtu = "11"
		}
		if (month == "december" || month == "dec")	{
			dtu = "12"
		}
		dtu += "/" + day + "/" + arr_str[3]
	}
	else	{
		dtu = lm
	}

	msg += "<br><br><br><br><table border='0' cellpadding='8'><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>"
	msg += "<td><font size='1'>Updated "
	msg += dtu
	msg += " by as</font>"
	msg += "</td></tr></table>"
	document.write(msg)
