function sort(form, sel)
{
	addr = sel.options[sel.selectedIndex].value;
	window.location.href = addr;
}

function insertCode(text) {

	document.message.comment.value += text;
	document.message.comment.focus();
}

//  messages
bold_howto = "太文字にします。: [b]文章[/b]  (alt+b)";
italic_howto = "文章を斜体にします。: [i]文章[/i]  (alt+i)";
under_howto = "下線を引きます。: [u]文章[/u]  (alt+u)";
img_howto = "画像を表示します。URLを記入: [img] http://url_of_image [/img]  (alt+g)";
color_howto = "文字の色を変えます: [color=red]文章[/color]";
size_howto = "文字のサイズを変えます: [size=12]文章[/size]";
ico_howto = "アイコンを挿入します。";
ico2_howto = "アイコンを挿入します。（名前の提案時に利用します）";
function codeHowTo(text) {
	//document.message.help.value = "太文字にします。: [b]文章[/b]  (alt+b)";
	document.message.help.value = eval(text + "_howto");
}
function confirmLink(link, actionStr)
{
	var message = 'よろしいですか？';
    var is_confirmed = confirm( actionStr + '\n' + message);
    if (is_confirmed) {
        link.href += '&js_confirmed=1';
    }

    return is_confirmed;
}
