//中国共产党文献信息10
function checkdata10() 
{
    var Form, SearchWord;
    var Item101,Item102,Item103,Item104;
	
    Form=document.SearchForm10;
    Item101= Item102= Item103= Item104= "";   

    if(Form.Field101.value!="")
	Item101="日期=" + Form.Field101.value + " AND ";

    if(Form.Field102.options[Form.Field102.selectedIndex].value!="")
	Item102="数据库=" + Form.Field102.options[Form.Field102.selectedIndex].value + " AND ";
	
    if(Form.Field103.value!="")
	Item103="标题=" + Form.Field103.value + " AND ";
    
    if(Form.Field104.value!="")
	Item104="正文=" + Form.Field104.value + " AND ";

    SearchWord =  Item101+Item102+Item103+Item104;    
    var	Length=SearchWord.length;
    SearchWord=SearchWord.substring(0,Length-5);
    Form.searchword.value = SearchWord;
	
    if(SearchWord=="")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	
	return true;
}

function MultiWordSearch_onsubmit10() 
{
	var SQL="";
	var Word10=document.MultiWordSearch10.Word10.value;
	var FindPression= new RegExp("  *","g");
	
	SQL=Word10.replace(FindPression ," OR ");
	if(SQL=="*(与)、空格(或)")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	else
	{
		SQL="[正文,标题]+=" + SQL;
		document.MultiWordSearch10.searchword.value=SQL;
		return true;
	}
}
//中国政府文献信息11
function checkdata11() 
{
    var Form, SearchWord;
    var Item111,Item112,Item113,Item114;
	
    Form=document.SearchForm11;
    Item111= Item112= Item113= Item114= "";   

    if(Form.Field111.value!="")
	Item111="日期=" + Form.Field111.value + " AND ";

    if(Form.Field112.options[Form.Field112.selectedIndex].value!="")
	Item112="数据库=" + Form.Field112.options[Form.Field112.selectedIndex].value + " AND ";
	
    if(Form.Field113.value!="")
	Item113="标题=" + Form.Field113.value + " AND ";
    
    if(Form.Field114.value!="")
	Item114="正文=" + Form.Field114.value + " AND ";

    SearchWord =  Item111+Item112+Item113+Item114;    
    var	Length=SearchWord.length;
    SearchWord=SearchWord.substring(0,Length-5);
    Form.searchword.value = SearchWord;
	
    if(SearchWord=="")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	
	return true;
}

function MultiWordSearch_onsubmit11() 
{
	var SQL="";
	var Word11=document.MultiWordSearch11.Word11.value;
	var FindPression= new RegExp("  *","g");
	
	SQL=Word11.replace(FindPression ," OR ");
	if(SQL=="*(与)、空格(或)")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	else
	{
		SQL="[正文,标题]+=" + SQL;
		document.MultiWordSearch11.searchword.value=SQL;
		return true;
	}
}
//党报资料12
function checkdata12() 
{
    var Form, SearchWord;
    var Item121,Item122,Item123,Item124;
	
    Form=document.SearchForm12;
    Item121= Item122= Item123= Item124= "";   

    if(Form.Field121.value!="")
	Item121="日期=" + Form.Field121.value + " AND ";

    if(Form.Field122.options[Form.Field122.selectedIndex].value!="")
	Item122="版次=" + Form.Field122.options[Form.Field122.selectedIndex].value + " AND ";
	
    if(Form.Field123.value!="")
	Item123="标题=" + Form.Field123.value + " AND ";
    
    if(Form.Field124.value!="")
	Item124="正文=" + Form.Field124.value + " AND ";

    SearchWord =  Item121+Item122+Item123+Item124;    
    var	Length=SearchWord.length;
    SearchWord=SearchWord.substring(0,Length-5);
    Form.searchword.value = SearchWord;
	
    if(SearchWord=="")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	
	return true;
}

function MultiWordSearch_onsubmit12() 
{
	var SQL="";
	var Word12=document.MultiWordSearch12.Word12.value;
	var FindPression= new RegExp("  *","g");
	
	SQL=Word12.replace(FindPression ," OR ");
	if(SQL=="*(与)、空格(或)")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	else
	{
		SQL="[正文,标题]+=" + SQL;
		document.MultiWordSearch12.searchword.value=SQL;
		return true;
	}
}
//报刊资料13

//人大14

//政协15

//法律16

//综合17
function checkdata17() 
{
    var Form, SearchWord;
    var Item171,Item172,Item173,Item174;
	
    Form=document.SearchForm17;
    Item171= Item172= Item173= Item174= "";   

    if(Form.Field171.value!="")
	Item171="日期=" + Form.Field171.value + " AND ";

    if(Form.Field172.options[Form.Field172.selectedIndex].value!="")
	Item172="数据库=" + Form.Field172.options[Form.Field172.selectedIndex].value + " AND ";
	
    if(Form.Field173.value!="")
	Item173="标题=" + Form.Field173.value + " AND ";
    
    if(Form.Field174.value!="")
	Item174="正文=" + Form.Field174.value + " AND ";

    SearchWord =  Item171+Item172+Item173+Item174;    
    var	Length=SearchWord.length;
    SearchWord=SearchWord.substring(0,Length-5);
    Form.searchword.value = SearchWord;
	
    if(SearchWord=="")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	
	return true;
}

function MultiWordSearch_onsubmit17() 
{
	var SQL="";
	var Word17=document.MultiWordSearch17.Word17.value;
	var FindPression= new RegExp("  *","g");
	
	SQL=Word17.replace(FindPression ," OR ");
	if(SQL=="*(与)、空格(或)")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	else
	{
		SQL="[正文,标题]+=" + SQL;
		document.MultiWordSearch17.searchword.value=SQL;
		return true;
	}
}
//时政专题18
function checkdata18() 
{
    var Form, SearchWord;
    var Item181,Item182,Item183,Item184;
	
    Form=document.SearchForm18;
    Item181= Item182= Item183= Item184= "";   

    if(Form.Field181.value!="")
	Item181="日期=" + Form.Field181.value + " AND ";

    if(Form.Field182.options[Form.Field182.selectedIndex].value!="")
	Item182="数据库=" + Form.Field182.options[Form.Field182.selectedIndex].value + " AND ";
	
    if(Form.Field183.value!="")
	Item183="标题=" + Form.Field183.value + " AND ";
    
    if(Form.Field184.value!="")
	Item184="正文=" + Form.Field184.value + " AND ";

    SearchWord =  Item181+Item182+Item183+Item184;    
    var	Length=SearchWord.length;
    SearchWord=SearchWord.substring(0,Length-5);
    Form.searchword.value = SearchWord;
	
    if(SearchWord=="")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	
	return true;
}

function MultiWordSearch_onsubmit18() 
{
	var SQL="";
	var Word18=document.MultiWordSearch18.Word18.value;
	var FindPression= new RegExp("  *","g");
	
	SQL=Word18.replace(FindPression ," OR ");
	if(SQL=="*(与)、空格(或)")
	{
		alert("检索表达式不能为空!");
		return false;
	}
	else
	{
		SQL="[正文,标题]+=" + SQL;
		document.MultiWordSearch18.searchword.value=SQL;
		return true;
	}
}
//弹出个数据库无工具栏主页面
function openWin(newwindow)
{
    window.open (newwindow, '_blank', "fullscreen,scrollbars=no,resizeable=no,toolbar=no,menubar=no,location=no,status=yes");
}

/*用户本次浏览情况页面
function link()
{
  o=event.srcElement
  while(o.tagName != "A")
  {
    if(!o.parentElement) return
    o=o.parentElement
  }
  event.returnValue = false
  if (o.className == "pop")
    {
	  open(o.href,'','height=70,width=340,top=200,left=200,scrollbars=no,resizeable=no,toolbar=no,menubar=no,location=no,status=no')
	}
  else if (o.getAttribute("target")=="_blank")
    {
	  window.open(o.href,'','')
	}
  else{location=o.href}
}
  document.onclick=link;

//关闭页面结束用户会话
function logout(){
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open('', 'popupnav',
'width=10,height=10,top=0,left=0,resizable=yes,scrollbars=no');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = 'logout.do?userid=<%=session.getAttribute("username")%>&session_id=<%=session.getAttribute("session_id")%>&close=1';
}
}
*/