function calc() {
	var dollars=document.timeworth.earnings.value;
	var hours=document.timeworth.hours.value;
	if ((dollars>0)&&(hours>0)) {
		var rate=dollars/hours;
		document.timeworth.rate.value=rate.toFixed(2);
	}
}
