 		</cfoutput>
 </cfif>
 
-
 <!------------------------------------------------------------------------------------------->
 <cfif action is "save">
 	<cfoutput>

			<tr>
				<td>
					<label for="project_name" class="likeLink" onClick="getDocs('project','title')">
						Project Title (say something useful, not just "My favorite species {buzzword of the week}.")
					</label>
					<textarea name="project_name" id="project_name" cols="80" rows="2" class="reqdClr"></textarea>
				</td>

		jQuery(document).ready(function() {
			countChar($("#project_description").val());
		});
		function disableMarkdown(){
			var txt=$("#project_description").val();
			txt='<nomd>\n'  + txt + '\n</nomd>';
			$("#project_description").val(txt);
		}
		function enableMarkdown(){
			var txt=$("#project_description").val();
			txt=txt.replace(/<nomd>\n/g,"");
			txt=txt.replace(/\n<\/nomd>/g,"");
			$("#project_description").val(txt);
		}
		function editMD (eid) {
			var guts = "/info/mdeditor.cfm?eid=" + eid;
			$("<iframe src='" + guts + "' id='dialog' class='popupDialog' style='width:600px;height:600px;'></iframe>").dialog({
				autoOpen: true,
				closeOnEscape: true,
				height: 'auto',
				modal: true,
				position: ['center', 'center'],
				title: 'Edit MarkDown',
					width:1200,
		 			height:800,
				close: function() {
					$( this ).remove();
				}
			}).width(1200-10).height(800-10);
			$(window).resize(function() {
				$(".ui-dialog-content").dialog("option", "position", ['center', 'center']);
			});
			$(".ui-widget-overlay").click(function(){
			    $(".ui-dialog-titlebar-close").trigger('click');
			});
		}
	</script>

	<cfoutput>
		<strong>Edit Project</strong> <a href="/ProjectDetail.cfm?project_id=#project_id#">[ Detail Page ]</a>
