for (var i = begin; i <= end; i++) {
var li;
if (i==e.currentPage){
li = '<li class="curPage" onclick="javascript:c('+i+',\''+rname+'\',show)"><a href="javascript:void(0)" >' + i + '</a></li>';
}else{
li = '<li onclick="javascript:c('+i+',\''+rname+'\',show)"><a href="javascript:void(0)" >' + i + '</a></li>';
}