var gind = 1;

function textCounter(field, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
}

function setShow(objName, sens, comment) {
  var items;
  array_comment = comment.split('§');
  items = array_comment.length - 1;
  if (sens == 'next') {
    if(gind < items){
      gind++;
      document.getElementById(objName).innerHTML = array_comment[gind];
    }
    else{
      //alert('On s\'amuse! ' + array_comment[gind]);
    }
  }
  else{
    if(gind > 1){
      gind--;
      document.getElementById(objName).innerHTML = array_comment[gind];
    }
    else{
      //alert('On s\'amuse! ' + array_comment[gind]);
    }
  }
}