// pocomailfaq.js - JavaScript functions

function checknew(date, picture) {
//  Date format is month/day/year
    if (picture == undefined) {
		var pic = "new.gif";
		var prop = "Width=25 Height=9";
	} else {
		var pic = picture;
		var prop = "";
	}
	expdate = new Date(date);
	curdate = new Date();
	if (expdate.getTime() > curdate.getTime())
	document.write("<img src=" + pic + " Align=Top " + prop + ">");
}

// hide email addresses from robots.
function ema(addr, domain) {
   document.writeln("<a href=\"mail" + "to:" + addr + "@" + domain + "\">");
}

function lastupdated(contributor) {
	if (typeof(contributor)=="undefined") {
		var contrib = "";
		var prefix = ""
	} else
	{
		var contrib = contributor
		var prefix = "<br>"
	}
	document.writeln("<p><center><i>" + contrib);
	if (contributor=="") { var prefix = "" } else { var prefix = "<br>" }
	var m = prefix + "Page updated " + document.lastModified;
	var p = m.length-8;
	document.write(m.substring(p, 0));
	document.writeln("</i></center>");
}

function navbar() {
	document.writeln("<table background=\"pocobackground.gif\"><tr>");
	document.writeln("<td colspan=15 align=center><a href=\"index.html\"><img src=\"pocomailfaq.gif\"></a></td></tr><tr>");
	document.writeln("<td align=center><a href=\"poco-general.html\"><img alt=\"General Info\" src=\"general.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"checkingmailindex.html\"><img alt=\"Check mail\" src=\"checkmail.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"sending.html\"><img alt=\"Send mail\" src=\"send.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"poco-compose.html\"><img alt=\"Compose\" src=\"compose.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"replying.html\"><img alt=\"Reading and replying\" src=\"reply.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"poco-filter.html\"><img alt=\"Filters\" src=\"filters.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"pocoaddressbookfaq.html\"><img alt=\"Addresses\" src=\"address.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"poco-script.html\"><img alt=\"Scripts\" src=\"scripts.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"printing.html\"><img alt=\"Printing\" src=\"print.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"poco-customizeuserinterface.html\"><img alt=\"Customing the user interface\" src=\"options.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"helpindex.html\"><img alt=\"Using Poco Help\" src=\"help.gif\">");
	document.writeln("<td align=center><a href=\"junkmail.html\"><img alt=\"Junk mail\" src=\"junkmail2.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"poco-security.html\"><img alt=\"Security\" src=\"security.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"poco-signatures.html\"><img alt=\"Signatures\" src=\"signature.gif\"></a></td>");
	document.writeln("<td align=center><a href=\"poco-bugs.html\"><img alt=\"Bugs and workarounds\" src=\"bugs.gif\"></a></td>");
	document.writeln("</tr></table>");
}
