/* author: Juan Londono */
/* Creation date: 6/02/2003 */

/*
  ----------------------------------------------------------------
   Procedures to count characters typed
  ----------------------------------------------------------------
*/

var limit = 250;

function update() {
  document.data.counter.value=document.data.question.value.length;
  if(document.data.counter.value > limit) {
    errorSpace.innerHTML="Question must not exceed more than "+limit+" characters";
    if(document.styleSheets) {
      document.data.counter.style.fontWeight = 'bold';
      document.data.counter.style.color = '#ff0000';
    }
  }
  else if(document.data.counter.value <= limit
    && document.styleSheets ) {
    document.data.counter.style.fontWeight = 'normal';
    document.data.counter.style.color = '#000000';
    errorSpace.innerHTML="&nbsp;";
  }
}

