
window.onload = initform;

var mytextarea;

function initform()
{
  mytextarea = document.getElementById("details");
}

function reloadDetails(details)
{
  mytextarea.value = details;
  document.write ("testing");
}

// document.forms[0].details.value