

today = new Date();

function getstrnum(num) {
	outstr = "";
	if (num<10) {
		outstr += "0" + num;
	} else {
		outstr += num;
	}
	return outstr;
}
function getdate(indate) {
	yr = "" + indate.getYear();
	yrlen = yr.length;
	return getstrnum(indate.getMonth()+1) + "." + getstrnum(indate.getDate()) + "." + yr.charAt(yrlen-2) + yr.charAt(yrlen-1);
}
function writedate(indate) {
	document.write(getdate(indate));
}


i=0;
news = new Array;
news[i] = new Object;
date1 = today;
date1.setDate(date1.getDate()-3);
date1.setYear(2056);
news[i].date = getdate(date1);
news[i].text = "BaconRobots.com is looking for models!  <strong><a href='models.html'>Click Here for more information.</a></strong><br><br>";
i++;
news[i] = new Object;
date1 = today;
date1.setDate(date1.getDate()-6);
date1.setYear(2056);
news[i].date = getdate(date1);
news[i].text = "BaconRobots jumpsuits are sold out!  Those of you who didn't order one will have to keep your government-issue jumpsuit another year.";
i++;
news[i] = new Object;
date1 = today;
date1.setDate(date1.getDate()-20);
date1.setMonth(date1.getMonth()-1);
date1.setYear(2056);
news[i].date = getdate(date1);
news[i].text = "BaconRobots has opened its newest location in FutureTron, New Florida.  Resistance forces are closing in, though.";
i++;
news[i] = new Object;
date1 = today;
date1.setDate(date1.getDate()-13);
date1.setMonth(date1.getMonth()-3);
date1.setYear(2056);
news[i].date = getdate(date1);
news[i].text = "The BaconRobots scavenging machines have uncovered a previously unknown pork-lode.  With this, we will be able to increase the natural content of our bacon to an amazing 3.2%!";
i++;
