<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>

<meta name="description" content="MOVABLE TYPE: Personal Publishing System" />
<meta http-equiv="Content-Type" content="text/html; charset=<TMPL_VAR NAME=LANGUAGE_ENCODING>" />

<title><MT_TRANS phrase="Post to MT Blog"> | MOVABLE TYPE</title>

<link rel="stylesheet" href="<TMPL_VAR NAME=STATIC_URI>styles.css" type="text/css">

<script language="JavaScript">
<!--

if ((!(navigator.appVersion.indexOf('MSIE') != -1) &&
(parseInt(navigator.appVersion)==4))) {
document.write("<STYLE TYPE=\"text/css\">");
document.write("BODY { margin-top: -8px; margin-left: -8px; }");
document.write("</style>");
}

var origWidth, origHeight;
if ((navigator.appName == 'Netscape') &&
(parseInt(navigator.appVersion) == 4)) {
origWidth = innerWidth;
origHeight = innerHeight;
window.onresize = restore;
}

function restore () {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();
}

<TMPL_IF NAME=SHOW_CATEGORY>

var c = new Array;
<TMPL_LOOP NAME=CATEGORY_LOOP>
if (c[<TMPL_VAR NAME=CATEGORY_BLOG_ID>] == null)
c[<TMPL_VAR NAME=CATEGORY_BLOG_ID>] = new Array();
c[<TMPL_VAR NAME=CATEGORY_BLOG_ID>][<TMPL_VAR NAME=CATEGORY_INDEX>] = new MTChoice('<TMPL_VAR NAME=CATEGORY_LABEL>', <TMPL_VAR NAME=CATEGORY_ID>);
</TMPL_LOOP>

function MTChoice (label, id) {
this.label = label;
this.id = id;
}

</TMPL_IF>

var d = new Array();
var cb = new Array();
var ap = new Array();
var ps = new Array();
<TMPL_LOOP NAME=BLOG_LOOP>
d[<TMPL_VAR NAME=BLOG_ID>] = '<TMPL_VAR NAME=BLOG_ALLOW_COMMENTS>';
cb[<TMPL_VAR NAME=BLOG_ID>] = '<TMPL_VAR NAME=BLOG_CONVERT_BREAKS>';
ap[<TMPL_VAR NAME=BLOG_ID>] = '<TMPL_VAR NAME=BLOG_ALLOW_PINGS>';
ps[<TMPL_VAR NAME=BLOG_ID>] = '<TMPL_VAR NAME=BLOG_STATUS>';
</TMPL_LOOP>

function setMenu (f) {
var w = f.blog_id.options[f.blog_id.selectedIndex].value;
if (ps[w] == 1)
f.status.selectedIndex = 0;
else
f.status.selectedIndex = 1;
<TMPL_IF NAME=SHOW_CATEGORY>
var s = f.category_id;
s.options[0] = new Option('<MT_TRANS phrase="Select">', '');
s.length = 1;
s.selectedIndex = 0;
if (c[w] != null) {
var m = c[w];
for (i=0; i<m.length; i++)
s.options[i+1] = new Option(m[i].label, m[i].id);
s.length = m.length + 1;
}
</TMPL_IF>
var s = f.allow_comments;
if (d[w] != null) {
var m = d[w];
<TMPL_IF NAME=SHOW_ALLOW_COMMENTS>
s.checked = m == 1 ? true : false;
<TMPL_ELSE>
s.value = m == 1 ? 1 : 0;
</TMPL_IF>
}
var s = f.convert_breaks;
if (cb[w] != null) {
var m = cb[w];
<TMPL_IF NAME=SHOW_CONVERT_BREAKS>
s.checked = m == 1 ? true : false;
<TMPL_ELSE>
s.value = m == 1 ? 1 : 0;
</TMPL_IF>
}
var s = f.allow_pings;
if (ap[w] != null) {
var m = ap[w];
<TMPL_IF NAME=SHOW_ALLOW_PINGS>
s.checked = m == 1 ? true : false;
<TMPL_ELSE>
s.value = m == 1 ? 1 : 0;
</TMPL_IF>
}
}

function validate (f) {
var w = f.blog_id.options[f.blog_id.selectedIndex].value;
if (w == '') {
alert('<MT_TRANS phrase="You must choose a blog in which to post the new entry.">');
return false;
}
return true;
}

function formatStr (v) {
if (!document.selection) return;
var str = document.selection.createRange().text;
if (!str) return;
document.selection.createRange().text = '<' + v + '>' + str + '</' + v + '>';}

function insertLink () {
if (!document.selection) return;
var str = document.selection.createRange().text;
if (!str) return;
var my_link = prompt('<MT_TRANS phrase="Enter URL:">', 'http://');
if (my_link != null)
document.selection.createRange().text = '<a href="' + my_link + '">' + str + '</a>';
}

function mtShortCuts () {
if (event.ctrlKey != true) return;
if (event.keyCode == 1) insertLink();
if (event.keyCode == 2) formatStr('b');
if (event.keyCode == 9) formatStr('i');
if (event.keyCode == 21) formatStr('u');
}

//-->
</script>
<!-- load the main HTMLArea files -->
<script type="text/javascript" src="htmlarea.js"></script>
<script type="text/javascript" src="lang/en.js"></script>
<script type="text/javascript" src="dialog.js"></script>
<!-- <script type="text/javascript" src="popupdiv.js"></script> -->
<script type="text/javascript" src="popupwin.js"></script>

<!-- load the plugins -->
<script type="text/javascript">
// WARNING: using this interface to load plugin
// will _NOT_ work if plugins do not have the language
// loaded by HTMLArea.

// In other words, this function generates SCRIPT tags
// that load the plugin and the language file, based on the
// global variable HTMLArea.I18N.lang (defined in the lang file,
// in our case "lang/en.js" loaded above).

// If this lang file is not found the plugin will fail to
// load correctly and nothing will work.

HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("SpellChecker");
</script>
<style type="text/css">
@import url(htmlarea.css);

html, body {
font-family: Verdana,sans-serif;
background-color: #fea;
color: #000;
}
a:link, a:visited { color: #00f; }
a:hover { color: #048; }
a:active { color: #f00; }

textarea { background-color: #fff; border: 1px solid 00f; }
</style>
<script type="text/javascript">
var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("ta");

// register the SpellChecker plugin
editor.registerPlugin("TableOperations");

// register the SpellChecker plugin
editor.registerPlugin("SpellChecker");

editor.generate();
return false;
}

function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}
function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
</script>

</head>
<body onload="initEditor()">
<body onkeypress="mtShortCuts()" class="pop">

<!-- Begin main content -->

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

<tr>
<td width="39"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="39" height="50"></td>
<td valign="top" width="350"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="350" height="1"></td>
</tr>

<tr>
<td width="39">&nbsp;</td>
<td valign="top" width="350">

<form method="post" action="<TMPL_VAR NAME=SCRIPT_URL>" onSubmit="return validate(this)">
<input type="hidden" name="is_bm" value="1">
<input type="hidden" name="author_id" value="<TMPL_VAR NAME=AUTHOR_ID>">
<input type="hidden" name="__mode" value="save_entry">
<input type="hidden" name="status_old" value="">

<TMPL_IF NAME=SHOW_TRACKBACK>

<TMPL_IF NAME=TO_PING_URLS>
<font class="title">
<input type="checkbox" name="to_ping_urls" value="<TMPL_VAR NAME=TO_PING_URLS>" checked>
<MT_TRANS phrase="Ping TrackBack URL:"> <b><TMPL_VAR NAME=TO_PING_URLS></b></font><br><br>
</TMPL_IF>

<TMPL_IF NAME=TO_PING_URL_LOOP>
<font class="title"><MT_TRANS phrase="Select a TrackBack entry to ping:"></font><br>
<select name="to_ping_urls" class="menu-long">
<option value=""><MT_TRANS phrase="None">
<TMPL_LOOP NAME=TO_PING_URL_LOOP>
<option value="<TMPL_VAR NAME=PING_URL>"><TMPL_VAR NAME=TITLE>
</TMPL_LOOP>
</select><br><br>
</TMPL_IF>

</TMPL_IF>

<table border="0" cellspacing="0" cellpadding="2">

<tr>
<td valign="top" width="175"><font class="title"><MT_TRANS phrase="Select a blog for this post:"></font></td>
<td valign="top" width="175"><font class="title"><MT_TRANS phrase="Post Status"></font></td>
</tr>

<tr>
<td valign="top"><select name="blog_id" class="menu-short" onchange="setMenu(this.form)">
<option value=""><MT_TRANS phrase="Select a blog">
<TMPL_LOOP NAME=BLOG_LOOP>
<option value="<TMPL_VAR NAME=BLOG_ID>"><TMPL_VAR NAME=BLOG_NAME>
</TMPL_LOOP>
</select></td>
<td valign="top"><select name="status" class="menu-short">
<option value="1"><MT_TRANS phrase="Draft">
<option value="2" selected><MT_TRANS phrase="Publish">
</select></td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>

<tr>
<td valign="top" colspan="2"><font class="title"><MT_TRANS phrase="Title"></font></td>
</tr>

<tr>
<td valign="top" colspan="2"><input class="text-short" name="title" value="<TMPL_VAR NAME=TITLE>"></td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>

<TMPL_IF NAME=SHOW_CATEGORY>
<tr>
<td valign="top" colspan="2"><font class="title"><MT_TRANS phrase="Primary Category"></font></td>
</tr>

<tr>
<td valign="top" colspan="2">
<select class="menu-long" name="category_id">
<option value=""><MT_TRANS phrase="Select">
</select>
</td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>
<TMPL_ELSE>
<input type="hidden" name="category_id" value="">
</TMPL_IF>

<TMPL_IF NAME=SHOW_ALLOW_COMMENTS>
<tr>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="checkbox" name="allow_comments" value="1"></td>
<td valign="top"><font class="title"><MT_TRANS phrase="Allow Comments"></font></td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>
<TMPL_ELSE>
<input type="hidden" name="allow_comments" value="0">
</TMPL_IF>

<TMPL_IF NAME=SHOW_CONVERT_BREAKS>
<tr>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="checkbox" name="convert_breaks" value="1"></td>
<td valign="top"><font class="title"><MT_TRANS phrase="Convert Line Breaks"></font></td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>
<TMPL_ELSE>
<input type="hidden" name="convert_breaks" value="0">
</TMPL_IF>

<TMPL_IF NAME=SHOW_ALLOW_PINGS>
<tr>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="checkbox" name="allow_pings" value="1"></td>
<td valign="top"><font class="title"><MT_TRANS phrase="Allow Pings"></font></td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>
<TMPL_ELSE>
<input type="hidden" name="allow_pings" value="0">
</TMPL_IF>

<tr>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0" width="600" bgcolor="#F2F2F2">
<tr>
<td width="212"><font class="title-padding-grey"><MT_TRANS phrase="Entry Body"></font></td>
<td width="98" align="right">

<script language="javascript">
if (document.selection) {
document.write('<table border="0" cellspacing="0" cellpadding="0" width="107">');
document.write('<tr>');
document.write('<td width="24"><a href="javascript:formatStr(\'b\')"><img src="<TMPL_VAR NAME=STATIC_URI>images/bold-button.gif" alt="bold" width="24" height="18" border="0"></a></td>');
document.write('<td width="24"><a href="javascript:formatStr(\'i\')"><img src="<TMPL_VAR NAME=STATIC_URI>images/italic-button.gif" alt="italic" width="24" height="18" border="0"></a></td>');
document.write('<td width="24"><a href="javascript:formatStr(\'u\')"><img src="<TMPL_VAR NAME=STATIC_URI>images/underline-button.gif" alt="underline" width="24" height="18" border="0"></a></td>');
document.write('<td width="26"><a href="javascript:insertLink()"><img src="<TMPL_VAR NAME=STATIC_URI>images/url-button.gif" alt="link" width="26" height="18" border="0"></a></td>');
document.write('</tr>');
document.write('</table>');
} else {
document.write('&nbsp;');
}
</script>
</td>
</tr>

<tr>
<td colspan="2"><textarea<TMPL_IF NAME=AGENT_MOZILLA> cols="80"</TMPL_IF> id="ta" name="text" style="width:100%" rows="<TMPL_IF NAME=SHOW_TEXT_MORE>24<TMPL_ELSE>48</TMPL_IF>" wrap="virtual"><TMPL_VAR NAME=TEXT></textarea></td>
</tr>

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

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>

<TMPL_IF NAME=SHOW_TEXT_MORE>
<tr>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0" width="600" bgcolor="#F2F2F2">
<tr>
<td width="600"><font class="title-padding-grey"><MT_TRANS phrase="Extended Entry"></font></td>
</tr>

<tr>
<td colspan="2"><textarea<TMPL_IF NAME=AGENT_MOZILLA> cols=""</TMPL_IF> name="text_more" style="width:100%" rows="24" wrap="virtual"></textarea></td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>

</TMPL_IF>

<TMPL_IF NAME=SHOW_EXCERPT>
<tr>
<td valign="top" colspan="2"><font class="title"><MT_TRANS phrase="Excerpt"></font></td>
</tr>

<tr>
<td colspan="2"><textarea<TMPL_IF NAME=AGENT_MOZILLA> cols=""</TMPL_IF> name="excerpt" class="short310" rows="4" wrap="virtual"></textarea></td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>

</TMPL_IF>

<TMPL_IF NAME=SHOW_KEYWORDS>
<tr>
<td valign="top" colspan="2"><font class="title"><MT_TRANS phrase="Keywords"></font></td>
</tr>

<tr>
<td colspan="2"><textarea<TMPL_IF NAME=AGENT_MOZILLA> cols=""</TMPL_IF> name="keywords" class="short310" rows="4" wrap="virtual"></textarea></td>
</tr>

<tr>
<td colspan="2"><img src="<TMPL_VAR NAME=STATIC_URI>images/spacer.gif" width="1" height="5"></td>
</tr>

</TMPL_IF>

<tr>
<td colspan="2" align="right"><input class="button" type="button" onClick="window.close()" value="<MT_TRANS phrase="Cancel">">&nbsp;<input class="button" type="submit" value="<MT_TRANS phrase="Post">"></td>
</tr>

</table>

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

</body>
</html>