var postDate = new Date(Date.parse("9/6/1996"));
function UpdateImage(dateString,update,noicon)
{
	var prefix = "<img align=\"bottom\" border=\"0\" ";
	var updateString = prefix + "width=\"41\" height=\"17\" \" src=\"http://otakuworld.com/mascot/image/updated.gif\" alt=\" Updated!>";
	if ( typeof dateString != "undefined") postDate = dateString;
	var now = new Date();
	var diff = (now.getTime() - Date.parse(postDate))/(1000*86400);
	if (diff > 14) {
		document.write(prefix + "width=\"37\" height=\"38\" src=\"http://otakuworld.com/mascot/image/ompip.gif\" alt=\" * \">");
	}	else if (diff > 7) {
		if (typeof update == "undefined") document.write(prefix + "width=\"18\" height=\"18\" src=\"http://otakuworld.com/mascot/image/star.gif\" alt=\"Recent!\">");
		else document.write(updateString);
	} else {
		if (typeof update == "undefined") document.write(prefix + "width=\"30\" height=\"30\" src=\"http://otakuworld.com/mascot/image/sun2.gif\" alt=\"NEW!\">");
		else document.write(updateString);
	}
	delete now;
}
function UpdateImageNoIcon(dateString,update)
{
	var prefix = "<img align=\"bottom\" border=\"0\" ";
	var updateString = prefix + "width=\"41\" height=\"17\" \" src=\"http://otakuworld.com/mascot/image/updated.gif\" alt=\" Updated!>";
	if ( typeof dateString != "undefined") postDate = dateString;
	var now = new Date();
	var diff = (now.getTime() - Date.parse(postDate))/(1000*86400);
	if (diff > 14) {
		// Do nothing: no image is to be shown
	}
	else if (diff > 7) {
		if (typeof update == "undefined") document.write(prefix + "width=\"18\" height=\"18\" src=\"http://otakuworld.com/mascot/image/star.gif\" alt=\"Recent!\">");
		else document.write(updateString);
	} else {
		if (typeof update == "undefined") document.write(prefix + "width=\"30\" height=\"30\" src=\"http://otakuworld.com/mascot/image/sun2.gif\" alt=\"NEW!\">");
		else document.write(updateString);
	}
	delete now;
}

function UpdateDot(dateString)
{
	if ( typeof dateString != "undefined") postDate = dateString;
	var now = new Date();
	var diff = (now.getTime() - Date.parse(postDate))/(1000*86400);
	document.write("<img align=\"bottom\" border=\"0\" width=\"8\" height=\"8\" src=\"http://otakuworld.com/mascot/image/");
	if (diff <= 7) document.write("omNewDot.gif\" alt=\" ! \">");
	else document.write("omdot.gif\" alt=\" * \">");
	delete now;
}

function PostDate()
{
	document.write(postDate);
}


