Don't call tcl procs from your adp page. It's a leftover from old days and somehow defies the whole sense of a templating sense. Code goes into the tcl file, markup into the adp file. (Well, that's a rule of thumb at least!)