if($project->sendUpdateNotification(array("Deleted task activity ID ".$_REQUEST['id'])) === FALSE){
				$error_msg .= "Error sending update notification!\n";
				debug_message($project->getLastError());
			}else{
				goBack();
			}
		}else{
			fatal_error("Error deleting Task Activity!\n");
			debug_message($task_activity->getLastError());
		}
	}
}else{
	fatal_error("Error Invalid mode!\n");
}

$hourly_rates = $user->getHourlyRates();
if($hourly_rates === FALSE){
	$error_msg .= "Could not get hourly rates for all users!\n";
	debug_message($user->getLastError());	
}

$item_codes = $item_code->getCompanyPricedCodes($company->id);
if($item_codes === FALSE){
	$error_msg .= "Could not get item codes for company!\n";
	debug_message($item_code->getLastError());	
}
?>
<? require('header.php'); ?>
<script>
	function ItemCode(id, description, cost, price){
		this.id = id;