<?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>


   <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
    <TR> 
     <TD ALIGN="CENTER" VALIGN="TOP">

<br><br>
<script language="JavaScript">
<!--
function ins(prop,type)
{
	var input = document.form.message;
	var mysel;var text;
	if (window.getSelection) mysel = window.getSelection();
	else if (document.selection) mysel = document.selection.createRange().text;
	else if (document.getSelection)	mysel = document.getSelection();
	b = (type == 0) ? '['+prop+']' : prop;
	e = (type == 0) ? '[/'+prop+']' : '';
  if (input.createTextRange)
  {
	  var text;
    input.focus(input.caretPos);
    input.caretPos = document.selection.createRange().duplicate();
    input.caretPos.text = (input.caretPos.text.length>0) ? b + input.caretPos.text + e : b + mysel + e;
   }
   else input.value += b + mysel + e;
}

function formCheck(form) {
if (form.subject.value == "")
{alert("<?=ENTER_YOUR_SUBJECT?>");return false;}
if (form.message.value == "")
{alert("<?=ENTER_YOUR_MESSAGE?>");return false;}

if (document.form.submit.action != "") {
document.form.submit.disabled=1;}
}
// -->
</script>

<form action="?" method="post" name=form OnSubmit="return formCheck(this)">
<input class=input type=hidden name="l" value="<?=LANGUAGE?>">
<input class=input type=hidden name="id" value="<?=ID_VALUE?>">
<input class=input type=hidden name="a" value="s">
<center><span class=head><?=SEND_MESSAGE_TO_USER?> <?=USER_NAME?></span>
<br>
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" align=center width="<?=C_WIDTH?>" bgcolor="<?=C_TBCOLOR?>">
<Tr>
  <Td width="<?=C_WIDTH?>" bgcolor="<?=COLOR1?>" valign="top">
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_WIDTH?>" class=mes>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td width="30%" ><?=SUBJECT?></Td>
    <Td width="70%"><input class=forum_input type=text name=subject maxlength="255"></Td>
  </Tr>  
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td width="30%"><?=MESSAGE?></Td>
    <Td width="70%">
<?if(USE_SMILES || USE_BB){?>
    <Table Border=0 width="350" CellSpacing="2" CellPadding="6"><Tr align="left" bgcolor="<?=COLORH?>"><Td>
<?if(USE_SMILES){?><?$p=0;foreach ($smiles as $k=>$v){$p++;?><a href="javascript:ins(' <?=$k?> ',1)"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/forum/smiles/<?=$v?>" border=0 /></a>
<?if(C_SMILES_NUMBER <= $p){?><br><a href="javascript:open_win('<?=C_URL?>/forum/smiles_show.php','_blank')"><?=$w[720]?></a><br><?break;}?><?}?><?}?> 
<?if(USE_BB && USE_SMILES){?><br><br><?}?>
<?if(USE_BOLD){?><a href="javascript:ins('B',0)"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Bold.gif" border=0 /></a><?}?>
<?if(USE_ITALIC){?><a href="javascript:ins('I',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Italic.gif" border=0 /></a><?}?>
<?if(USE_UNDERLINE){?><a href="javascript:ins('U',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Underline.gif" border=0 /></a><?}?>
<?if(USE_STRIKE){?><a href="javascript:ins('S',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Strike.gif" border=0 /></a><?}?>
<?if(USE_QUOTE){?><a href="javascript:ins('QUOTE',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Quote.gif" border=0 /></a><?}?>  
<?if(USE_URL){?><a href="javascript:ins('URL',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/URL.gif" border=0 /></a><?}?>  
<?if(USE_IMG){?><a href="javascript:ins('IMG',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Image.gif" border=0 /></a><?}?>  
<?if(USE_VIDEO){?><a href="javascript:ins('VIDEO',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Video.gif" border=0 /></a><?}?>  
</td></tr></table><?}?>
<textarea class=forum_input name=message cols=40 rows=12></textarea></Td></Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td colspan=2>
    <input type="checkbox" name="confirm" checked> <?=NOTIFY_ME?>
    </td>
  </tr>
  <?if (VERIFY_ALLOW) {?>
  	<Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td><?=VERIFICATION?><br><img src="<?=C_URL?>/img.php" border=0></Td>
    <Td><input class=minput type=text name=verifyimage></Td>
  </Tr>
	<?}?>  
<Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>"><td colspan=2 align=right><input class=input1 type=submit value="<?=SEND_MESSAGE?>" name="submit"></Td></Tr></table></td></tr></table></form><br><br></TD></TR></TABLE>
