<% 
'Eweb End of Document Inclusion

' EWEBEDIT START'

		' Place this at the bottom of eweb pages...
		 Else %>
		<% 
			Content = Trim(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Request("Content"), Chr(13), ""), Chr(10), ""), """", "ewebquot;"), "'", "ewebsquot;"), "#", "ewebpound;"), "&", "ewebamp;"), "?", "ewebquest;"))
			New_Content = Trim(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Request("New_Content"), Chr(13), ""), Chr(10), ""), """", "ewebquot;"), "'", "ewebsquot;"), "#", "ewebpound;"), "&", "ewebamp;"), "?", "ewebquest;"))
			Content_Enter = Trim(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Request("New_Content"), Chr(13), ""), Chr(10), ""), "ewebquot;", """"), "ewebsquot;", "'"), "ewebpound;", "#"), "ewebamp;", "&"), "ewebquest;", "?"))
			Content_Enter = Trim(Replace(Replace(Replace(Replace(Content_Enter, Chr(13), ""), Chr(10), ""), "'", "\'"), "script", "\script"))		
		%>
		<HTML>
		<STYLE>
BODY {SCROLLBAR-FACE-COLOR: #5e5ebe; SCROLLBAR-HIGHLIGHT-COLOR: #5e5ebe; SCROLLBAR-SHADOW-COLOR: #5e5ebe; SCROLLBAR-3DLIGHT-COLOR: #5e5ebe; SCROLLBAR-ARROW-COLOR:  #6666CC; SCROLLBAR-TRACK-COLOR: #E3E3E3; SCROLLBAR-DARKSHADOW-COLOR: #666666; }
</STYLE>
<head>
		</script>
		</HEAD>
		<BODY>
		<form method="POST" action="<%=Request("URL")%>" name="ewebpost">
		<input type="hidden" name="page" value="inpage">
		<input type="hidden" name="URL" value="<%=Request("URL")%>">
		<input type="hidden" name="New_Content" value="<%=New_Content%>">
		<input type="hidden" name="Content" value="<%=Content%>">
		<input type="hidden" name="Posted" value="True">
		<input type="hidden" name="From" value="<%=Request("From")%>">
		<input type="hidden" name="Title" value="<%=Request("Title")%>">
		<input type="hidden" name="objname" value="<%=Request("objname")%>">
		<script language="javascript">
		var obj = parent.document.getElementById("<%=Request("objname")%>");
		//alert(obj.value);
		obj.value='<%=Content_Enter%>';
		//alert(obj.value);
		document.ewebpost.submit();
		</script>
		</form>
		</body>
		</html>
		<% End If %>

<% ' EWEBEDIT END' %>
