var tomcat_url="http://120.72.32.25:8082";
<!--翻页代码，最大允许15个显示，前13，后两个-->
function createNav(pageName,pageExt,index,count){
	var max=8;//最大显示数
	var left=5;//左侧显示数
	var right=max-left-1;//右侧显示数
	//模仿百度贴吧翻页
     if(index==0)
	{
   document.write("首页  上一页");
 	}else
 	 {
	 if((index-1)!=0)
	  {
		 document.write("<a href='"+pageName+"."+pageExt+"'>首页</a><a href='"+pageName+"_"+(index-1)+"."+pageExt+""+"'>上一页</a>");  
	  }
	  else
	 {
	  document.write("<a href='"+pageName+"."+pageExt+"'>首页</a><a href='"+pageName+"."+pageExt+"'>上一页</a>");  
	 }			 
  }
	if(count<max){
	  begin=1;
	  end=count;
	}else{
	  if(index<left){
	    begin=1;
		end=max;
	  }else{
	    begin=(index-left==0)?1:(index-left);
		end=(index+1+right>count)?count:(index+1+right);
	  }
	}
	
 if(index==0)
 {
	 document.write("<span class='current'>"+1+"</span>");
  }else if(index<left+1)
  {
     document.write("<a href='"+pageName+"."+pageExt+"'>1</a>");	
  }
   for(i=begin;i<end;i++){
	   if(index==i)
      {
	    document.write("<span class='current'>"+(i+1)+"</span>");
      }
     else
      {
	    document.write("<a href='"+pageName+"_"+i+"."+pageExt+"'>"+(i+1)+"</a>");
	  }
	 }
	 if((index+1)==count)
    {
	  document.write("尾页  下一页");
	}else
   {
	 document.write("<a href='"+pageName+"_"+(count-1)+"."+pageExt+"'>尾页</a><a href='"+pageName+"_"+(index+1)+"."+pageExt+""+"'>下一页</a>");  
	  }
}


<!--字体调整-->
  function doZoom(size)
  {
	document.getElementById("content").style.fontSize=size;
  }
  <!--页面跳转js-->
  function changePage(pageName,pageExt,index,count){
	  var to=document.getElementById("toPage").value;  
	  if(to<1||to>count){alert("输入值超出范围");}
	  else if(to==1){
		window.location=pageName+"."+pageExt;  
	  }else{
		window.location=pageName+"_"+(to-1)+"."+pageExt;  
	  }
  }
  function strSub(content,length){
	   content=content.substr(0,length-2)+"...";
	   document.write(content);
  }
  
  
  
  <!--ajax读取会员list-->


 function ajaxFun()
{
	
    http_request = false;
	if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }
 
        if (!http_request) {
            alert('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        http_request.onreadystatechange =getListIndex;
        http_request.open('GET', url, true);
        http_request.send(null);
		
}
function getListIndex(){
		  	if (http_request.readyState != 4) 
		{
			return;
		}

		if (http_request.status != 200)
		{
	 		return;
		}
  // load program list

 	var str;
	str = http_request.responseText;
    var table=document.getElementById("wangyuan");
	var tr=document.createElement("tr");
	var td1=document.createElement("td");
	var td2=document.createElement("td");
	//table.appendChild(tr);
	for(i=0;i<(str.split(";").length-1);i++){
	tr=document.createElement("tr");
	td1=document.createElement("td");
	td2=document.createElement("td");
	tr.vAlign='top';
	td1.width='8';
	td1.vAlign='middle';
	td1.innerHTML="<img src='images/icon_15.jpg' width='3' height='5'>";
	td2.vAlign='middle';
	td2.innerHTML=str.split(";")[i];
	tr.appendChild(td1);
	tr.appendChild(td2);
	tr.appendChild(document.createElement("td"));
	table.appendChild(tr);
		};

}
