var div;
var _type;
function show_count(type,title) {
	document.title=title;
	_type = type;
    var url = "index.do?method=getShow_count&type="+type+"";
    div = document.getElementById("show_count_content");
	ajaxRequest(url, show1);
}

function business_jccx_find(type,showcontent){
      var jccx1=document.getElementById("jccx_jfree1");
      var jccx2=document.getElementById("jccx_jfree2");
      if(jccx1.value=="" || jccx2.value==""){
      	 alert("两个查询条件都不能为空！");
      	 return false;
      }
	  var url="index.do?method=getInfo_jccx_jfree";
	  div = document.getElementById("columns_cxtj");
  	  var sendcontent=encodeURI("type="+type+"&jccx1="+jccx1.value+"&jccx2="+jccx2.value+"");
      ajaxRequest(url +"&"+sendcontent, show1);
}
function business_jccx_find_1(jccx1, jccx2, type) {
	var url = "index.do?method=getInfo_jccx_jfree";div = document.getElementById("columns_cxtj");
	var sendcontent = encodeURI("type=" + type + "&jccx1=" + jccx1 + "&jccx2=" + jccx2 + "");
	 ajaxRequest(url +"&"+sendcontent, show1);
}
function pubdetail_search(type) {
	var searpro=document.getElementById("searpro");
	var searno=document.getElementById("searno");
	if(searpro.value=="" && searno.value==""){
		alert("至少有一个查询条件不能为空！");
		return false;
	}
	var url=encodeURI("index.do?method=getShow_count&_type=search&type="+type+"&searpro="+searpro.value+"&searno="+searno.value);
	get1=url;
    ajaxRequest(url, show1);
}
function show1(){
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
	    if(xmlHttp.responseText!=null){
	      div.innerHTML=xmlHttp.responseText;
	      document.getElementById("show_pubdetail_one").innerHTML=""
	      	if(document.getElementById('if1'))
	      		document.getElementById('if1').src="public/pagination.jsp?pagination=PAGENITION_TEST&n="+Math.random();
	    }
  	}
}

function goPage(p1){
	div = document.getElementById("show_count_content");
	ajaxRequest("index.do?method=getShow_count&type="+_type+"&page="+p1, show1);
}
function pubdetail_one(type,project) {
	var url=encodeURI("index.do?method=getShowdetail_one&type="+type+"&project="+project+"");
    ajaxRequest(url,show2);
}

function show2(){
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
	    if(xmlHttp.responseText!=null){
	      document.getElementById("show_pubdetail_one").innerHTML=xmlHttp.responseText;
	    }
  	} 
}
