getTemplateVars('form'); if(!IsSet($form) || !is_a($form, 'form_class')) throw(new Exception('the "form" template variable was not assigned to the form object')); $form->AddDataPart($params['data']); $form->AddLabelPart(array('FOR'=>$params['for'])); return ''; } ?>