the headers already sent error message is caused by output between php tags.
the error is reporting the problem around line 74 of the delete.php page:
output started at /home/XXXXX/public_html/admin/factory_orders/delete.php:74
see the following thread for details on the cause of the error message and troubleshooting steps:
showthread.php?t=19285