<script type="text/javascript">
        var shortoptions = new Array("$sdefault[1]","$sdefault[2]","$sdefault[3]","$sdefault[4]","$sdefault[5]","$sdefault[6]","$sdefault[7]","$sdefault[8]","$sdefault[9]","$sdefault[10]","$sdefault[11]","$sdefault[12]");
    bdr130_option_onclick = function(e)
    {
    	var arg = this.title;
    	if (arg != '')
    	{
            vB_Editor['$editorid'].insert_text(' '+arg+' ', false);
    	}
        vBmenu.hide();
    }
    bdr130_select_onchange = function(e)
    {
    	var arg = this.options[this.selectedIndex].value;
    	if (arg != '')
    	{
            vB_Editor['$editorid'].insert_text(' '+arg+' ', false);
    	}
    	this.selectedIndex = 0;
    }
    vB_Text_Editor.prototype.table = function(e)
    {
        code = window.open("massy.php?action=table&e=$editorid", "table", "toolbar=no,scrollbars=yes,resizable=yes,width=600,height=450");
    };
      function _sndReplaceReq(action, file, param) {
            http = _createRequestObject();
          http.open(action, 'massy/rpc.php?action='+file, true);
          if(action=='POST'){
              http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
              http.setRequestHeader("Content-length", param.length);
              http.setRequestHeader("Connection", "close");
          }
          http.onreadystatechange = function(){if(http.readyState == 4){vB_Editor['{$editorid}'].insert_text(http.responseText, false);}};
          http.send(param);
      }
        vB_Text_Editor.prototype.colo = function(e)
        {
            code = showModalDialog("massy/color.html","","help:no; center:yes; status:no; dialogHeight:176px; dialogWidth:356px");
        	if (!code)
        		return;
            	fetch_object('{$editorid}_color_bar').style.backgroundColor = code;
            	vB_Editor['{$editorid}'].format(e, 'forecolor', code);
        };
</script>
<script type="text/javascript" src="massy/massy.js"></script>
<if condition="$show['editor_toolbar']">
<div id="{$editorid}_controls" class="controlbar">
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td><div class="imagebutton" id="{$editorid}_cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" width="21" height="20" alt="$vbphrase[remove_text_formatting]" /></div></td>
			<if condition="$show['font_bbcode'] OR $show['size_bbcode']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
			</if>
			<if condition="$show['font_bbcode']">
				<td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
						<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			</if>
			<if condition="$show['size_bbcode']">
				<td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td class="popup_feedback"><div id="{$editorid}_size_out" style="width:25px">&nbsp;</div></td>
						<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			</if>
				<td><div class="imagebutton" id="{$editorid}_popbdr_shorts" title="">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td class="popup_feedback"><div id="{$editorid}_short_out" style="width:55px">&nbsp;</div></td>
						<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
	<if condition="$show['color_bbcode']">
		<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
		<td><div class="imagebutton" id="{$editorid}_popup_forecolor" title="$vbphrase[colors]">
			<table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td id="{$editorid}_color_out"><img src="images/toolbox/color.gif" width="21" height="16" alt="" /><br /><img src="$vboptions[cleargifurl]" id="{$editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></td>
				<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="" width="11" height="16" /></td>
			</tr>
			</table>
		</div></td>
	</if>
	<if condition="$show['wysiwygsmilies']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				<td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
						<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			</if>
	<td width="100%">&nbsp;</td>
	<if condition="is_browser('ie')">
		<td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="images/toolbox/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
	</if>
		<td>
			<div class="imagebutton" id="{$editorid}_cmd_resize_0_99"><img src="$stylevar[imgdir_editor]/resize_0.gif" width="21" height="9" alt="$vbphrase[decrease_size]" /></div>
			<div class="imagebutton" id="{$editorid}_cmd_resize_1_99"><img src="$stylevar[imgdir_editor]/resize_1.gif" width="21" height="9" alt="$vbphrase[increase_size]" /></div>
		</td>
	<if condition="$show['wysiwyg_compatible']">
		<td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
	</if>
	</tr>
    </table>
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
	<if condition="$show['basic_bbcode']">
		<td><div class="imagebutton" id="{$editorid}_cmd_bold"><img src="images/toolbox/bold.gif" width="21" height="20" alt="$vbphrase[bold]" /></div></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_italic"><img src="images/toolbox/italic.gif" width="21" height="20" alt="$vbphrase[italic]" /></div></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="images/toolbox/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td>
	</if>
	<if condition="$show['url_bbcode'] OR $show['img_bbcode']">
		<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
	</if>
	<if condition="$show['url_bbcode']">
		<td><div class="imagebutton" id="{$editorid}_cmd_createlink"><img src="images/toolbox/createlink.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>
	</if>
	<if condition="$show['img_bbcode']">
		<td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="images/toolbox/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
	</if>
	<if condition="$show['quote_bbcode']">
		<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="images/toolbox/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
	</if>
        <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_inserthr"><img src="images/toolbox/hr.gif" width="21" height="20" alt="   " /></div></td>
        <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_hcal"><img src="images/toolbox/h_calendar.gif" width="21" height="20" alt="   " /></div></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_numbers"><img src="images/toolbox/numbers.gif" width="21" height="20" alt="   " /></div></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_keyb"><img src="images/toolbox/keyb.gif" width="21" height="20" alt=" " /></div></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_terms"><img src="images/toolbox/terms.gif" width="21" height="20" alt="  " /></div></td>
        <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_marq"><img src="images/toolbox/marq.gif" width="21" height="20" alt=" " /></div></td>
        <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_table"><img src="images/toolbox/table.gif" width="21" height="20" alt=" " /></div></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_textformat"><img src="images/toolbox/text.gif" width="21" height="20" alt=" " /></div></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_poem"><img src="images/toolbox/poem.gif" width="21" height="20" alt=" " /></div></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_frame"><img src="images/toolbox/frame.gif" width="21" height="20" alt="" /></div></td>
    </tr>
    </table>
</div>
</if>
<div class="controlbar" style="padding-$stylevar[right]:8px">
	<fieldset style="border:0px; padding:0px; margin:0px">
	<if condition="$show['qr_require_click']">
	<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$vbphrase[click_quick_reply_icon]</textarea>
	<else />
	<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
	</if>
	</fieldset>
	<!--width:$stylevar[messagewidth]-->
</div>
<div class="controlbar" style="padding-$stylevar[right]:8px">
<div id="massybar" style="font-size:10px;font-family:Tahoma">   -  Massy Version 5 -   - dndsha.com</div>
</div>
<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editortype" />
<input type="hidden" name="styleid" value="$session[styleid]" />

<script type="text/javascript">
<!--
vB_Editor['$editorid'] = new vB_Text_Editor('$editorid', $editortype, '$forumid', '$parsesmilie');
vB_Editor['$editorid'].init_bdr130_button();
var QR_EditorID = '$editorid';
//-->
</script>