function get_title()
{
	m_title = text2.value;
	set_tag();
}
function changefont_size(s)
{
	m_font_size = s;
	set_tag();
}
function changefont_bold(mode)
{
	if( mode==1 ) m_font_bold = "bold";
	if( mode==0 ) m_font_bold = "normal";
	set_tag();
}
function get_fontfamily()
{
	m_fontfamily = font_select.options[font_select.selectedIndex].value;
	set_tag();
}
function changefont_style()
{
	m_font_style = "normal";
	if( checkbox1.checked==true ) m_font_style = "italic";
	set_tag();
}
function changefont_u_line()
{
	m_font_u_line = false;
	if( checkbox2.checked==true ) m_font_u_line = true;
	set_tag();
}
function selectcol(mode)
{
	m_selectcol = mode;
}
function set_base_col(num)
{
	if( m_selectcol==0 ) font_col_text.value = num;
	if( m_selectcol==1 ) fontbg_col_text.value = num;
	if( m_selectcol==2 ) stage_area.style.backgroundColor = "#"+num;
	if( m_selectcol==3 ) start_col_text.value = num;
	if( m_selectcol==4 ) end_col_text.value = num;
	set_tag();
}
function set_bg()
{
	bg_color = "#"+bg_col_text.value;
	document.bgColor = bg_color;
	set_tag();
}
function open_subwin()
{
	subwin=window.open("","","status=no,toolbar=no,menubar=no,scrollbars=no,width=520,height=120");
	subwin.document.open();
	subwin.focus();
	subwin.document.writeln("<html><head><title>goo簡単ＨＰ用タグ</title></head><body>");
	subwin.document.writeln("<FONT size=2><B>★goo簡単ＨＰページに使用時のご注意</B><BR>GaiaX系ＨＰではタグにカンマ（<B>,</B>）が使えませんので、表示しているタグではカンマの代わりに特殊文字「＆#44;」を使っています。<BR>GaiaX系ＨＰ編集ページにペーストして「変更」をクリックすると<BR>その時点ではOKですが、次回の変更時には「＆#44;」が消えていますので、<BR>再度タグをペーストする必要があります。</FONT>"); 
	subwin.document.writeln("</body></html>");
	subwin.document.close();
}
function revers_copy()
{
	TEXTAREA1.focus();
	TEXTAREA1.select();
	m_range=TEXTAREA1.createTextRange();
	m_range.execCommand("Copy")
}
