Update add_purchase.php

Change for compatibility with Internet Explorer