<?

/*
FlexCMS (http://www.flexcms.com)
Flexible, Powerful, Affordable.


Contents of this file are protected by the copyright
notice found at http://www.flexcms.com/flex/pages/copyright.html,
and its usage is subject to the terms of the licensing agreement 
available at http://www.flexcms.com/flex/pages/license.html
*/



	// ========================================================================================
	// compose/create new forum thread
	// ========================================================================================
	
	
	ReadPermissions();
	Global $Permissions;
	
	if ($Permissions[201] != 'y') {
	// if the user doesn't have permission to post
	
		$Arguments3 = intval($Arguments3);
		
					
		$query = "select * from `".$Settings['DBPrefix']."mb-Boards` where RecordNumber=".$Arguments3." limit 1";
		$result = mysql_query($query) or die (mysql_error());
		$row = mysql_fetch_array($result);
		
		$BoardID = $row['RecordNumber'];
		$BoardTitle = $row['Title'];
		$BoardDescription = $row['Description'];
		$CategoryID = $row['Category'];
		
		
		
		$query = "select Title,Description from `".$Settings['DBPrefix']."mb-Categories` where RecordNumber=".$CategoryID." limit 1";
		$result = mysql_query($query) or die (mysql_error());
		$row = mysql_fetch_array($result);
		
		$CategoryTitle = $row['Title'];
		//$CategoryDescription = $row['Description'];
		
		
		
			
		$PageTitle = $mbSettings['PageTitle'];
		$BrowserTitle = $mbSettings['PageTitle'] . ' - '.$MsgText[2][94];
		$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="'.$MainURL.'/forum.html">'.$mbSettings['PageTitle'].'</a> > <a href="'.$MainURL.'/forum.html#'.$CategoryID.'">'.$CategoryTitle.'</a> > <a href="'.$MainURL.'/forum/'.$BoardID.'.html">'.$BoardTitle.'</a> > '.$MsgText[2][94];


		
			$RedirectString = $Arguments1 . '/' . $Arguments2 . '/' . $Arguments3 . '/' . $Arguments4 . '/' . $Arguments5 . '/' . $Arguments6 . '/' . $Arguments7 . '/' . $Arguments8 . '/' . $Arguments9;
	
			$RedirectString = str_replace('//','',$RedirectString);
	
			if (substr($RedirectString,strlen($RedirectString)-1,1) == '/') {
				$RedirectString = substr($RedirectString,0,strlen($RedirectString)-1);
			}
	
			$RedirectString = str_replace('/','+++',$RedirectString);

			
			$LoginLink = $MainURL . '/login/' . $RedirectString;




			$PageContents = '<br><br>'.$MsgText[2][60].'<br><br>';

			if ($LoggedIn != 'y') {
				$PageContents .= $MsgText[2][61].': <a href="'.$LoginLink.'">'.$MsgText[0][192].'</a>.';
				
				
				if ($Settings['AllowGuestRegistrations'] == 'y') {
					$PageContents .= '  '.$MsgText[2][62].': <a href="'.$MainURL.'/register.html">'.$MsgText[0][124].'</a>.';
				}
			
			
				$PageContents .= '<br><br>'.$MsgText[2][63].' <a href="'.$MainURL.'/forum/'.$BoardID.'/'.$Arguments3.'.html">'.$MsgText[2][64].'</a>.';
			
			}
		
			else {
		
				$PageContents .= '<a href="'.$MainURL.'/forum/'.$BoardID.'/'.$Arguments3.'.html">'.$MsgText[2][64].'</a>.';
		
			}

	
	}
	else {
	// allowed to post	
	
		if (intval($Arguments3) > 0) {
		
			$Arguments3 = intval($Arguments3);
		
					
			$query = "select * from `".$Settings['DBPrefix']."mb-Boards` where RecordNumber=".$Arguments3." limit 1";
			$result = mysql_query($query) or die (mysql_error());
			$row = mysql_fetch_array($result);
			
			$BoardID = $row['RecordNumber'];
			$BoardTitle = $row['Title'];
			$BoardDescription = $row['Description'];
			$CategoryID = $row['Category'];
			
			
			
			$query = "select Title,Description from `".$Settings['DBPrefix']."mb-Categories` where RecordNumber=".$CategoryID." limit 1";
			$result = mysql_query($query) or die (mysql_error());
			$row = mysql_fetch_array($result);
			
			$CategoryTitle = $row['Title'];
			//$CategoryDescription = $row['Description'];
			
			
			
				
			$PageTitle = '<div align="'.$AlignmentCodes[$mbSettings['TitleAlignment']].'">'.$mbSettings['PageTitle'].'</div>';
			$BrowserTitle = $mbSettings['PageTitle'] . ' - '.$MsgText[2][94];
			$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="'.$MainURL.'/forum.html">'.$mbSettings['PageTitle'].'</a> > <a href="'.$MainURL.'/forum.html#'.$CategoryID.'">'.$CategoryTitle.'</a> > <a href="'.$MainURL.'/forum/'.$BoardID.'.html">'.$BoardTitle.'</a> > '.$MsgText[2][94];
			
			
			
			
			// smilies setup
		
			$SmiliesBlock .= '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>&nbsp;</td>';
		
		
			$query8 = "select * from `".$Settings['DBPrefix']."core-Smilies` where Enabled=1 and Hidden!=1 order by SmilieOrder asc";
			$result8 = mysql_query($query8) or die (mysql_error());
			while ($row8 = mysql_fetch_array($result8)) {
				
				if ($row8['InsertCode'] != '') {
				
					$InsertCode = $row8['InsertCode'];
					
					$InsertCode = str_replace('\\','\\\\',$InsertCode);
					$InsertCode = str_replace('\'','\\\'',$InsertCode);
					
					
					if (substr($row8['ImageLink'],0,4) != 'http') {
						$ImageLink = $ImagesURL . '/smilies/' . $row8['ImageLink'];					
					}
					else {
						$ImageLink = $row8['ImageLink'];
					}
					
					
					$SmiliesBlock .= '<td align="center"><a href="javascript:InsertSmiles(\''.$InsertCode.'\')"><img src="'.$ImageLink.'" border="0" alt="'.$row8['Description'].'"></a></td><td>&nbsp;</td>';
					
					
				}
				
			}

			
			$SmiliesBlock .= '</tr></table>';
		
			
			if ($Permissions[202] == 'y') {
				$StickyThreadPrint = '<br><br><font face="'.$FontFace.'" size="'.$FontSize.'"><input type="checkbox" name="StickyThread" value="yes"> '.$MsgText[2][96];
			}
	
	
			$PageContents = '<script>
		
var BrowserName = navigator.appName;
var BrowserVersion = navigator.appVersion;


function storeCaret(text) { 
	if (text.createTextRange) {
		text.caretPos = document.selection.createRange().duplicate();
	}
}

var TagOpen = ""; var TagClose = "";
var TagCode = ""; // tag code sent from page when inserting code
var InsertMode = "c"; // insert mode (c = combined, s = separate), set later by drop-down box on page

var TagOpen = new Array; // array of opening tags
var TagClose = new Array; // array of closing tags (for tags without a closing tag, this needs to be blank)
var TagCaret = new Array; // array or tag caret, or simply put, which tag to insert next if in \'separate mode\'


TagOpen[\'b\'] = "[b]";
TagClose[\'b\'] = "[/b]";
TagCaret[\'b\'] = 0;

TagOpen[\'i\'] = "[i]";
TagClose[\'i\'] = "[/i]";
TagCaret[\'i\'] = 0;

TagOpen[\'u\'] = "[u]";
TagClose[\'u\'] = "[/u]";
TagCaret[\'u\'] = 0;

TagOpen[\'url\'] = "[url]";
TagClose[\'url\'] = "[/url]";
TagCaret[\'url\'] = 0;

TagOpen[\'url_text\'] = "[url=http://]";
TagClose[\'url_text\'] = "[/url]";
TagCaret[\'url_text\'] = 0;

TagOpen[\'email\'] = "[email]";
TagClose[\'email\'] = "[/email]";
TagCaret[\'email\'] = 0;

TagOpen[\'img\'] = "[img]";
TagClose[\'img\'] = "[/img]";
TagCaret[\'img\'] = 0;

TagOpen[\'code\'] = "[code]";
TagClose[\'code\'] = "[/code]";
TagCaret[\'code\'] = 0;

TagOpen[\'quote\'] = "[quote]";
TagClose[\'quote\'] = "[/quote]";
TagCaret[\'quote\'] = 0;

TagOpen[\'left\'] = "[left]";
TagClose[\'left\'] = "[/left]";
TagCaret[\'left\'] = 0;

TagOpen[\'center\'] = "[center]";
TagClose[\'center\'] = "[/center]";
TagCaret[\'center\'] = 0;

TagOpen[\'right\'] = "[right]";
TagClose[\'right\'] = "[/right]";
TagCaret[\'right\'] = 0;

TagOpen[\'hr\'] = "[hr]";
TagClose[\'hr\'] = "";
TagCaret[\'hr\'] = 0;


// special set
TagOpen[\'color\'] = ""; // set by function
TagClose[\'color\'] = "[/color]";
TagCaret[\'color\'] = 0;
function InsertColor(ColorCode) {
	TagOpen[\'color\'] = "[color=" + ColorCode + "]";
	InsertCode(\'color\');
}

// special set
TagOpen[\'smile\'] = ""; // set by function
TagClose[\'smile\'] = "";
TagCaret[\'smile\'] = 0;
function InsertSmiles(SmileCode) {
	TagOpen[\'smile\'] = \' \'+SmileCode;
	InsertCode(\'smile\');
}


// special set
TagOpen[\'font\'] = ""; // set by function
TagClose[\'font\'] = "[/font]";
TagCaret[\'font\'] = 0;
function InsertFontFace() {
	TagOpen[\'font\'] = \'[font=\'+document.forms[\'PostForm\'].elements[\'FontFace\'].value+\']\';
	InsertCode(\'font\');
}

// special set
TagOpen[\'size\'] = ""; // set by function
TagClose[\'size\'] = "[/size]";
TagCaret[\'size\'] = 0;
function InsertFontSize() {
	TagOpen[\'size\'] = \'[size=\'+document.forms[\'PostForm\'].elements[\'FontSize\'].value+\']\';
	InsertCode(\'size\');
}


function InsertCode(TagCode) {
	//alert(TagCode);
	if (InsertMode == "c") { // if working in combined tags mode
		if (document.PostForm.Message.createTextRange && document.PostForm.Message.caretPos) {    
			// text range successfully created; add the tags around or after the selected text  
			var caretPos = document.PostForm.Message.caretPos;      
			caretPos.text = TagOpen[TagCode] + caretPos.text + TagClose[TagCode];
			document.PostForm.Message.focus(caretPos);
		}
		else if (document.getElementById(\'Message\').selectionEnd > document.getElementById(\'Message\').selectionStart) {
			var RangeStart = document.getElementById(\'Message\').selectionStart;
			var RangeEnd = document.getElementById(\'Message\').selectionEnd;
												
			document.PostForm.Message.value = document.PostForm.Message.value.substring(0,RangeStart)+TagOpen[TagCode]+document.getElementById(\'Message\').value.substring(RangeStart,RangeEnd)+TagClose[TagCode]+document.PostForm.Message.value.substring(RangeEnd);
			
			var caretPos = document.PostForm.Message.caretPos;
			document.PostForm.Message.focus(caretPos);
		}
		else {		
			// text range could not be created; add the tag to the end of the message
			document.PostForm.Message.value +=  TagOpen[TagCode] + TagClose[TagCode];
			
			var caretPos = document.PostForm.Message.caretPos;
			document.PostForm.Message.focus(caretPos);
		}
	}
	else if (InsertMode == "s") { // if working in separate tags mode
		var TagToInsert = "";
		if (TagCaret[TagCode] == 0) {
				TagToInsert = TagOpen[TagCode];
				if (TagClose[TagCode] != "") {
					// if there\'s an end tag, insert it next time
					TagCaret[TagCode] = 1;
				}
			}
			else {
				TagToInsert = TagClose[TagCode];
				TagCaret[TagCode] = 0;
			}
		
		if (document.PostForm.Message.createTextRange && document.PostForm.Message.caretPos) {  
			// text range successfully created; add the tags around or after the selected text      
			var caretPos = document.PostForm.Message.caretPos;      
			caretPos.text = caretPos.text + TagToInsert;
		}
		else {
			// text range could not be created; add the tag to the end of the message
			document.PostForm.Message.value += TagToInsert;
		}
		
		document.PostForm.Message.focus(caretPos); // update the message text with that from the modified range
	}
}


function ImagePrompt() {
	if (document.PostForm.Message.createTextRange && document.PostForm.Message.caretPos && document.PostForm.Message.caretPos.text != "") {    
		// text range successfully created; add the tags around or after the selected text  
		var caretPos = document.PostForm.Message.caretPos;      
		caretPos.text = "[img]" + caretPos.text + "[/img]";		
	}
	else if (document.getElementById(\'Message\').value.substring(document.getElementById(\'Message\').selectionStart, document.getElementById(\'Message\').selectionEnd) && BrowserVersion.indexOf("MSIE") == -1) {
		var RangeStart = document.getElementById(\'Message\').selectionStart;
		var RangeEnd = document.getElementById(\'Message\').selectionEnd;
					
		document.PostForm.Message.value = document.PostForm.Message.value.substring(0,RangeStart)+"[img]"+document.getElementById(\'Message\').value.substring(RangeStart,RangeEnd)+"[/img]"+document.PostForm.Message.value.substring(RangeEnd);
	}
	else {
		// text range could not be created
		
		var ImageURL = prompt("Enter URL Of Image To Insert:","http://");
		if (ImageURL != "" && ImageURL != null) {
			document.PostForm.Message.value += "[img]"+ImageURL+"[/img]";
		}
	}
}

function EmailPrompt() {
	if (document.PostForm.Message.createTextRange && document.PostForm.Message.caretPos && document.PostForm.Message.caretPos.text != "") {    
		// text range successfully created; add the tags around or after the selected text  
		var caretPos = document.PostForm.Message.caretPos;      
		caretPos.text = "[email]" + caretPos.text + "[/email]";		
	}
	else if (document.getElementById(\'Message\').value.substring(document.getElementById(\'Message\').selectionStart, document.getElementById(\'Message\').selectionEnd) && BrowserVersion.indexOf("MSIE") == -1) {
		var RangeStart = document.getElementById(\'Message\').selectionStart;
		var RangeEnd = document.getElementById(\'Message\').selectionEnd;
					
		document.PostForm.Message.value = document.PostForm.Message.value.substring(0,RangeStart)+"[email]"+document.getElementById(\'Message\').value.substring(RangeStart,RangeEnd)+"[/email]"+document.PostForm.Message.value.substring(RangeEnd);
	}
	else {
		// text range could not be created
		
		var Email = prompt("Enter Address To Insert:","");
		if (Email != "" && Email != null) {
			document.PostForm.Message.value += "[email]"+Email+"[/email]";
		}
	}
}

function URLPrompt1() {
	if (document.PostForm.Message.createTextRange && document.PostForm.Message.caretPos && document.PostForm.Message.caretPos.text != "") {    
		// text range successfully created; add the tags around or after the selected text  
		var caretPos = document.PostForm.Message.caretPos;      
		caretPos.text = "[url]" + caretPos.text + "[/url]";		
	}
	else if (document.getElementById(\'Message\').value.substring(document.getElementById(\'Message\').selectionStart, document.getElementById(\'Message\').selectionEnd) && BrowserVersion.indexOf("MSIE") == -1) {
		var RangeStart = document.getElementById(\'Message\').selectionStart;
		var RangeEnd = document.getElementById(\'Message\').selectionEnd;
					
		document.PostForm.Message.value = document.PostForm.Message.value.substring(0,RangeStart)+"[url]"+document.getElementById(\'Message\').value.substring(RangeStart,RangeEnd)+"[/url]"+document.PostForm.Message.value.substring(RangeEnd);
	}
	else {
		// text range could not be created
		
		var InsertURL = prompt("Enter URL To Insert:","http://");
		if (InsertURL != "" && InsertURL != null) {
			document.PostForm.Message.value += "[url]"+InsertURL+"[/url]";
		}
	}
}

function URLPrompt2() {
	if (document.PostForm.Message.createTextRange && document.PostForm.Message.caretPos && document.PostForm.Message.caretPos.text != "") {    
		// text range successfully created; add the tags around or after the selected text  
		var InsertURL = prompt("Enter URL To Insert:","http://");
		if (InsertURL != "" && InsertURL != null) {
			var caretPos = document.PostForm.Message.caretPos;      
			caretPos.text = "[url="+InsertURL+"]" + caretPos.text + "[/url]";			
		}
	}
	else if (document.getElementById(\'Message\').value.substring(document.getElementById(\'Message\').selectionStart, document.getElementById(\'Message\').selectionEnd) && BrowserVersion.indexOf("MSIE") == -1) {
		var RangeStart = document.getElementById(\'Message\').selectionStart;
		var RangeEnd = document.getElementById(\'Message\').selectionEnd;
		
		var InsertURL = prompt("Enter URL To Insert:","http://");
		if (InsertURL != "" && InsertURL != null) {			
			document.PostForm.Message.value = document.PostForm.Message.value.substring(0,RangeStart)+"[url="+InsertURL+"]"+document.getElementById(\'Message\').value.substring(RangeStart,RangeEnd)+"[/url]"+document.PostForm.Message.value.substring(RangeEnd);
		}
	}
	else {
		// text range could not be created
		
		var InsertURL = prompt("Enter URL To Insert:","http://");
		if (InsertURL != "" && InsertURL != null) {
			
			var LinkText = prompt("Enter Title For Clickable Link","");
			if (LinkText != "" && LinkText != null) {
				document.PostForm.Message.value += "[url="+InsertURL+"]"+LinkText+"[/url]";
			}
			else {
				document.PostForm.Message.value += "[url]"+InsertURL+"[/url]";
			}
		}
	}
}


</script>


<script>

function ShowMessagePreview() {

	document.forms["PostForm"].elements["ShowPreview"].value = "yes";
	
	document.forms["PostForm"].elements["submit"].click();

}

function ValidateForm() {

	if (document.forms["PostForm"].elements["Message"].value == "") {
		alert("'.$MsgText[2][70].'");
		return false;
	}
	else {
		document.forms["PostForm"].elements["submit"].disabled = true;
		document.forms["PostForm"].elements["preview"].disabled = true;

		return true;
	}

}

</script>

		
		<form name="PostForm" action="'.$MainURL.'/forum/thread-post" method="post" onSubmit="return ValidateForm();">
		
		<input type="hidden" name="BoardID" value="'.$BoardID.'">
		
		<input type="hidden" name="ShowPreview" value="">
				
		
		'.$MsgText[2][71].':<br><input type="text" name="Subject" size="40" style="'.$FormStyle.'">
		
		<br><br>
		
		'.$MsgText[2][72].':<br><textarea name="Message" id="Message" cols="40" rows="8" wrap="virtual" style="width: 500px; height: 200px; '.$FormStyle.'" onSelect="javascript:storeCaret(this);" onClick="javascript:storeCaret(this);" onKeyUp="javascript:storeCaret(this);" onChange="javascript:storeCaret(this);"></textarea>
		
		<br><br><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br>


<table border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>

<table border="0" cellpadding="1" cellspacing="1" width="100%">
    <tr>
      <td>
	  
	  <table width="20" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:InsertCode(\'b\');" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">&nbsp;<b>B</b>&nbsp;</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>
	  
	  <table width="20" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:InsertCode(\'i\');" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">&nbsp;<i>i</i>&nbsp;</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>
	  
	  <table width="20" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:InsertCode(\'u\');" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">&nbsp;<u>u</u>&nbsp;</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>&nbsp;</td>
	  
	  <td>
	  
	  <table width="20" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:InsertCode(\'hr\');"><img src="'.$ImagesURL.'/admin/fbc_hr.gif" border="0" width="18" height="16" alt="Horizontal Rule"></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>

	  </td>
	  
	  <td>&nbsp;</td>
	  
      <td>
	  
	  <table border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="1" cellspacing="0"><tr><td>

<img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="3" height="1" alt=""><select name="FontFace" style="font-size:12px;">
	<option value="Arial"> Arial</option>
	<option value="Comic Sans MS"> Comic Sans MS</option>
	<option value="Courier New"> Courier New</option>
	<option value="Helvetica"> Helvetica</option>
	<option value="Georgia"> Georgia</option>
	<option value="Impact"> Impact</option>
	<option value="Times New Roman"> Times New Roman</option>
	<option value="Verdana"> Verdana</option>
</select><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="3" height="1" alt=""><input type="button" value="Go" onClick="InsertFontFace();" style="font-size:12px;"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="3" height="1" alt="">


</td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>	    
	  
	  </td>
	  
	  <td align="right">
	  
	  <table border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="1" cellspacing="0"><tr><td>

<img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="3" height="1" alt=""><select name="FontSize" style="font-size:12px;">
	<option value="1"> 1</option>
	<option value="2" selected> 2</option>
	<option value="3"> 3</option>
	<option value="4"> 4</option>
	<option value="5"> 5</option>
	<option value="6"> 6</option>
</select><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="3" height="1" alt=""><input type="button" value="Go" onClick="InsertFontSize();" style="font-size:12px;"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="3" height="1" alt="">

</td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>	    
	  
	  </td>
	  
    </tr>
</table>

<img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br>

<table border="0" cellpadding="1" cellspacing="1" width="100%">
    <tr>
      <td>
	  
	  <table width="1" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:ImagePrompt();" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">Image</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>&nbsp;</td>
      <td>
	  
	  <table width="1" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:URLPrompt1();" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">URL</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>
	  
	  <table border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:URLPrompt2();" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">URL&nbsp;w/&nbsp;Contents</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>&nbsp;</td>
      <td>
	  
	  <table width="1" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:EmailPrompt();" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">Email</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>&nbsp;</td>
      <td>
	  
	  <table width="1" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:InsertCode(\'code\');" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">Code</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>&nbsp;</td>
      <td width="20">
	  
	  <table width="1" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td><a href="javascript:InsertCode(\'quote\');" style="text-decoration:none;"><font face="Arial" color="#000000" size="2">Quote</font></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table></td>
  
	  
    </tr>
</table>

		
		<img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br>
		
<table border="0" cellpadding="1" cellspacing="1" width="100%">
    <tr>
      <td>	
		<table width="1" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
    </tr>
    <tr>
      <td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content -->
		
		<table border="0" cellspacing="0" cellpadding="3"><tr><td bgcolor="#e6e6e6">
<table border="0" cellspacing="1" cellpadding="0" bgcolor="#222222" border="0"><tr>
<td bgcolor="#000000"><A HREF="javascript:InsertColor(\'black\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Black"></A></td>
<td bgcolor="#ffffff"><A HREF="javascript:InsertColor(\'white\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="White"></A></td>
<td bgcolor="#ff0000"><A HREF="javascript:InsertColor(\'red\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Red"></A></td>
<td bgcolor="#ffff00"><A HREF="javascript:InsertColor(\'yellow\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Yellow"></A></td>
<td bgcolor="#008000"><A HREF="javascript:InsertColor(\'green\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Green"></A></td>
<td bgcolor="#888888"><A HREF="javascript:InsertColor(\'grey\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Grey"></A></td>
<td bgcolor="#990000"><A HREF="javascript:InsertColor(\'burgundy\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Burgundy"></A></td>
<td bgcolor="#ff9900"><A HREF="javascript:InsertColor(\'orange\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Orange"></A></td>
<td bgcolor="#9900ff"><A HREF="javascript:InsertColor(\'purple\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Purple"></A></td>
<td bgcolor="#ffffcc"><A HREF="javascript:InsertColor(\'cream\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Cream"></A></td>
<td bgcolor="#008080"><A HREF="javascript:InsertColor(\'teal\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Teal"></A></td>
<td bgcolor="#ffcccc"><A HREF="javascript:InsertColor(\'salmon\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Salmon"></A></td>
<td bgcolor="#0000ff"><A HREF="javascript:InsertColor(\'blue\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Blue"></A></td>
<td bgcolor="#ff33cc"><A HREF="javascript:InsertColor(\'pink\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Pink"></A></td>
<td bgcolor="#003399"><A HREF="javascript:InsertColor(\'navy\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Navy"></A></td>
<td bgcolor="#33ccff"><A HREF="javascript:InsertColor(\'lightblue\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Light Blue"></A></td>
<td bgcolor="#666699"><A HREF="javascript:InsertColor(\'mauve\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Mauve"></A></td>
<td bgcolor="#00ff00"><A HREF="javascript:InsertColor(\'limegreen\')"><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="12" height="12" alt="Lime Green"></A></td>
</tr></table> 
</td></tr></table>

</td>
      <td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
    </tr>
    <tr>
      <td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
    </tr>
</table>
</td>
<td>&nbsp;</td>
      <td>
	  
	  <table width="1" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:InsertCode(\'left\');"><img src="'.$ImagesURL.'/admin/fbc_left.gif" border="0" width="18" height="16" alt="Left"></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>
	  
	  <table width="1" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:InsertCode(\'center\');"><img src="'.$ImagesURL.'/admin/fbc_center.gif" border="0" width="18" height="16" alt="Center"></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
      <td>
	  
	  <table width="1" border="0" cellpadding="0" cellspacing="0"><tr><td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content --><table border="0" cellpadding="2" cellspacing="0"><tr><td><a href="javascript:InsertCode(\'right\');"><img src="'.$ImagesURL.'/admin/fbc_right.gif" border="0" width="18" height="16" alt="Right"></a></td></tr></table></td><td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr><tr><td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td><td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td></tr></table>
	  
	  </td>
</tr>
</table>
<img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
    <tr>
      <td width="100%">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="1" height="1" bgcolor="#f2f2f2"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="100%" height="1" bgcolor="#f1f1f1"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="1" height="1" bgcolor="#e8e8e8"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
    </tr>
    <tr>
      <td width="1" height="100%" bgcolor="#ebebeb"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="100%" height="100%" bgcolor="#e6e6e6"><!-- content -->'.$SmiliesBlock.'</td>
      <td width="1" height="100%" bgcolor="#929292"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
    </tr>
    <tr>
      <td width="1" height="1" bgcolor="#b4b4b4"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="100%" height="1" bgcolor="#616161"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
      <td width="1" height="1" bgcolor="#5b5b5b"><img src="'.$TemplateImagesURL.'/admin/spacer.gif" border="0" width="1" height="1" alt=""></td>
    </tr>
</table>


</td>
    </tr>
</table>

</td>
    </tr>
</table>


		'.$StickyThreadPrint.'<br>
<br><br>
			
			<input type="submit" name="submit" value="'.$MsgText[2][95].'" style="'.$FormStyle.'">&nbsp;&nbsp;&nbsp;<input type="button" name="preview" value="'.$MsgText[2][74].'" style="'.$FormStyle.'" onClick="ShowMessagePreview();">
							
			</form>';
		
		
		}
	
	
	} // end if allowed to post
		
?>
