//选择下拉菜单期数
 function Visit(form, i) { 
              var site = form.elements[i].selectedIndex; 
              if( site >= 1 ) { 
              address="index.asp?counts="+form.elements[i].options[site].value;    
              top.location =address             
               } 
              form.elements[i].selectedIndex = 0; 
               } 
			   
//检查打入文章期数     
	   function test_onsubmit(j) 
           {var str 
            if (document.form2.counts2.value<1 || document.form2.counts2.value>j) 
             { 
              str="打入的文章期数请在1和"+j+"之间！" 
             alert(str) 
             return false 
             } 
			 address="index.asp?counts="+document.form2.counts2.value+""
          top.location =address 
		  return false          

			 
           } 

//检查打入文章期数1("在新窗口打开")     
	   function testt_onsubmit(j) 
           {var str 
            if (document.form2.counts2.value<1 || document.form2.counts2.value>j) 
             { 
              str="打入的文章期数请在1和"+j+"之间！" 
             alert(str) 
             return false 
             }  
           } 

//检查打入排行期数     
	   function test1_onsubmit(j) 
           {var str 
            if (document.form2.counts.value<1 || document.form2.counts.value>j) 
             { 
              str="打入的文章期数请在1和"+j+"之间！" 
             alert(str) 
             return false 
             }      		 
           }  


//检查投票内容
<!--
function return_onsubmit()
 {
 if (document.research.options[0].checked==false && document.research.options[1].checked==false && document.research.options[2].checked==false
 && document.research.options[3].checked==false)
 {alert("请选择一项,谢谢！^_^")
 return false} 
  } 

//查看投票结果弹出窗口  
function result_open(theurl,winname,features)
  {//v2.0
  window.open(theurl,winname,features);
  }

//搜索内容不能为空    
	   function testnull_onsubmit()
           {var str 
            if (document.form1.ttt.value=="") 
             { 
              str="对不起,搜索内容不能为空!" 
             alert(str)
			 document.form1.ttt.value="" 
             return false 
             }     			 
           } 
 //把搜索内容为空    
	   function null_onsubmit()
           {var str 
			 document.form1.ttt.value="" 
             return false    			 
           } 