﻿function A_C(num)
{
if (num == "3")
   {
   document.all.colum3_button.style.display = "none";
   document.all.colum4_button.style.display = "block";
   document.all.colum4.style.display = "block";
   document.all.colum4_exp[3].style.display = "block";
   document.search_form.AddColumsNum.selectedIndex=1;
   SelectChange(4);
   
   
   
   }
else if(num == "4")
   {
   document.all.colum4_button.style.display = "none";
   document.all.colum5_button.style.display = "block";
   document.all.colum5.style.display = "block";
   document.all.colum5_exp[4].style.display = "block";
   document.search_form.AddColumsNum.value = "5";
   SelectChange(5);
   
   
   }
else if(num == "5")
   {
   document.all.colum5_button.style.display = "none";
   document.all.colum6_button.style.display = "block";
   document.all.colum6.style.display = "block";
   document.all.colum6_exp[5].style.display = "block";
   document.search_form.AddColumsNum.value = "6";
   SelectChange(6);
   
   
   }
else if(num == "6")
   {
   document.all.colum6_button.style.display = "none";
   document.all.colum7_button.style.display = "block";
   document.all.colum7.style.display = "block";
   document.all.colum7_exp[6].style.display = "block";
   document.search_form.AddColumsNum.value = "7";
   
   
   
   }
else if(num == "7")
   {
   document.all.colum7_button.style.display = "none";
   document.all.colum8.style.display = "block";
   document.all.colum8_exp[7].style.display = "block";
   document.search_form.AddColumsNum.value = "8"
   SelectChange(7);
  
   
   }


}
function AddForm(num){
      
	  if (num == "1"){
	      
		 document.all.colum3_button.style.display = "block";
		
		 document.all.ref_year.style.display = "none"
		 
		 document.all.KnowleageArea.style.display = "block"
		  
		 addlist(1);
		
		 CloseAllexp();
		 
		 CleanAllvalue();
		 
		 document.all.colum1_exp[0].style.display = "block"
		 
		 document.all.colum2_exp[1].style.display = "block"
		 
		 document.all.colum3_exp[2].style.display = "block"
		 
		 document.search_form.dbtype.value = "1"   
                    }
					
	  else if(num == "2"){
	  
	     document.all.colum4.style.display = "none"
		 
		 document.all.colum5.style.display = "none"

	     document.all.colum6.style.display = "none"

	     document.all.colum7.style.display = "none"
		 
	     document.all.colum8.style.display = "none"
	                
		 document.all.colum3_button.style.display = "none";
		  								
		 document.all.colum4_button.style.display = "none";
		 
		 document.all.colum5_button.style.display = "none";
		 
		 document.all.colum6_button.style.display = "none";
		 
		 document.all.colum7_button.style.display = "none";
		        
		 document.all.ref_year.style.display = "block"
		 
		 document.all.KnowleageArea.style.display = "none"					
					
		 addlist(2)
		 
		 CloseAllexp();
		 
		 CleanAllvalue();
		 
		 document.all.colum1_exp[9].style.display = "block"
		 
		 document.all.colum2_exp[10].style.display = "block"
		 
		 document.all.colum3_exp[11].style.display = "block"
		 
		 document.search_form.dbtype.value = "2"   			
					}




}

function addlist(num)
{
	
	if (num == "1") 
	{
    tslist1 = document.getElementById("field1");
	tslist2 = document.getElementById("field2");
	tslist3 = document.getElementById("field3");
    tslist4 = document.getElementById("field4");
	tslist5 = document.getElementById("field5");
	tslist6 = document.getElementById("field6");
    tslist7 = document.getElementById("field7");
	tslist8 = document.getElementById("field8");

	
	tslist1.options.length=0;
	tslist2.options.length=0;
	tslist3.options.length=0;
	tslist4.options.length=0;
	tslist5.options.length=0;
	tslist6.options.length=0;
	tslist7.options.length=0;
	tslist8.options.length=0;

	
	newopt = new Option("作者","AUTHOR_NAMES");
    tslist1.options[0]=newopt;
    newopt = new Option("第一作者","AUTHOR_NAME1");
    tslist1.options[1]=newopt;
    newopt = new Option("题名","SUPERSCRIPTION_CN");
    tslist1.options[2]=newopt;
    newopt = new Option("刊名","JOURNAL_NAME");
    tslist1.options[3]=newopt;
    newopt = new Option("ISSN","ISSN");
    tslist1.options[4]=newopt;
    newopt = new Option("文摘","TABLOID_CN");
    tslist1.options[5]=newopt;

    newopt = new Option("机构","ORGANIZATIONS");
    tslist1.options[6]=newopt;
    newopt = new Option("关键词","KEYWORD_CN");
    tslist1.options[7]=newopt;
    newopt = new Option("基金名称","FUND_NAMES");
    tslist1.options[8]=newopt;
    tslist1.selectedIndex=0;
	  	
    newopt = new Option("作者","AUTHOR_NAMES");
    tslist2.options[0]=newopt;
    newopt = new Option("第一作者","AUTHOR_NAME1");
    tslist2.options[1]=newopt;
    newopt = new Option("题名","SUPERSCRIPTION_CN");
    tslist2.options[2]=newopt;
    newopt = new Option("刊名","JOURNAL_NAME");
    tslist2.options[3]=newopt;
    newopt = new Option("ISSN","ISSN");
    tslist2.options[4]=newopt;
    newopt = new Option("文摘","TABLOID_CN");
    tslist2.options[5]=newopt;
    newopt = new Option("机构","ORGANIZATIONS");
    tslist2.options[6]=newopt;
    newopt = new Option("关键词","KEYWORD_CN");
    tslist2.options[7]=newopt;
    newopt = new Option("基金名称","FUND_NAMES");
    tslist2.options[8]=newopt;
    tslist2.selectedIndex=1;
      	
    newopt = new Option("作者","AUTHOR_NAMES");
    tslist3.options[0]=newopt;
    newopt = new Option("第一作者","AUTHOR_NAME1");
    tslist3.options[1]=newopt;
    newopt = new Option("题名","SUPERSCRIPTION_CN");
    tslist3.options[2]=newopt;
    newopt = new Option("刊名","JOURNAL_NAME");
    tslist3.options[3]=newopt;
    newopt = new Option("ISSN","ISSN");
    tslist3.options[4]=newopt;
    newopt = new Option("文摘","TABLOID_CN");
    tslist3.options[5]=newopt;
    newopt = new Option("机构","ORGANIZATIONS");
    tslist3.options[6]=newopt;
    newopt = new Option("关键词","KEYWORD_CN");
    tslist3.options[7]=newopt;
    newopt = new Option("基金名称","FUND_NAMES");
    tslist3.options[8]=newopt;
    tslist3.selectedIndex=2;
	
    newopt = new Option("作者","AUTHOR_NAMES");
    tslist4.options[0]=newopt;
    newopt = new Option("第一作者","AUTHOR_NAME1");
    tslist4.options[1]=newopt;
    newopt = new Option("题名","SUPERSCRIPTION_CN");
    tslist4.options[2]=newopt;
    newopt = new Option("刊名","JOURNAL_NAME");
    tslist4.options[3]=newopt;
    newopt = new Option("ISSN","ISSN");
    tslist4.options[4]=newopt;
    newopt = new Option("文摘","TABLOID_CN");
    tslist4.options[5]=newopt;

    newopt = new Option("机构","ORGANIZATIONS");
    tslist4.options[6]=newopt;
    newopt = new Option("关键词","KEYWORD_CN");
    tslist4.options[7]=newopt;
    newopt = new Option("基金名称","FUND_NAMES");
    tslist4.options[8]=newopt;
    tslist4.selectedIndex=3;
	
    newopt = new Option("作者","AUTHOR_NAMES");
    tslist5.options[0]=newopt;
    newopt = new Option("第一作者","AUTHOR_NAME1");
    tslist5.options[1]=newopt;
    newopt = new Option("题名","SUPERSCRIPTION_CN");
    tslist5.options[2]=newopt;
    newopt = new Option("刊名","JOURNAL_NAME");
    tslist5.options[3]=newopt;
    newopt = new Option("ISSN","ISSN");
    tslist5.options[4]=newopt;
    newopt = new Option("文摘","TABLOID_CN");

    tslist5.options[5]=newopt;

    newopt = new Option("机构","ORGANIZATIONS");
    tslist5.options[6]=newopt;
    newopt = new Option("关键词","KEYWORD_CN");
    tslist5.options[7]=newopt;
    newopt = new Option("基金名称","FUND_NAMES");
    tslist5.options[8]=newopt;
    tslist5.selectedIndex=4;
	
    newopt = new Option("作者","AUTHOR_NAMES");
    tslist6.options[0]=newopt;
    newopt = new Option("第一作者","AUTHOR_NAME1");
    tslist6.options[1]=newopt;
    newopt = new Option("题名","SUPERSCRIPTION_CN");
    tslist6.options[2]=newopt;
    newopt = new Option("刊名","JOURNAL_NAME");
    tslist6.options[3]=newopt;
    newopt = new Option("ISSN","ISSN");
    tslist6.options[4]=newopt;
    newopt = new Option("文摘","TABLOID_CN");
    tslist6.options[5]=newopt;

    newopt = new Option("机构","ORGANIZATIONS");
    tslist6.options[6]=newopt;
    newopt = new Option("关键词","KEYWORD_CN");
    tslist6.options[7]=newopt;
    newopt = new Option("基金名称","FUND_NAMES");
    tslist6.options[8]=newopt;
    tslist6.selectedIndex=5;
	
    newopt = new Option("作者","AUTHOR_NAMES");
    tslist7.options[0]=newopt;
    newopt = new Option("第一作者","AUTHOR_NAME1");
    tslist7.options[1]=newopt;
    newopt = new Option("题名","SUPERSCRIPTION_CN");
    tslist7.options[2]=newopt;
    newopt = new Option("刊名","JOURNAL_NAME");
    tslist7.options[3]=newopt;
    newopt = new Option("ISSN","ISSN");
    tslist7.options[4]=newopt;
    newopt = new Option("文摘","TABLOID_CN");
    tslist7.options[5]=newopt;

    newopt = new Option("机构","ORGANIZATIONS");
    tslist7.options[6]=newopt;
    newopt = new Option("关键词","KEYWORD_CN");
    tslist7.options[7]=newopt;
    newopt = new Option("基金名称","FUND_NAMES");
    tslist7.options[8]=newopt;
    tslist7.selectedIndex=6;
	
    newopt = new Option("作者","AUTHOR_NAMES");
    tslist8.options[0]=newopt;
    newopt = new Option("第一作者","AUTHOR_NAME1");
    tslist8.options[1]=newopt;
    newopt = new Option("题名","SUPERSCRIPTION_CN");
    tslist8.options[2]=newopt;
    newopt = new Option("刊名","JOURNAL_NAME");
    tslist8.options[3]=newopt;
    newopt = new Option("ISSN","ISSN");
    tslist8.options[4]=newopt;
    newopt = new Option("文摘","TABLOID_CN");
    tslist8.options[5]=newopt;

    newopt = new Option("机构","ORGANIZATIONS");
    tslist8.options[6]=newopt;
    newopt = new Option("关键词","KEYWORD_CN");
    tslist8.options[7]=newopt;
    newopt = new Option("基金名称","FUND_NAMES");
    tslist8.options[8]=newopt;
    tslist8.selectedIndex=7;
	}
	else if(num == "2")
	{
    tslist1 = document.getElementById("field1");
	tslist2 = document.getElementById("field2");
	tslist3 = document.getElementById("field3");

	tslist1.options.length=0;
	tslist2.options.length=0;
	tslist3.options.length=0;
    	
    newopt = new Option("被引作者","CITATION_AUTHORS");
    tslist1.options[0]=newopt;
    newopt = new Option("被引第一作者","CITATION_AUTHOR1");
    tslist1.options[1]=newopt;
    newopt = new Option("被引来源","CITATION_DERIVATION");
    tslist1.options[2]=newopt;
    newopt = new Option("被引机构","CITE_ORGANIZTION");
    tslist1.options[3]=newopt;
    newopt = new Option("被引实验室","CITE_LABORATORY");
    tslist1.options[4]=newopt;
    newopt = new Option("被引出版社","PUBLISHING_COMPANY");
    tslist1.options[5]=newopt;
    newopt = new Option("被引文献主编","EDITOR_IN_CHIEF");
    tslist1.options[6]=newopt;
    tslist1.selectedIndex=0;
    
    newopt = new Option("被引作者","CITATION_AUTHORS");
    tslist2.options[0]=newopt;
    newopt = new Option("被引第一作者","CITATION_AUTHOR1");
    tslist2.options[1]=newopt;
    newopt = new Option("被引来源","CITATION_DERIVATION");
    tslist2.options[2]=newopt;
    newopt = new Option("被引机构","CITE_ORGANIZTION");
    tslist2.options[3]=newopt;
    newopt = new Option("被引实验室","CITE_LABORATORY");
    tslist2.options[4]=newopt;
    newopt = new Option("被引出版社","PUBLISHING_COMPANY");
    tslist2.options[5]=newopt;
    newopt = new Option("被引文献主编","EDITOR_IN_CHIEF");
    tslist2.options[6]=newopt;
    tslist2.selectedIndex=1;
    
    newopt = new Option("被引作者","CITATION_AUTHORS");
    tslist3.options[0]=newopt;
    newopt = new Option("被引第一作者","CITATION_AUTHOR1");
    tslist3.options[1]=newopt;
    newopt = new Option("被引来源","CITATION_DERIVATION");
    tslist3.options[2]=newopt;
    newopt = new Option("被引机构","CITE_ORGANIZTION");
    tslist3.options[3]=newopt;
    newopt = new Option("被引实验室","CITE_LABORATORY");
    tslist3.options[4]=newopt;
    newopt = new Option("被引出版社","PUBLISHING_COMPANY");
    tslist3.options[5]=newopt;
    newopt = new Option("被引文献主编","EDITOR_IN_CHIEF");
    tslist3.options[6]=newopt;
    tslist3.selectedIndex=2;
    }
}
function CloseAllexp(){

		 for(var i=0;i<document.all.colum1_exp.length;i++){
		 
		 document.all.colum1_exp[i].style.display = "none";
		 
		 }
		 
		 for(var i=0;i<document.all.colum2_exp.length;i++){
		 
		 document.all.colum2_exp[i].style.display = "none";
		 
		 }
		
		 for(var i=0;i<document.all.colum3_exp.length;i++){
		 
		 document.all.colum3_exp[i].style.display = "none";
		 
		 }
		 
		 for(var i=0;i<document.all.colum4_exp.length;i++){
		 
		 document.all.colum4_exp[i].style.display = "none";
		 
		 }
		 
		 for(var i=0;i<document.all.colum5_exp.length;i++){
		 
		 document.all.colum5_exp[i].style.display = "none";
		 
		 }
		 
		 for(var i=0;i<document.all.colum6_exp.length;i++){
		 
		 document.all.colum6_exp[i].style.display = "none";
		 
		 }
		 
		 for(var i=0;i<document.all.colum7_exp.length;i++){
		 
		 document.all.colum7_exp[i].style.display = "none";
		 
		 }
		 
		 for(var i=0;i<document.all.colum8_exp.length;i++){
		 
		 document.all.colum8_exp[i].style.display = "none";
		 
		 }


}

function CleanAllvalue(){
        

		 
		 document.search_form.term4.value = ""
		 
		 document.search_form.term5.value = ""
		 
		 document.search_form.term6.value = ""
		 
		 document.search_form.term7.value = ""
		 
		 document.search_form.term8.value = ""
		 

}
