sandhya rao wrote: > String userFunctions = " define myFunction() { ... } > "; Try "declare function myFunction() { ... }" - or with the older syntax "define function myFunction() { .... }. -- --Per Bothner per at bothner.com http://per.bothner.com/