﻿//通用分页类
function showPageLink(sUrl,iPage,iCount){
  var i;
  i=Math.max(1,iPage-1);
  document.write("<a href=\"" + sUrl + "1\" title='第 1 页'><FONT face=Webdings>9</FONT></a> ");
  document.write("<a href=\"" + sUrl + i + "\" title='上一页(第 " + i + " 页)'><FONT face=Webdings>7</FONT></a> ");
  for(i=Math.max(1,iPage-5);i<iPage;i++){
	  document.write("<a href=\""+sUrl + i + "\" title='第 " + i + " 页'><b>" + i + "</b></a> ");
  }
  document.write("<font color='#ff3333'><b>" + iPage + "</b></font> ");
  for(i=iPage+1;i<=Math.min(iCount,iPage+5);i++){
	  document.write("<a href=\""+sUrl + i + "\" title='第 " + i + " 页'><b>" + i + "</b></a> ");
  }
  i=Math.min(iCount,iPage+1);
  if(iCount>iPage+5) document.write("<span style='font-size:8px'>···</span> ");
  document.write("<a href=\"" + sUrl + i + "\" title='下一页(第 " + i + " 页)'><FONT face=Webdings>8</FONT></a> ");
  document.write("<a href=\"" + sUrl + iCount + "\" title='最后一页(第 " + iCount + " 页)'><FONT face=Webdings>:</FONT></a> ");
}


//删除确定
function ConfirmDel()
{
   if(confirm("确定要执行此操作吗？如果点“确定”将不能再恢复！"))
     return true;
   else
     return false; 
}

//删除确认
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll")
       e.checked = form.chkAll.checked;
    }
  }
  
//-帮助显示隐藏层
function change(x) {document.getElementById(x).style.display ="none";} 
function onClickbox(y){document.getElementById(y).style.display ="";} 
function onMouseOutbox(z){document.getElementById(z).style.display ="none";} 
function onMouseOverbox(a){document.getElementById(a).style.display ="";} 
////帮助显示隐藏层
