Validating form fields with ajax
You can use the setup function if you want to change the border color to something else, set the property to an empty string if you don't want the border color to change when the input has an invalid value.
The If wanting to use a custom method that handles the displaying/removing of error messages you should use the two methods described above.
Return false to prevent the default behaviour when adding/removing error messages.
General questions about form scripts here should be posted to The Java Script Forum.