//9917home link--

var bottomhtml='<TABLE border=0 cellPadding=0 cellSpacing=0 width=960 align=center><tr><td align=center height=25 style="color:#000"><a href="http://www.xxsy.net">返回首页</a>｜<a href="/user.html">会员中心</a>｜<a href="/author_reg.asp">作家申请</a>｜<a href="/listbookqb.asp">完结作品</a>｜<a href="/viplistbook.asp">ＶＩＰ作品</a>｜<a href="/listbookqb.asp?iclass=10&ordertype=1&bState=0">５折特价Ｖ书</a>｜<a href="http://images.xxsy.net/xxzt/index.html">热门专题</a>｜<a href="/topten.asp">排 行 榜</a>｜<a href="/help/chaoxi.html">抄袭举报</a></td></tr><tr><td align=center height=25><a href=# onClick="window.external.addFavorite(\'http://www.xxsy.net\',\'潇湘书院-最专业的女性原创文学网站\');return(false);"><font color=#0000FF>添加潇湘到收藏夹方便下次看书<\/font><\/a>｜<a href=# onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http:\/\/www.xxsy.net\');return(false);" ><font color=#0000FF>设置下次自动访问潇湘书院<\/font><\/a><\/td><\/tr><tr><td align=center height=22 style="color:#000">请所有作者发布作品时务必遵守国家互联网信息管理办法规定，我们拒绝任何色情小说，一经发现，即作删除！</td></tr><tr><td align=center height=22 style="color:#000">本站所收录作品、社区话题、书库评论及本站所做之广告均属其个人行为，与本站立场无关 (51)</td></tr></table>'; 

	if(!window.loadmyJs){
		
		document.write(bottomhtml);
		
		
		!(function() {
		var container = document.getElementById("dingyue");
		if(container) {
		try{
		var linkElem = container.getElementsByTagName("tr")[0].getElementsByTagName("span")[1].firstChild;
		if(linkElem && /\/author\/(\d+).html$/.test(linkElem.getAttribute("href", 2))) { 
		linkElem.setAttribute("href", " http://www.9917.com/home/xxsyauthor.html?aid="+RegExp['$1']);
		}
		}
		catch (ex){} 
		}
		})();
		
		var isIE = (document.all) ? true : false;	
		if(!isIE){
			if($("test")){
				
				$("test").onload=autoResize();	
				
			}
			if($("test2")){
				$("test2").onload=autoResize2();	
			}
		}
		
		if(location.href.indexOf("/info/")>0){  //书页评论
			document.form.memo.wrap="soft";
			document.form.memo.style.width="570px";
			
			document.write('<iframe style="display:none" id=loginSrc name=loginSrc ></iframe>');
			function checkReg(){ 
				
				var tt=true;
				var parten = /[^\u4e00-\u9fa5" + "a-zA-Z0-9！，。？：‘’“”；！，．？：＂＂；\\;\\?\\,\\!\\.\\:\""]|[\\-\\=\\+\\*]*$/ig;
				var	content=document.form.memo.value.replace(parten,'');
				

				if (content == ""){
					myBox.Alert('必须输入书评内容',0,'','','','',false,false,true);
					document.form.memo.focus();
					tt=false;
					return false;
				}
				if (content.length < 5||content.length>5000){
					myBox.Alert('书评内容不得少于 5 字,发表长评必须在500-5000字之间',2,'','','','',true,'',true);
					document.form.memo.focus();
					tt=false;
					return false;
				}
				if (content.length < 500 && document.form.changping.checked==true){
					myBox.Alert('发表长评必须在500-5000字之间',0,'','','','',true,'',true);
					document.form.memo.focus();
					tt=false;
					return false;
				}
				if (content.length > 399 && document.form.changping.checked==false){
					myBox.Alert('评论内容达到长评标准，请勾选[我要发表长篇评论]再进行提交!',0,'','','','',true,'',true);
					document.form.memo.focus();
					tt=false;
					return false;
				}
				 var pattern = /[\u4E00-\u9FA5]/g;
				  if (pattern.test(content)==false){
					myBox.Alert('必须输入正规的书评内容,不要胡乱发贴',2,'','','','',true,'',true);
					document.form.memo.focus();
					tt=false;
					return false;
				}	
				
				if(tt==true){
					document.form.action="/pinglun.asp?fromurl=frominfo";
					document.form.target="loginSrc";
					document.form.submit();
				}
			}
			
		}
		document.close();
	}else{
		  myCreateFrame('bcount',0,0,'id_canvas_td','http://read2.xxsy.net/bookcount_public.asp');
		    if(Browser=="IE" ){
				  var _popjs=document.createElement("script");
				  _popjs.src="http://images.xxsy.net/js/xxsypop.js";
				  document.body.appendChild(_popjs);	
			  }
		  document.close();	
	}
	
		  
	
