element.setAttribute ("language", "JavaScript");
element.setAttribute ("src", validateURL);
dom = getScriptBuffer ();
String formFunction = attributes.getFormData().getName();
dom.appendLiteral ("function validateForm")
.appendLiteral (formFunction)
.appendLiteral ("(form) {")
.appendLiteral ("var errMsg = \"\";")
.appendLiteral (sb.toString())
.appendLiteral ("if(errMsg != \"\")")