Trigger script using Ajax

I am trying to trigger a script using Ajax. I’ve confirmed the script runs properly but the HTML is generating the following errors:
[ol][li]Uncaught SyntaxError: Unexpected end of input (line 1)[/li]
[li]Uncaught ReferenceError: generateRMAReport is not defined onclick (line 44)[/li][/ol]

I’ve created the function and referenced it in the onClick action but it doesn’t seem to register. If I remove the OnReadyStateChange call, both errors disappear but my script does not trigger either.
[php]

42:EUC Reporting Central
    <?php require '../includes/menu.php' ?>

Upload your Raw Data below.

Generate Infinera RMA Report
<?php require "../includes/footer.php" ?> [/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service