Your jquery validate scripts have to be below your jquery includes... and you have to use a separate <script> tag for your inline script, you can't combine it with an external script file. So this code:
<script type="text/javascript" src="webassist/jq_validation/jquery.h5validate.js">
function notspam(el,val) {
var notAllowed = /\.ru\s*$/i;
if (notAllowed.test(val)) return false;
return true;
}
</script>
needs to look like:
<script type="text/javascript" src="webassist/jq_validation/jquery.h5validate.js"></script>
<script>
function notspam(el,val) {
var notAllowed = /\.ru\s*$/i;
if (notAllowed.test(val)) return false;
return true;
}
</script>
And all of that code needs to move down to below the jquery.js code reference.