I'm not very strong in JS so I'll appreciate a point to where the code
is wrong.
"event cannot be resolved"
Line:
<body onmousedown="event.preventDefault()"> <!-- disables image dragging
in Firefox -->
"style cannot be resolved or is not a field"
Line:
(<span style="color: blue; cursor: pointer;" onclick="var
s=document.getElementById('debugQueryTable').style;s.display=s.display=='none'?'':'none';this.innerHTML=this.innerHTML=='Show'?'Hide':'Show'">Show</span>)
"options cannot be resolved or is not a field"
Line:
var o = document.getElementById('id_publisher').options;