public void paging(String path) {
		totalPage = (int) Math.ceil((double)count / rows);
		startRow = (cPage-1) * rows+1;
		endRow = cPage * rows;
		
		startPage = (int)((cPage-1)/pageBlock) * pageBlock + 1;
		endPage = startPage + pageBlock - 1;
		
		if(endPage > totalPage) {
			endPage = totalPage;
		}
		
		if(startPage > 1) {
			isPrevPage = true;
		}
		
		if(endPage < totalPage) {
			isNextPage = true;
		}
		
		sb = new StringBuffer();
		if(startPage < pageBlock) {
			sb.append("<img src = 'resources/images/pre.png' width = '30' height = '30'>");
		}
		else {
			sb.append("<img src = 'resources/images/pre.png' width = '30' height = '30'");
			sb.append(" onclick = 'location.href = \"");
			sb.append(path);
			sb.append("?cPage=");
			sb.append(startPage - pageBlock);
			sb.append("\"' style = 'cursor:pointer'> ");
		}
		
		sb.append("&nbsp;|");
		for(int i=startPage; i<=endPage; i++) {
			if(i==cPage) {
				sb.append("&nbsp; <b> <font size='5' color = '#91B7EF' >");
				sb.append(i);
				sb.append("</font></b>");
			}
			else {
				sb.append("<font size='5'>");
				sb.append("&nbsp; <a href = '");
				sb.append(path);
				sb.append("?cPage=");
				sb.append(i);
				sb.append("' style='text-decoration:none' alink='#000000' vlink='#FF007F' >");
				sb.append(i);
				sb.append("</a> ");
				sb.append ("</font>");
			}
		}

		sb.append("&nbsp | &nbsp;");
		if(endPage < totalPage) {
			sb.append("<img src = 'resources/images/next.png' width = '30' height = '30'");
			sb.append(" onclick = 'location.href = \"");
			sb.append(path);
			sb.append("?cPage=");
			sb.append(startPage + pageBlock);
			sb.append("\"' style='cursor:pointer'> ");
		}
		else {
			sb.append("<img src = 'resources/images/next.png' width = '30' height = '30'>");

		}
	}