<!--#include file="../Inc/Config.asp" -->
<%
IF NOT IsWangZai Then
	Response.Write "对不起,本博客禁止了全文网摘功能!"
	Response.End
End IF
%>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title></title>
</head>
<body lang="zh-CN">
<form id=form1 action="Accepts_Post.asp" method="post">
<P>
<input type="hidden" name="title" id=title1> 
<input type="hidden" name="url" id=url1> 
<input type="hidden" name="js" id=js1> 
<TEXTAREA id=content1 style="DISPLAY: none" name="content"></TEXTAREA> </P>
</form>
</body>
</html>
<script language="Javascript">
		var oWin = external.menuArguments;
		var oDoc = oWin.document;
		var titlestr;
		var start, end;
		var getzy;
		start = end = -1;
		titlestr = oWin.document.selection.createRange().text;
		for( var i = 0; i < titlestr.length; i++ )
		{
			if( start == -1 )
				if( titlestr.charAt( i ) == '\n' || titlestr.charAt( i ) == '\r' )
					continue;
				else
					start = i;
			else if( titlestr.charAt( i ) == '\n' || titlestr.charAt( i ) == '\r' )
			{
				end = i;
				break;
			}
				
		}
		
		if( start != -1 && end != -1 && start < end )
			form1.title1.value = oDoc.title; 
		else
			form1.title1.value = oDoc.title; 
			

		for( var i = 0; i < oDoc.images.length; i++ )
		{
			oDoc.images( i ).src = oDoc.images( i ).src;
		}

		for( var i = 0; i < oDoc.links.length; i++ )
		{
			oDoc.links( i ).href = oDoc.links( i ).href;
		}

		form1.url1.value =  oDoc.URL ;
		getzy = oDoc.selection.createRange().text;
		form1.js1.value =  getzy.substr(0, 250)+"..." ;
		form1.content1.innerText = oWin.document.selection.createRange().htmlText;		
		form1.submit();
</script>