This is just a script to check the values of a form and prevent it from sending if incorrect values are entered. While this code is not going to send information elsewhere the question of where it came from is a worrying one. What level of conrol do you have over the domain and what have you used to build the site?