function html_select ($name, $items, $selected, $use_keys
{
$html = "<select name="$name">n"
foreach ($items as $key=>$value) {
if (!$use_keys) $key = $value
if ($selected == $key
$s = ' selected'
else
$s = ''
$html .= "<option value=""$key""$s>"$value"</option>n"
}
$html .= "</select>"
return $html
}