// Process the document info used in the footer
var myURL = document.location.href;

// Get the part of the URL that comes after "/mil/"
myURL = myURL.substring(myURL.indexOf("/mil") + 5);

// Get the document mod date
var myMod = new Date(document.lastModified);
if ( Date.parse(myMod) > 0) {
	mon = new Array("jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec");
	myMod = "last updated: " + mon[myMod.getMonth()] + " " + myMod.getDate() + ", " + (1900 + myMod.getYear()) ;
} else {
	myMod = "mil on the web since april 1998";
}

function write_footer(dflag) {
	// if param is 0 than skip the page data (from cgi calls)
	
	if (dflag == 0) {
		myURL = " ";
		myMod= " ";
	}

	esc_url = escape(document.location.href);

	document.write('<tr><td width=160 colspan=2><IMG SRC="images/clear.gif" ALT=" " hspace=80 width=2 height=2></td>');
	document.write('<td width=440 align=center><hr noshade size=1><font face="Verdana,Helvetica" size=2>');
	document.write('<p><B>mil : ' + document.title); 
	document.write('</B><br>a project of the <br>');
	document.write('<A HREF="http://www.mcli.dist.maricopa.edu/">maricopa center for learning &amp; instruction</A><br>');
	document.write('<A HREF="http://www.maricopa.edu/">maricopa community colleges</A></p>');
	document.write('send questions to our mil team<br>&lt;<A HREF="mailto:maria.harper@domail.maricopa.edu?subject=tell me about mil">Maria Harper-Marinick</A>&gt;</p>');
    document.write('Questions? Comments? Visit our <B><A HREF="http://www.mcli.dist.maricopa.edu/feedback/index.php?url=' + esc_url + '">feedback center</A></B><BR>');
	document.write('<p>http://www.mcli.dist.maricopa.edu/mil/' + myURL);
	document.write('<br>' + myMod);
	document.write('</p></font></td></tr>');
}
