// Calculate the url to the validate script. This could be done
// once for the whole application.
String validateURL = "/" + context.getVolantisBean().getPageBase() +
"/" + context.getVolantisBean().getScriptsBase() + "/validate.js";
Element element = dom.addElement ("script");
element.setAttribute ("language", "JavaScript");
element.setAttribute ("src", validateURL);
dom = getScriptBuffer ();
String formFunction = attributes.getFormData().getName();