}
echo '>' . "\n";
echo '</td>' . "\n";
echo '</tr>' . "\n";
echo '<tr>' . "\n";
echo '<td colspan=3 align=middle><INPUT TYPE=SUBMIT name="view" onClick="document.pressed=sym" VALUE="' . $msg['swis_view'] . '">&nbsp;&nbsp;' . "\n";
echo '<INPUT TYPE=SUBMIT name="download" onClick="document.pressed=sym" VALUE="' . $msg['swis_download'] . '"></td>' . "\n";
echo '</tr>' . "\n";
echo '</table>';
echo '</FORM>' . "\n";
//remove white space
$bsw = str_replace(" ", "", $bsw);
$bsw = str_replace("\n", "", $bsw);
$bsw = str_replace("\r", "", $bsw);
$bsw = str_replace("\t", "", $bsw);
if (!validBSW($bsw)) {
    if ($bsw) {
        echo '<i>' . $msg['iswa_invalid'] . ' ' . $msg['iswa_bsw'] . '</i>';
    }
} else {
    //set up fill/back trans
    if ($fill_trans) {
        $fill = '';
    }
    if ($back_trans) {
        $back = '';
    }
    //build extra attributes
    $extra = 'size=' . $size;
    if ($colorize) {
        $extra .= '&colorize=1';
function bsw2spaced($bsw)
{
    if ($bsw == "") {
        return;
    }
    $bsw = str_replace(" ", "", $bsw);
    $bsw = str_replace("\n", "", $bsw);
    $bsw = str_replace("\r", "", $bsw);
    $bsw = str_replace("\t", "", $bsw);
    if (!validBSW($bsw)) {
        return;
    }
    $units = bsw2unit($bsw);
    $spaced = '';
    foreach ($units as $unit) {
        $spaced .= ' ' . $unit;
    }
    return trim($spaced);
}