// JavaScript Document
function i_trim(string1)
{
	var string2 ="";
	var j = 0;
	var k = string1.length;
	for(var i =0;i<string1.length;i++)
	{
		if(string1.charAt(i)!= ' ')
		{		
			break;
		}
		j++;
	}
	for(i = k - 1;i>=0;i--)
	{
		if(string1.charAt(i)!= ' ')
		{		
			break;
		}
		k--;
	}
	for(i = j;i<k;i++)
	{
		string2+=string1.charAt(i);
	}
	return string2;
}

function fucCheckLength(strTemp)
 {
  if (strTemp == "") return 0;
  var i,sum;
  sum=0;
  for(i=0;i<strTemp.length;i++)
  {
   if ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255))
    sum=sum+1;
   else
    sum=sum+2;
  }
  return sum;
 }

function nextsearch(search_again)
{
 var i=0;
 var j=0;
 var k=0;
     var str='';
     var str2='';
 var n,thestr,alert_str,re;
 //要屏蔽的字符
 alert_str="!#[]{}&," + String.fromCharCode(12288);
 alert_str2="!?#[]{}&," + String.fromCharCode(12288);
     
 var checkstr="^?#{}[]()&\"";
 var myschar = "~`@#$^&*()_-+=\|:\";'<>?,./{}[]1234567890qwertyuiopasdfghjklzxcvbnm";
 var mystring="的上一是～｀！＠＃＄％＾＆＊（）＿－＝＋；＇：＂，．＞＜？！/";
 var str1=search_again.kword.value;
 str1=i_trim(str1);
 //m=str1.length;
 m=fucCheckLength(str1);
 if (m <= 1)
 {
  alert("检索词不能为空或单个字符!");
  search_again.kword.select();
         return false;
 }
 if(m==2)
 {
	x=mystring.indexOf(str1);
	if(x !=-1)
		{
			alert("包含禁查词!\n请你输入别的词!");
			search_again.kword.value='';
			return false;
		}
 }
 
 for(i=0;i<str1.length;i++)
 {
  if (i>0)
   ch0 = str1.charAt(i-1);
  else 
   ch0 =' ';   
  
  ch1 = str1.charAt(i);
  
  if (i<str1.length)
   ch2 = str1.charAt(i+1);
  else
   ch2 = ' ';
   
  x=mystring.indexOf(ch1);
  if(x !=-1 && ch0 == ' ' && ch2 == ' ')
  {
   alert("检索词中包含下列禁查词,请修正:\n\n"+mystring);
   search_again.kword.select();
   return false;
  }
  
  if ((ch0 == ' ' && ch2 == ' ') || 
   (ch0 == '+' && ch2 == '+') || 
   (ch0 == '-' && ch2 == '-') || 
   (ch0 == '+' && ch2 == '-') || 
   (ch0 == '-' && ch2 == '+') || 
   (ch0 == '/' && ch2 == '/') || 
   (ch0 == '/' && ch2 == '-') || 
   (ch0 == '-' && ch2 == '/') || 
   (ch0 == '/' && ch2 == '+') || 
   (ch0 == '+' && ch2 == '/') ||
   
   (ch0 == ' ' && ch2 == '+') ||
   (ch0 == ' ' && ch2 == '/') ||
   (ch0 == ' ' && ch2 == '-') )
   
  {
   alert("检索词中包含如下单个检索字,请修正:\n\n"+"\t"+ch1);
   search_again.kword.select();
   return false;
  }
  x=alert_str2.indexOf(ch1);
  if (x != -1)
  {
   alert("检索词中包含下列禁查词字符,请修正:\n\n"+"\t"+alert_str2);
   search_again.kword.select();
   return false;
  }
  
  
  if ((ch1 == '+' && (ch0 == ' ' || ch2 == ' ')) ||
   (ch1 == '/' && (ch0 == ' ' || ch2 == ' ')) ||
   (ch1 == '-' && ch2 == ' ') ||
   (ch1 == '/' && i == str1.length-1)||
   (ch1 == '-' && i == str1.length-1)||
   (ch1 == '+' && i == str1.length-1) )
  {
   alert("与或非代表符号  +  / - \n\n用的不对,请参照使用帮助进行修正.");
   search_again.kword.select();
   return false;
  }
  if (ch1 == '-' && i==0) 
  {
   alert("非代表符号  - \nn用的不对,不能用在第一个检索词上.\n\n请参照使用说明进行修正.");
   search_again.kword.select();
   return false;  
  }
  
  //非的错误应用屏蔽
  if (ch1 == '-') 
  {
   for (j=i;j<str1.length;j++)
   {
    ch1 = str1.charAt(j); 
    if (ch1== ' ' || ch1 == '/' || ch1 == '+')
    {
     alert("非代表符号  - \n\n用的不对,后面不能再有与或.\n\n请参照使用说明进行修正.");
     search_again.kword.select();
     return false;  
    }
   }
  }  
 }
 
 thestr=str1; 
 if (thestr=="")
 {
  alert("输入内容不能为空！");
  search_again.kword.select(); 
      return false;
 }   
 str_len=thestr.length ; 
 //去除头尾
 thestr_head=thestr;
 thestr_head_noalert=thestr;
 //去头
 for (k=0;k<str_len;k++)
 { 
  //去头
  thestr_head_temp=thestr_head.substring(k,k+1);
  if (alert_str.indexOf(thestr_head_temp) !=-1)
  {
   thestr_head_noalert=thestr_head.substr(k+1);
   continue;
  }
  else
   break;
 }  
 //去尾
 thestr_end=thestr_head_noalert;
 thestr_end_noalert=thestr_head_noalert;
 str_nohead_len=thestr_end.length;
 for (m=str_nohead_len;m>0;m--)
 { 
  //去尾
  thestr_end_temp=thestr_end.substring(m,m-1);
  if (alert_str.indexOf(thestr_end_temp) !=-1)
  {
   thestr_end_noalert=thestr_end.substring(0,m-1);
   continue;
  }
  else
   break;
  }
  //检查中间  
  thestr_mid=thestr_end_noalert;  
  //替换掉中间空格 /\s/g 增则表达式 空格 汉字空格
  //re=/\s/g
  //thestr_mid_nospace=thestr_mid.replace(re,"A")
  thestr_mid_nospace=thestr_mid;
 //检查中间的除掉空格的特殊字符
 thstr_nospace_len=thestr_mid_nospace.length;
 alert_str_nospace="!#[]{}&,";
 for (x=0;x<thstr_nospace_len;x++)
 { 
  //着字符检查
  thestr_mid_nospace_temp=thestr_mid_nospace.substring(x,x+1);
  if (alert_str_nospace.indexOf(thestr_mid_nospace_temp) !=-1)
  {
   alert("关键词不允许出现下列字符："+alert_str_nospace);
   search_again.kword.select();
   return false;
  }
  }    
 search_again.kword.value= thestr_mid ;
 return true; 
 
}

function openwin(url)
{
	var pop=null;
	pop=window.open(url,"","width=410,height=430,toolbar=no");
	if(pop!=null)
	{
		if(pop.opener==null)
		{
			pop.opener=self;
		}
		pop.location.href=url;
	}
//	pop.resizeTo(400,500);
//	pop.moveTo(0,100);
//	pop.focus();
}


var WriteHtml;
WriteHtml ="<table width=100% border=0 cellspacing=0 cellpadding=1 bgcolor=#eeeeee height=25>";
WriteHtml+="<tr>";
WriteHtml+="<td class=text-Content>&nbsp;</td>";
WriteHtml+="<td class=text-Content>";
WriteHtml+="<table border=0 cellspacing=0 cellpadding=0>";
WriteHtml+="<tr>";
WriteHtml+="<form method=post action=http://61.129.66.49/cgi-bin/login target=_blank>";
WriteHtml+="<td class=text-Content>邮箱代号：</td>";
WriteHtml+="<td><input name=name type=text class=text-TextBox size=6></td>";
WriteHtml+="<td class=text-Content>&nbsp;密码：</td><td>";
WriteHtml+="<input name=pass type=password class=text-TextBox size=6>";
WriteHtml+="</td><td>";
WriteHtml+="<img src=/images/spacer.gif width=3 height=1>";
WriteHtml+="</td>";
WriteHtml+="<td>";
WriteHtml+="<input name=imageField2 type=image src=/images/button_login.gif width=45 height=18 border=0>";
WriteHtml+="</td>";
WriteHtml+="</form>";
WriteHtml+="</tr>";
WriteHtml+="</table>";
WriteHtml+="</td><td class=text-Content>";
WriteHtml+="</td><td>";
WriteHtml+="<table border=0 cellspacing=0 cellpadding=0>";
WriteHtml+="<tr>";
WriteHtml+="<form action='http://search.zjol.com.cn/cgi-bin/n_Search.CGI' method=post target=_blank onsubmit='return nextsearch(this)'>";
WriteHtml+="<td class=text-Content>站内检索：</td>";
WriteHtml+="<td>";
WriteHtml+="<input maxlength=20 name='kword' size=12 style='BORDER-BOTTOM: #7f9db9 1px dotted; BORDER-LEFT: #7f9db9 1px dotted; BORDER-RIGHT: #7f9db9 1px dotted; BORDER-TOP: #7f9db9 1px dotted; FONT-SIZE: 9pt; HEIGHT: 17px'></td>";
WriteHtml+="<td>";

WriteHtml+="<img src='/images/spacer.gif' width='1' height='1'><img src='/images/spacer.gif' width='1' height='1'><select name=AddClass size=1 style='font-size: 12px;'>";
WriteHtml+="<option value='' selected>全部";
WriteHtml+="</option>";
WriteHtml+="<option value='浙江在线:浙江新闻'>浙江新闻</option>";
WriteHtml+="<option value='浙江在线:在线视点'>在线视点</option>";
WriteHtml+="<option value='浙江在线:国内新闻'>国内新闻</option>";
WriteHtml+="<option value='浙江在线:国际新闻'>国际新闻</option>";
WriteHtml+="<option value='浙江在线:天下财富'>天下财富</option>";
WriteHtml+="<option value='浙江在线:天天网络'>天天网络</option>";
WriteHtml+="<option value='浙江在线:社会法制'>社会法制</option>";
WriteHtml+="<option value='浙江在线:天天体育'>天天体育</option>";
WriteHtml+="<option value='浙江在线:天天娱乐'>天天娱乐</option>";
WriteHtml+="<option value='浙江在线:考生在线'>考生在线</option>";
WriteHtml+="<option value='浙江在线:科教在线'>科教在线</option>";
WriteHtml+="<option value='浙江在线:天天健康'>天天健康</option>";
WriteHtml+="<option value='浙江在线:杭州女装'>杭州女装</option>";
WriteHtml+="<option value='浙江在线:世纪报影'>世纪报影</option>";
WriteHtml+="<option value='浙江在线:旅游新网'>旅游新网</option>";
WriteHtml+="<option value='浙江在线:浙江通志'>浙江通志</option>";
WriteHtml+="<option value='浙江在线:中国茶网'>中国茶网</option>";
WriteHtml+="<option value='浙江在线:吃在杭州'>吃在杭州</option>";
WriteHtml+="<option value='浙江在线:西湖博览会'>西博会</option>";
WriteHtml+="<option value='浙江在线:住在杭州'>住在杭州</option>";
WriteHtml+="<option value='浙江在线:在线装饰'>在线装饰</option>";
WriteHtml+="<option value='浙江在线:热土竞拍'>热土竞拍</option>";
WriteHtml+="<option value='浙江在线:伊人在线'>伊人在线</option>";
WriteHtml+="<option value='浙江在线:传播评论'>传播评论</option>";
WriteHtml+="<option value='浙江在线:车行浙江'>车行浙江</option>";
WriteHtml+="<option value='浙江在线:108游戏网'>108游戏</option>";
WriteHtml+="<option value='浙江在线:浙江日报'>浙江日报</option>";
WriteHtml+="<option value='浙江在线:钱江晚报'>钱江晚报</option>";
WriteHtml+="<option value='浙江在线:今日早报'>今日早报</option>";
WriteHtml+="<option value='浙江在线:美术报'>美术报</option>";
WriteHtml+="<option value='浙江在线:新闻实践'>新闻实践</option>";

WriteHtml+="</select>";
WriteHtml+="</td>";

WriteHtml+="<input type=hidden name='pagestep' value=20>";
WriteHtml+="<input type=hidden name='sorttype' value=0>";
WriteHtml+="<input type=hidden name='coding'   value=0 >";
WriteHtml+="<input type=hidden name='tiandtxflag' value=1>";
WriteHtml+="<input type=hidden name='Step'     value=15>";
WriteHtml+="<input type=hidden name='templet'  value='main'>";
WriteHtml+="<input type=hidden name='hahasd_ata' value=160>";
WriteHtml+="<input type=hidden name='searchmethod' value=8>";

WriteHtml+="<td>";
WriteHtml+="<img src=/images/spacer.gif width=3 height=1>";
WriteHtml+="</td>";
WriteHtml+="<td>";
WriteHtml+="<img src=/images/spacer.gif width=3 height=1>";
WriteHtml+="</td>";
WriteHtml+="<td>";
WriteHtml+="<input name=imageField type=image src=/images/button_search.gif width=45 height=18 border=0>";
WriteHtml+="<a href=\"http://search.zjol.com.cn\"><img src=/images/button_advance_search.gif width=65 height=18 border=0></a>";
WriteHtml+="</td>";
WriteHtml+="</form>";
WriteHtml+="</tr>";
WriteHtml+="</table>";
WriteHtml+="</td>";
WriteHtml+="<td align=right nowrap class=text-Content>";
WriteHtml+="<table border=0 cellspacing=0 cellpadding=0><tr><td>";
document.write(WriteHtml);
	var CurUrl = document.URL;
	var Symbol = CurUrl.substring(7, 37).toUpperCase();
	var Symbol1 = CurUrl.substring(7, 32).toUpperCase();
	var theURL = CurUrl.substring(7,9999999);
	var orgURL = CurUrl.substring(37,9999999);
	var orgURL1 = CurUrl.substring(32,9999999);
//	document.write(Symbol);
//	document.write(Symbol1);
	if (Symbol == "BIG5.ZJOL.COM.CN:86/GATE/BIG5/") {
		document.write("<a href=ht"+"tp://" + orgURL + "><img src=\"http://www.zjol.com.cn/images/encode_gb.gif\" width=\"47\" height=\"11\" border=\"0\"></a>");
	} else{
	
	if (Symbol1 == "61.153.3.82:86/GATE/BIG5/")
	{
		document.write("<a href=ht"+"tp://" + orgURL1 + "><img src=\"http://www.zjol.com.cn/images/encode_gb.gif\" width=\"47\" height=\"11\" border=\"0\"></a>");
	}
	else
	{
		document.write("<a href=ht"+"tp://big5.zjol.com.cn:86/gate/big5/" + theURL + "><img src=\"http://www.zjol.com.cn/images/encode_big5.gif\" width=\"47\" height=\"11\" border=\"0\"></a>");
	}
	}

document.write("</td><td><img src=/images/spacer.gif width=8 height=1></td><td><font size=-2 face=Arial, helvetica, sans-serif><b><a href=/gb/node2/node138665/node139012/index.html target=_blank class=link-NoUnderline>English</a></b></font></td><td class=text-Content><img src=/images/spacer.gif width=5 height=1></td></tr></table></td></tr></table><table width=100% bgcolor=#999999 cellspacing=0 cellpadding=0 border=0><tr><td><img src=/images/spacer.gif width=1 height=1></td></tr></table>");
