function print_checkbox_element($params)
{
    if (!is_array($params) && is_string($params)) {
        $params = array('name' => $params, 'value' => 1);
    }
    $element = new form_element_checkbox($params);
    echo $element->get_html();
}
function print_checkbox_element($label, $params, $required = false, $info_text = null)
{
    if (!is_array($params) && is_string($params)) {
        $params = array('name' => $params, 'value' => 1);
    }
    $element = new form_element_checkbox($label, $params, $required, $info_text);
    echo $element->get_html();
}