tag_body_start = ''; $this->options['type'] = 'checkbox'; $this->options['value'] = $value; $this->options['name'] = $name; $this->options['onClick'] = $action; $this->SetChecked($checked); } function SetEnabled($value='yes') { if($value=='yes' || $value == true || $value === 1) return $this->DelOption('disabled'); return $this->options['disabled'] = 'yes'; } function SetChecked($value="yes") { if((is_string($value)&& ($value=="yes" || $value=="checked" || $value=="on") || $value=="1") || (is_int($value)&&$value<>0)) return $this->options['checked'] = 'checked'; $this->DelOption("checked"); } function SetAction($value='submit()', $event='onClick') { $this->options[$event] = $value; } } ?>