  function reset_counter_tabNextPrevious() {
           total_1 = 1;   total_2 = 1;   total_3 = 1;   total_4 = 1;   total_5 = 1; 
		   total_6 = 1;   total_7 = 1;   total_8 = 1;   total_9 = 1;   total_10 = 1;
		   total_11 = 1;   total_12 = 1;   total_13 = 1;   total_14 = 1;   total_15 = 1;
		   total_16 = 1;   total_17 = 1;   total_18 = 1;   total_19 = 1;   total_20 = 1;
		   
change_total_1= 0; change_total_2= 0; change_total_3= 0; change_total_4= 0; change_total_5= 0;
change_total_6= 0; change_total_7= 0; change_total_8= 0; change_total_9= 0; change_total_10= 0;
change_total_11= 0; change_total_12= 0; change_total_13= 0; change_total_14= 0; change_total_15= 0;
change_total_16= 0; change_total_17= 0; change_total_18= 0; change_total_19= 0; change_total_20= 0;
//next2(total,total_page);
        }
     
		
function tabSwitch_2(active, number, tab_prefix, content_prefix) {  
      
    for (var i=1; i < number+1; i++) {  
      document.getElementById(content_prefix+i).style.display = 'none';  
      document.getElementById(tab_prefix+i).className = '';  
    }  
    document.getElementById(content_prefix+active).style.display = 'block';  
    document.getElementById(tab_prefix+active).className = 'active';      
      
}  
//--------------------------1 buttons-----------------------------------------------
var total_1 = 1;
function next_1(total_page_1, box_1_prefix){
total_1= total_1 + 1;


if (total_1 > total_page_1)
{
total_1 = 1;
change_total_1= -1;
display_1(total_1,total_page_1);
total_1= total_1 + 1;
}

for (var i=1; i < total_page_1 + 1; i++) {  

    document.getElementById(box_1_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_1_prefix+total_1).style.display = 'block';
		document.getElementById("Page_1_display").innerHTML= "Page: " + total_1 + " / " + total_page_1  ;

}


function prev_1(total_page_1, box_1_prefix){
total_1= total_1 - 1;

for (var i=1; i < total_page_1 + 1; i++) {  

    document.getElementById(box_1_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_1_prefix+total_1).style.display = 'block';
	document.getElementById("Page_1_display").innerHTML= "Page: " + total_1 + " / " + total_page_1  ;



}

var change_total_1= 0;
function display_1(value_1, length_data_1 ){
 

    if (value_1 == 1) { change_total_1 = change_total_1 + 1; }
    if (value_1 == -1) { change_total_1 = change_total_1 - 1; }
   if ( change_total_1 > 0) {  document.getElementById("btn_1_prev").disabled = false;  }
   if (change_total_1 > length_data_1 -2 ) {  document.getElementById("btn_1_next").disabled = true;  }
   if (change_total_1 == length_data_1 -2) {  document.getElementById("btn_1_next").disabled = false;  }
   if (change_total_1 == 0 ) {  document.getElementById("btn_1_prev").disabled = true;  }

 
}
//--------------------------2 buttons-----------------------------------------------
var total_2 = 1;
function next_2(total_page_2, box_2_prefix){
total_2= total_2 + 1;


if (total_2 > total_page_2)
{
total_2 = 1;
change_total_2= -1;
display_2(total_2,total_page_2);
total_2= total_2 + 1;
}

for (var i=1; i < total_page_2 + 1; i++) {  

    document.getElementById(box_2_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_2_prefix+total_2).style.display = 'block';
		document.getElementById("Page_2_display").innerHTML= "Page: " + total_2 + " / " + total_page_2  ;

}


function prev_2(total_page_2, box_2_prefix){
total_2= total_2 - 1;

for (var i=1; i < total_page_2 + 1; i++) {  

    document.getElementById(box_2_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_2_prefix+total_2).style.display = 'block';
	document.getElementById("Page_2_display").innerHTML= "Page: " + total_2 + " / " + total_page_2  ;



}

var change_total_2= 0;
function display_2(value_2, length_data_2 ){
 

    if (value_2 == 1) { change_total_2 = change_total_2 + 1; }
    if (value_2 == -1) { change_total_2 = change_total_2 - 1; }
   if ( change_total_2 > 0) {  document.getElementById("btn_2_prev").disabled = false;  }
   if (change_total_2 > length_data_2 -2 ) {  document.getElementById("btn_2_next").disabled = true;  }
   if (change_total_2 == length_data_2 -2) {  document.getElementById("btn_2_next").disabled = false;  }
   if (change_total_2 == 0 ) {  document.getElementById("btn_2_prev").disabled = true;  }

 
}

//--------------------------3 buttons-----------------------------------------------
var total_3 = 1;
function next_3(total_page_3, box_3_prefix){
total_3= total_3 + 1;


if (total_3 > total_page_3)
{
total_3 = 1;
change_total_3= -1;
display_3(total_3,total_page_3);
total_3= total_3 + 1;
}

for (var i=1; i < total_page_3 + 1; i++) {  

    document.getElementById(box_3_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_3_prefix+total_3).style.display = 'block';
		document.getElementById("Page_3_display").innerHTML= "Page: " + total_3 + " / " + total_page_3  ;

}


function prev_3(total_page_3, box_3_prefix){
total_3= total_3 - 1;

for (var i=1; i < total_page_3 + 1; i++) {  

    document.getElementById(box_3_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_3_prefix+total_3).style.display = 'block';
	document.getElementById("Page_3_display").innerHTML= "Page: " + total_3 + " / " + total_page_3  ;



}

var change_total_3= 0;
function display_3(value_3, length_data_3 ){
 

    if (value_3 == 1) { change_total_3 = change_total_3 + 1; }
    if (value_3 == -1) { change_total_3 = change_total_3 - 1; }
   if ( change_total_3 > 0) {  document.getElementById("btn_3_prev").disabled = false;  }
   if (change_total_3 > length_data_3 -2 ) {  document.getElementById("btn_3_next").disabled = true;  }
   if (change_total_3 == length_data_3 -2) {  document.getElementById("btn_3_next").disabled = false;  }
   if (change_total_3 == 0 ) {  document.getElementById("btn_3_prev").disabled = true;  }

 
}

//--------------------------4 buttons-----------------------------------------------
var total_4 = 1;
function next_4(total_page_4, box_4_prefix){
total_4= total_4 + 1;


if (total_4 > total_page_4)
{
total_4 = 1;
change_total_4= -1;
display_4(total_4,total_page_4);
total_4= total_4 + 1;
}

for (var i=1; i < total_page_4 + 1; i++) {  

    document.getElementById(box_4_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_4_prefix+total_4).style.display = 'block';
		document.getElementById("Page_4_display").innerHTML= "Page: " + total_4 + " / " + total_page_4  ;

}


function prev_4(total_page_4, box_4_prefix){
total_4= total_4 - 1;

for (var i=1; i < total_page_4 + 1; i++) {  

    document.getElementById(box_4_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_4_prefix+total_4).style.display = 'block';
	document.getElementById("Page_4_display").innerHTML= "Page: " + total_4 + " / " + total_page_4  ;



}

var change_total_4= 0;
function display_4(value_4, length_data_4 ){
 

    if (value_4 == 1) { change_total_4 = change_total_4 + 1; }
    if (value_4 == -1) { change_total_4 = change_total_4 - 1; }
   if ( change_total_4 > 0) {  document.getElementById("btn_4_prev").disabled = false;  }
   if (change_total_4 > length_data_4 -2 ) {  document.getElementById("btn_4_next").disabled = true;  }
   if (change_total_4 == length_data_4 -2) {  document.getElementById("btn_4_next").disabled = false;  }
   if (change_total_4 == 0 ) {  document.getElementById("btn_4_prev").disabled = true;  }

 
}

//--------------------------5 buttons-----------------------------------------------
var total_5 = 1;
function next_5(total_page_5, box_5_prefix){
total_5= total_5 + 1;


if (total_5 > total_page_5)
{
total_5 = 1;
change_total_5= -1;
display_5(total_5,total_page_5);
total_5= total_5 + 1;
}

for (var i=1; i < total_page_5 + 1; i++) {  

    document.getElementById(box_5_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_5_prefix+total_5).style.display = 'block';
		document.getElementById("Page_5_display").innerHTML= "Page: " + total_5 + " / " + total_page_5  ;

}


function prev_5(total_page_5, box_5_prefix){
total_5= total_5 - 1;

for (var i=1; i < total_page_5 + 1; i++) {  

    document.getElementById(box_5_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_5_prefix+total_5).style.display = 'block';
	document.getElementById("Page_5_display").innerHTML= "Page: " + total_5 + " / " + total_page_5  ;



}

var change_total_5= 0;
function display_5(value_5, length_data_5 ){
 

    if (value_5 == 1) { change_total_5 = change_total_5 + 1; }
    if (value_5 == -1) { change_total_5 = change_total_5 - 1; }
   if ( change_total_5 > 0) {  document.getElementById("btn_5_prev").disabled = false;  }
   if (change_total_5 > length_data_5 -2 ) {  document.getElementById("btn_5_next").disabled = true;  }
   if (change_total_5 == length_data_5 -2) {  document.getElementById("btn_5_next").disabled = false;  }
   if (change_total_5 == 0 ) {  document.getElementById("btn_5_prev").disabled = true;  }

 
}

//--------------------------6 buttons-----------------------------------------------
var total_6 = 1;
function next_6(total_page_6, box_6_prefix){
total_6= total_6 + 1;


if (total_6 > total_page_6)
{
total_6 = 1;
change_total_6= -1;
display_6(total_6,total_page_6);
total_6= total_6 + 1;
}

for (var i=1; i < total_page_6 + 1; i++) {  

    document.getElementById(box_6_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_6_prefix+total_6).style.display = 'block';
		document.getElementById("Page_6_display").innerHTML= "Page: " + total_6 + " / " + total_page_6  ;

}


function prev_6(total_page_6, box_6_prefix){
total_6= total_6 - 1;

for (var i=1; i < total_page_6 + 1; i++) {  

    document.getElementById(box_6_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_6_prefix+total_6).style.display = 'block';
	document.getElementById("Page_6_display").innerHTML= "Page: " + total_6 + " / " + total_page_6  ;



}

var change_total_6= 0;
function display_6(value_6, length_data_6 ){
 

    if (value_6 == 1) { change_total_6 = change_total_6 + 1; }
    if (value_6 == -1) { change_total_6 = change_total_6 - 1; }
   if ( change_total_6 > 0) {  document.getElementById("btn_6_prev").disabled = false;  }
   if (change_total_6 > length_data_6 -2 ) {  document.getElementById("btn_6_next").disabled = true;  }
   if (change_total_6 == length_data_6 -2) {  document.getElementById("btn_6_next").disabled = false;  }
   if (change_total_6 == 0 ) {  document.getElementById("btn_6_prev").disabled = true;  }

 
}

//--------------------------7 buttons-----------------------------------------------
var total_7 = 1;
function next_7(total_page_7, box_7_prefix){
total_7= total_7 + 1;


if (total_7 > total_page_7)
{
total_7 = 1;
change_total_7= -1;
display_7(total_7,total_page_7);
total_7= total_7 + 1;
}

for (var i=1; i < total_page_7 + 1; i++) {  

    document.getElementById(box_7_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_7_prefix+total_7).style.display = 'block';
		document.getElementById("Page_7_display").innerHTML= "Page: " + total_7 + " / " + total_page_7  ;

}


function prev_7(total_page_7, box_7_prefix){
total_7= total_7 - 1;

for (var i=1; i < total_page_7 + 1; i++) {  

    document.getElementById(box_7_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_7_prefix+total_7).style.display = 'block';
	document.getElementById("Page_7_display").innerHTML= "Page: " + total_7 + " / " + total_page_7  ;



}

var change_total_7= 0;
function display_7(value_7, length_data_7 ){
 

    if (value_7 == 1) { change_total_7 = change_total_7 + 1; }
    if (value_7 == -1) { change_total_7 = change_total_7 - 1; }
   if ( change_total_7 > 0) {  document.getElementById("btn_7_prev").disabled = false;  }
   if (change_total_7 > length_data_7 -2 ) {  document.getElementById("btn_7_next").disabled = true;  }
   if (change_total_7 == length_data_7 -2) {  document.getElementById("btn_7_next").disabled = false;  }
   if (change_total_7 == 0 ) {  document.getElementById("btn_7_prev").disabled = true;  }

 
}

//--------------------------8 buttons-----------------------------------------------
var total_8 = 1;
function next_8(total_page_8, box_8_prefix){
total_8= total_8 + 1;


if (total_8 > total_page_8)
{
total_8 = 1;
change_total_8= -1;
display_8(total_8,total_page_8);
total_8= total_8 + 1;
}

for (var i=1; i < total_page_8 + 1; i++) {  

    document.getElementById(box_8_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_8_prefix+total_8).style.display = 'block';
		document.getElementById("Page_8_display").innerHTML= "Page: " + total_8 + " / " + total_page_8  ;

}


function prev_8(total_page_8, box_8_prefix){
total_8= total_8 - 1;

for (var i=1; i < total_page_8 + 1; i++) {  

    document.getElementById(box_8_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_8_prefix+total_8).style.display = 'block';
	document.getElementById("Page_8_display").innerHTML= "Page: " + total_8 + " / " + total_page_8  ;



}

var change_total_8= 0;
function display_8(value_8, length_data_8 ){
 

    if (value_8 == 1) { change_total_8 = change_total_8 + 1; }
    if (value_8 == -1) { change_total_8 = change_total_8 - 1; }
   if ( change_total_8 > 0) {  document.getElementById("btn_8_prev").disabled = false;  }
   if (change_total_8 > length_data_8 -2 ) {  document.getElementById("btn_8_next").disabled = true;  }
   if (change_total_8 == length_data_8 -2) {  document.getElementById("btn_8_next").disabled = false;  }
   if (change_total_8 == 0 ) {  document.getElementById("btn_8_prev").disabled = true;  }

 
}

//--------------------------9 buttons-----------------------------------------------
var total_9 = 1;
function next_9(total_page_9, box_9_prefix){
total_9= total_9 + 1;


if (total_9 > total_page_9)
{
total_9 = 1;
change_total_9= -1;
display_9(total_9,total_page_9);
total_9= total_9 + 1;
}

for (var i=1; i < total_page_9 + 1; i++) {  

    document.getElementById(box_9_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_9_prefix+total_9).style.display = 'block';
		document.getElementById("Page_9_display").innerHTML= "Page: " + total_9 + " / " + total_page_9  ;

}


function prev_9(total_page_9, box_9_prefix){
total_9= total_9 - 1;

for (var i=1; i < total_page_9 + 1; i++) {  

    document.getElementById(box_9_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_9_prefix+total_9).style.display = 'block';
	document.getElementById("Page_9_display").innerHTML= "Page: " + total_9 + " / " + total_page_9  ;



}

var change_total_9= 0;
function display_9(value_9, length_data_9 ){
 

    if (value_9 == 1) { change_total_9 = change_total_9 + 1; }
    if (value_9 == -1) { change_total_9 = change_total_9 - 1; }
   if ( change_total_9 > 0) {  document.getElementById("btn_9_prev").disabled = false;  }
   if (change_total_9 > length_data_9 -2 ) {  document.getElementById("btn_9_next").disabled = true;  }
   if (change_total_9 == length_data_9 -2) {  document.getElementById("btn_9_next").disabled = false;  }
   if (change_total_9 == 0 ) {  document.getElementById("btn_9_prev").disabled = true;  }

 
}

//--------------------------10 buttons-----------------------------------------------
var total_10 = 1;
function next_10(total_page_10, box_10_prefix){
total_10= total_10 + 1;


if (total_10 > total_page_10)
{
total_10 = 1;
change_total_10= -1;
display_10(total_10,total_page_10);
total_10= total_10 + 1;
}

for (var i=1; i < total_page_10 + 1; i++) {  

    document.getElementById(box_10_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_10_prefix+total_10).style.display = 'block';
		document.getElementById("Page_10_display").innerHTML= "Page: " + total_10 + " / " + total_page_10  ;

}


function prev_10(total_page_10, box_10_prefix){
total_10= total_10 - 1;

for (var i=1; i < total_page_10 + 1; i++) {  

    document.getElementById(box_10_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_10_prefix+total_10).style.display = 'block';
	document.getElementById("Page_10_display").innerHTML= "Page: " + total_10 + " / " + total_page_10  ;



}

var change_total_10= 0;
function display_10(value_10, length_data_10 ){
 

    if (value_10 == 1) { change_total_10 = change_total_10 + 1; }
    if (value_10 == -1) { change_total_10 = change_total_10 - 1; }
   if ( change_total_10 > 0) {  document.getElementById("btn_10_prev").disabled = false;  }
   if (change_total_10 > length_data_10 -2 ) {  document.getElementById("btn_10_next").disabled = true;  }
   if (change_total_10 == length_data_10 -2) {  document.getElementById("btn_10_next").disabled = false;  }
   if (change_total_10 == 0 ) {  document.getElementById("btn_10_prev").disabled = true;  }

 
}

//--------------------------11 buttons-----------------------------------------------
var total_11 = 1;
function next_11(total_page_11, box_11_prefix){
total_11= total_11 + 1;


if (total_11 > total_page_11)
{
total_11 = 1;
change_total_11= -1;
display_11(total_11,total_page_11);
total_11= total_11 + 1;
}

for (var i=1; i < total_page_11 + 1; i++) {  

    document.getElementById(box_11_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_11_prefix+total_11).style.display = 'block';
		document.getElementById("Page_11_display").innerHTML= "Page: " + total_11 + " / " + total_page_11  ;

}


function prev_11(total_page_11, box_11_prefix){
total_11= total_11 - 1;

for (var i=1; i < total_page_11 + 1; i++) {  

    document.getElementById(box_11_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_11_prefix+total_11).style.display = 'block';
	document.getElementById("Page_11_display").innerHTML= "Page: " + total_11 + " / " + total_page_11  ;



}

var change_total_11= 0;
function display_11(value_11, length_data_11 ){
 

    if (value_11 == 1) { change_total_11 = change_total_11 + 1; }
    if (value_11 == -1) { change_total_11 = change_total_11 - 1; }
   if ( change_total_11 > 0) {  document.getElementById("btn_11_prev").disabled = false;  }
   if (change_total_11 > length_data_11 -2 ) {  document.getElementById("btn_11_next").disabled = true;  }
   if (change_total_11 == length_data_11 -2) {  document.getElementById("btn_11_next").disabled = false;  }
   if (change_total_11 == 0 ) {  document.getElementById("btn_11_prev").disabled = true;  }

 
}

//--------------------------12 buttons-----------------------------------------------
var total_12 = 1;
function next_12(total_page_12, box_12_prefix){
total_12= total_12 + 1;


if (total_12 > total_page_12)
{
total_12 = 1;
change_total_12= -1;
display_12(total_12,total_page_12);
total_12= total_12 + 1;
}

for (var i=1; i < total_page_12 + 1; i++) {  

    document.getElementById(box_12_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_12_prefix+total_12).style.display = 'block';
		document.getElementById("Page_12_display").innerHTML= "Page: " + total_12 + " / " + total_page_12  ;

}


function prev_12(total_page_12, box_12_prefix){
total_12= total_12 - 1;

for (var i=1; i < total_page_12 + 1; i++) {  

    document.getElementById(box_12_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_12_prefix+total_12).style.display = 'block';
	document.getElementById("Page_12_display").innerHTML= "Page: " + total_12 + " / " + total_page_12  ;



}

var change_total_12= 0;
function display_12(value_12, length_data_12 ){
 

    if (value_12 == 1) { change_total_12 = change_total_12 + 1; }
    if (value_12 == -1) { change_total_12 = change_total_12 - 1; }
   if ( change_total_12 > 0) {  document.getElementById("btn_12_prev").disabled = false;  }
   if (change_total_12 > length_data_12 -2 ) {  document.getElementById("btn_12_next").disabled = true;  }
   if (change_total_12 == length_data_12 -2) {  document.getElementById("btn_12_next").disabled = false;  }
   if (change_total_12 == 0 ) {  document.getElementById("btn_12_prev").disabled = true;  }

 
}

//--------------------------13 buttons-----------------------------------------------
var total_13 = 1;
function next_13(total_page_13, box_13_prefix){
total_13= total_13 + 1;


if (total_13 > total_page_13)
{
total_13 = 1;
change_total_13= -1;
display_13(total_13,total_page_13);
total_13= total_13 + 1;
}

for (var i=1; i < total_page_13 + 1; i++) {  

    document.getElementById(box_13_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_13_prefix+total_13).style.display = 'block';
		document.getElementById("Page_13_display").innerHTML= "Page: " + total_13 + " / " + total_page_13  ;

}


function prev_13(total_page_13, box_13_prefix){
total_13= total_13 - 1;

for (var i=1; i < total_page_13 + 1; i++) {  

    document.getElementById(box_13_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_13_prefix+total_13).style.display = 'block';
	document.getElementById("Page_13_display").innerHTML= "Page: " + total_13 + " / " + total_page_13  ;



}

var change_total_13= 0;
function display_13(value_13, length_data_13 ){
 

    if (value_13 == 1) { change_total_13 = change_total_13 + 1; }
    if (value_13 == -1) { change_total_13 = change_total_13 - 1; }
   if ( change_total_13 > 0) {  document.getElementById("btn_13_prev").disabled = false;  }
   if (change_total_13 > length_data_13 -2 ) {  document.getElementById("btn_13_next").disabled = true;  }
   if (change_total_13 == length_data_13 -2) {  document.getElementById("btn_13_next").disabled = false;  }
   if (change_total_13 == 0 ) {  document.getElementById("btn_13_prev").disabled = true;  }

 
}

//--------------------------14 buttons-----------------------------------------------
var total_14 = 1;
function next_14(total_page_14, box_14_prefix){
total_14= total_14 + 1;


if (total_14 > total_page_14)
{
total_14 = 1;
change_total_14= -1;
display_14(total_14,total_page_14);
total_14= total_14 + 1;
}

for (var i=1; i < total_page_14 + 1; i++) {  

    document.getElementById(box_14_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_14_prefix+total_14).style.display = 'block';
		document.getElementById("Page_14_display").innerHTML= "Page: " + total_14 + " / " + total_page_14  ;

}


function prev_14(total_page_14, box_14_prefix){
total_14= total_14 - 1;

for (var i=1; i < total_page_14 + 1; i++) {  

    document.getElementById(box_14_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_14_prefix+total_14).style.display = 'block';
	document.getElementById("Page_14_display").innerHTML= "Page: " + total_14 + " / " + total_page_14  ;



}

var change_total_14= 0;
function display_14(value_14, length_data_14 ){
 

    if (value_14 == 1) { change_total_14 = change_total_14 + 1; }
    if (value_14 == -1) { change_total_14 = change_total_14 - 1; }
   if ( change_total_14 > 0) {  document.getElementById("btn_14_prev").disabled = false;  }
   if (change_total_14 > length_data_14 -2 ) {  document.getElementById("btn_14_next").disabled = true;  }
   if (change_total_14 == length_data_14 -2) {  document.getElementById("btn_14_next").disabled = false;  }
   if (change_total_14 == 0 ) {  document.getElementById("btn_14_prev").disabled = true;  }

 
}

//--------------------------15 buttons-----------------------------------------------
var total_15 = 1;
function next_15(total_page_15, box_15_prefix){
total_15= total_15 + 1;


if (total_15 > total_page_15)
{
total_15 = 1;
change_total_15= -1;
display_15(total_15,total_page_15);
total_15= total_15 + 1;
}

for (var i=1; i < total_page_15 + 1; i++) {  

    document.getElementById(box_15_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_15_prefix+total_15).style.display = 'block';
		document.getElementById("Page_15_display").innerHTML= "Page: " + total_15 + " / " + total_page_15  ;

}


function prev_15(total_page_15, box_15_prefix){
total_15= total_15 - 1;

for (var i=1; i < total_page_15 + 1; i++) {  

    document.getElementById(box_15_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_15_prefix+total_15).style.display = 'block';
	document.getElementById("Page_15_display").innerHTML= "Page: " + total_15 + " / " + total_page_15  ;



}

var change_total_15= 0;
function display_15(value_15, length_data_15 ){
 

    if (value_15 == 1) { change_total_15 = change_total_15 + 1; }
    if (value_15 == -1) { change_total_15 = change_total_15 - 1; }
   if ( change_total_15 > 0) {  document.getElementById("btn_15_prev").disabled = false;  }
   if (change_total_15 > length_data_15 -2 ) {  document.getElementById("btn_15_next").disabled = true;  }
   if (change_total_15 == length_data_15 -2) {  document.getElementById("btn_15_next").disabled = false;  }
   if (change_total_15 == 0 ) {  document.getElementById("btn_15_prev").disabled = true;  }

 
}

//--------------------------16 buttons-----------------------------------------------
var total_16 = 1;
function next_16(total_page_16, box_16_prefix){
total_16= total_16 + 1;


if (total_16 > total_page_16)
{
total_16 = 1;
change_total_16= -1;
display_16(total_16,total_page_16);
total_16= total_16 + 1;
}

for (var i=1; i < total_page_16 + 1; i++) {  

    document.getElementById(box_16_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_16_prefix+total_16).style.display = 'block';
		document.getElementById("Page_16_display").innerHTML= "Page: " + total_16 + " / " + total_page_16  ;

}


function prev_16(total_page_16, box_16_prefix){
total_16= total_16 - 1;

for (var i=1; i < total_page_16 + 1; i++) {  

    document.getElementById(box_16_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_16_prefix+total_16).style.display = 'block';
	document.getElementById("Page_16_display").innerHTML= "Page: " + total_16 + " / " + total_page_16  ;



}

var change_total_16= 0;
function display_16(value_16, length_data_16 ){
 

    if (value_16 == 1) { change_total_16 = change_total_16 + 1; }
    if (value_16 == -1) { change_total_16 = change_total_16 - 1; }
   if ( change_total_16 > 0) {  document.getElementById("btn_16_prev").disabled = false;  }
   if (change_total_16 > length_data_16 -2 ) {  document.getElementById("btn_16_next").disabled = true;  }
   if (change_total_16 == length_data_16 -2) {  document.getElementById("btn_16_next").disabled = false;  }
   if (change_total_16 == 0 ) {  document.getElementById("btn_16_prev").disabled = true;  }

 
}

//--------------------------17 buttons-----------------------------------------------
var total_17 = 1;
function next_17(total_page_17, box_17_prefix){
total_17= total_17 + 1;


if (total_17 > total_page_17)
{
total_17 = 1;
change_total_17= -1;
display_17(total_17,total_page_17);
total_17= total_17 + 1;
}

for (var i=1; i < total_page_17 + 1; i++) {  

    document.getElementById(box_17_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_17_prefix+total_17).style.display = 'block';
		document.getElementById("Page_17_display").innerHTML= "Page: " + total_17 + " / " + total_page_17  ;

}


function prev_17(total_page_17, box_17_prefix){
total_17= total_17 - 1;

for (var i=1; i < total_page_17 + 1; i++) {  

    document.getElementById(box_17_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_17_prefix+total_17).style.display = 'block';
	document.getElementById("Page_17_display").innerHTML= "Page: " + total_17 + " / " + total_page_17  ;



}

var change_total_17= 0;
function display_17(value_17, length_data_17 ){
 

    if (value_17 == 1) { change_total_17 = change_total_17 + 1; }
    if (value_17 == -1) { change_total_17 = change_total_17 - 1; }
   if ( change_total_17 > 0) {  document.getElementById("btn_17_prev").disabled = false;  }
   if (change_total_17 > length_data_17 -2 ) {  document.getElementById("btn_17_next").disabled = true;  }
   if (change_total_17 == length_data_17 -2) {  document.getElementById("btn_17_next").disabled = false;  }
   if (change_total_17 == 0 ) {  document.getElementById("btn_17_prev").disabled = true;  }

 
}

//--------------------------18 buttons-----------------------------------------------
var total_18 = 1;
function next_18(total_page_18, box_18_prefix){
total_18= total_18 + 1;


if (total_18 > total_page_18)
{
total_18 = 1;
change_total_18= -1;
display_18(total_18,total_page_18);
total_18= total_18 + 1;
}

for (var i=1; i < total_page_18 + 1; i++) {  

    document.getElementById(box_18_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_18_prefix+total_18).style.display = 'block';
		document.getElementById("Page_18_display").innerHTML= "Page: " + total_18 + " / " + total_page_18  ;

}


function prev_18(total_page_18, box_18_prefix){
total_18= total_18 - 1;

for (var i=1; i < total_page_18 + 1; i++) {  

    document.getElementById(box_18_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_18_prefix+total_18).style.display = 'block';
	document.getElementById("Page_18_display").innerHTML= "Page: " + total_18 + " / " + total_page_18  ;



}

var change_total_18= 0;
function display_18(value_18, length_data_18 ){
 

    if (value_18 == 1) { change_total_18 = change_total_18 + 1; }
    if (value_18 == -1) { change_total_18 = change_total_18 - 1; }
   if ( change_total_18 > 0) {  document.getElementById("btn_18_prev").disabled = false;  }
   if (change_total_18 > length_data_18 -2 ) {  document.getElementById("btn_18_next").disabled = true;  }
   if (change_total_18 == length_data_18 -2) {  document.getElementById("btn_18_next").disabled = false;  }
   if (change_total_18 == 0 ) {  document.getElementById("btn_18_prev").disabled = true;  }

 
}

//--------------------------19 buttons-----------------------------------------------
var total_19 = 1;
function next_19(total_page_19, box_19_prefix){
total_19= total_19 + 1;


if (total_19 > total_page_19)
{
total_19 = 1;
change_total_19= -1;
display_19(total_19,total_page_19);
total_19= total_19 + 1;
}

for (var i=1; i < total_page_19 + 1; i++) {  

    document.getElementById(box_19_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_19_prefix+total_19).style.display = 'block';
		document.getElementById("Page_19_display").innerHTML= "Page: " + total_19 + " / " + total_page_19  ;

}


function prev_19(total_page_19, box_19_prefix){
total_19= total_19 - 1;

for (var i=1; i < total_page_19 + 1; i++) {  

    document.getElementById(box_19_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_19_prefix+total_19).style.display = 'block';
	document.getElementById("Page_19_display").innerHTML= "Page: " + total_19 + " / " + total_page_19  ;



}

var change_total_19= 0;
function display_19(value_19, length_data_19 ){
 

    if (value_19 == 1) { change_total_19 = change_total_19 + 1; }
    if (value_19 == -1) { change_total_19 = change_total_19 - 1; }
   if ( change_total_19 > 0) {  document.getElementById("btn_19_prev").disabled = false;  }
   if (change_total_19 > length_data_19 -2 ) {  document.getElementById("btn_19_next").disabled = true;  }
   if (change_total_19 == length_data_19 -2) {  document.getElementById("btn_19_next").disabled = false;  }
   if (change_total_19 == 0 ) {  document.getElementById("btn_19_prev").disabled = true;  }

 
}

//--------------------------20 buttons-----------------------------------------------
var total_20 = 1;
function next_20(total_page_20, box_20_prefix){
total_20= total_20 + 1;


if (total_20 > total_page_20)
{
total_20 = 1;
change_total_20= -1;
display_20(total_20,total_page_20);
total_20= total_20 + 1;
}

for (var i=1; i < total_page_20 + 1; i++) {  

    document.getElementById(box_20_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_20_prefix+total_20).style.display = 'block';
		document.getElementById("Page_20_display").innerHTML= "Page: " + total_20 + " / " + total_page_20  ;

}


function prev_20(total_page_20, box_20_prefix){
total_20= total_20 - 1;

for (var i=1; i < total_page_20 + 1; i++) {  

    document.getElementById(box_20_prefix+i).style.display = 'none';
	  }  	
    document.getElementById(box_20_prefix+total_20).style.display = 'block';
	document.getElementById("Page_20_display").innerHTML= "Page: " + total_20 + " / " + total_page_20  ;



}

var change_total_20= 0;
function display_20(value_20, length_data_20 ){
 

    if (value_20 == 1) { change_total_20 = change_total_20 + 1; }
    if (value_20 == -1) { change_total_20 = change_total_20 - 1; }
   if ( change_total_20 > 0) {  document.getElementById("btn_20_prev").disabled = false;  }
   if (change_total_20 > length_data_20 -2 ) {  document.getElementById("btn_20_next").disabled = true;  }
   if (change_total_20 == length_data_20 -2) {  document.getElementById("btn_20_next").disabled = false;  }
   if (change_total_20 == 0 ) {  document.getElementById("btn_20_prev").disabled = true;  }

 
}

