Cancel the default event of the form that is causing it to submit.
<script>
$("document").ready(function () {
$("#reportform").submit(function(e) {
e.preventDefault(); //prevents form submission
//rest of function
});
});
</script>