function lived()
{
	var a = new Date();
	var b = new Date(1980, 6, 25, 17, 02, 0);
	var lived = a.getTime() - b.getTime();
	var total = 86400000 * 29200; // 80 years old
	var percentage = (lived / total) * 100;

	return percentage;
}
function year()
{
	var a = new Date();
	return a.getFullYear();
}
function cent(amount)
{
	amount -= 0;
	amount = (Math.round(amount*100))/100;
	return (amount==Math.floor(amount))?amount+'.00':((amount*10==Math.floor(amount*10))?amount+'0':amount);
}
function past()
{
	var d = new Date();
	var start = new Date(d.getFullYear(), 0, 1, 0, 0, 0);
	var lived = d.getTime() - start.getTime();
	var percentage = (lived / (86400000 * 365)) * 100;

	return percentage;
}
function online_info()
{
	var theForm = document.getElementById('onlineForm');
	var str_url = "http://online.babylon.com/combo/index.html?word="+theForm.word.value+"&lang="+theForm.lang[theForm.lang.selectedIndex].value+"&type=hp";
	window.open (str_url, "online", "width=256,height=334,top=215,left=33");
}
