yeah, the problem is that you are using server side includes.
the main page:
attaches the referForm.php at line 17 which after a bunch of html tags
the referForm page has the universal email code on it, because this code is now after the html tags from the refer.php page at run time, you will get this error message.
you cannot use server behaviors like Universal Email in server side included pages like this.