Using html messages instead of alerts

Only in index.php, not in manager