Ok, here's the problem.
The sourcecode for line 131 is as follows:
form enctype="multipart/form-data" name="vbform" action="editpost.php" method="post" onSubmit="return validate(this)"
However, there is no javascript function called "validate" before this function is called...