// Insert text gets the input by it's ID property.
// It then moves up the DOM tree to get it's parent DIV element.
// Then it comes back into the DIV looking for the first P element.
// And inserts/removes text based on the TITLE property of the calling element.
// R is for "remove" where NULL = insert text and TRUE = remove text.

function insertText(ID,R){
  
  //alert(document.getElementsByClassName(ID));
  whichArrow=document.getElementsByClassName(ID, "a")[0];
  //alert(ID);
  if (R){  document.getElementsByClassName("lastnext", "p")[0].innerHTML="";
  } else { document.getElementsByClassName("lastnext", "p")[0].innerHTML=whichArrow.title}
}



//} else { document.getElementsByClassName("nextlast")[0].innerHTML=ID.title;}
