// JavaScript Document
<!-- hide from old browsers
function openComments (c) {
  window.open(c, 'comments', 'width=550,height=500,scrollbars=yes,status=yes');
}

var url = "http://www.hp-lexicon.info/comments/commentmarker.php?id="; // The server-side script

function handleHttpResponse(id) {

  if (http.readyState == 4) {
  if (http.responseText.indexOf('invalid') == -1) {
	var theLink = 'commentLink'+thisid;
	var eComment = document.getElementById(theLink);
	eComment.innerHTML = http.responseText;
	eComment.style.border = '1px solid #000000';
	eComment.style.textAlign = 'center';
	eComment.style.padding = '2px 2px 10px 2px';
	isWorking = false;
	}
  }

}

function getHTTPObject() { 
var xmlhttp; 
/*@cc_on 
@if (@_jscript_version >= 5) try { 
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
 catch (e) { try 
 { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } 
 catch (E) { xmlhttp = false; } 
 } @else xmlhttp = false; 
 @end @*/ 
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { 
try { 
	xmlhttp = new XMLHttpRequest(); 
	} 
catch (e) { 
	xmlhttp = false; } 
} 
return xmlhttp; 
} 
var http = getHTTPObject(); // We create the HTTP Object
var isWorking = false;

function getCommentLink (id) {
if (!isWorking && http) {
	http.open("GET", url + id, true); 
	thisid = id;
	http.onreadystatechange = handleHttpResponse; 
	isWorking = true;
	http.send(null);
	} else {
	setTimeout("getCommentLink("+id+")",10);
	}
}
-->