e=event; 
    if (e.preventDefault) e.preventDefault();
    wwr_req(msg);
    return false;
  }
}

function wwr_onreply(results) {
  var ar = results.split("\n");
  for (var x=0;x<ar.length;x++) {
    var tok = ar[x].split("\t");
    if (tok.length > 0) switch (tok[0]) {
      case "TRANSPORT":
        if (tok.length > 4) {
          if (tok[1] != last_transport_state) {
            last_transport_state=tok[1];
            document.getElementById("play").style.background = (last_transport_state&1) ? "#0f0" 