It seems I needed another backslash at the end. All working now. Only problem is when I close the file down and open it up again, I'm getting the same warning as mentioned in a previous post, ie.
''This document contains JavaScript code for a widget that no longer exists. I fyou don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all instances of this code for you?
Widget: var Contact_us_group_nbsp_Spry = new
Spry.Widget.ValidationTextField("Contact_us_group_ nbsp_Spry",
"none",{validateOn:["blur"});''
Is this because I added the custom stripslashes code?