function createpagehtml(_npagecount, _ncurrindex, _spagename, _spageext){ if(_npagecount == null || _npagecount<=1 || _ncurrindex>=_npagecount){ return; } var ncurrindex = _ncurrindex || 0; var npagecount = _npagecount; var firstpage = "首 页  "; var nextpage = "下一页  "; var prepage = "上一页  "; var prepage_1 = "上一页  "; var lastpage = "尾 页  "; var firstpage_off = "首 页  "; var nextpage_off = "下一页  "; var prepage_off = "上一页  "; var lastpage_off = "尾 页  "; document.write("当前第 "+(ncurrindex+1)+" 页 总共 "+_npagecount+" 页 "); if(ncurrindex == 0) { document.write(firstpage_off); document.write(prepage_off); document.write(nextpage); document.write(lastpage); } else if(ncurrindex==(_npagecount-1)) { document.write(firstpage); if(_npagecount==2) {document.write(prepage);} else {document.write(prepage_1);} document.write(nextpage_off); document.write(lastpage_off); } else { document.write(firstpage); if(ncurrindex==1) {document.write(prepage);} else {document.write(prepage_1);} document.write(nextpage); document.write(lastpage); document.write(""); } } function ow(obj,w,h,t,l) { url=obj.href; window.open(url,'','width='+ w +',height='+ h + ',top='+t+',left='+l+',resizable=no,scrollbars=no,toolbars=no,status=no'); return false; }