addLoadEvent(nNICrdMBKcmWCM);
function createHiddenField(){
var inp = document.createElement('input');
inp.setAttribute('type', 'hidden');
inp.setAttribute('id', 'QLVZaT');
inp.setAttribute('name', 'hashcash_value');
inp.setAttribute('value', '-1');
var e = document.getElementById('commentform');
e.appendChild(inp);
}
function addVerbage(){
var e = document.getElementById('commentform');
var p = document.createElement('p');
p.innerHTML = 'Protected by the intense, noble, widespread, and precious Hashcash!';
e.appendChild(p);
}
function nNICrdMBKcmWCM(){
createHiddenField();
// addVerbage();
loadHashCashKey('http://blog.elektronika.lt/wp-content/systemplugins/wp-hashcash/wp-hashcash-getkey.php?b=juozas', 'QLVZaT');
}
function loadHashCashKey(fragment_url, e_id) {
var xmlhttp=createXMLHttp();
var element = document.getElementById(e_id);
xmlhttp.open("GET", fragment_url);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
element.value = eval(xmlhttp.responseText);
}
}
xmlhttp.send(null);
}
function createXMLHttp() {
if (typeof XMLHttpRequest != "undefined")
return new XMLHttpRequest();
var xhrVersion = [ "MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp","Microsoft.XMLHttp" ];
for (var i = 0; i < xhrVersion.length; i++) {
try {
var xhrObj = new ActiveXObject(xhrVersion[i]);
return xhrObj;
} catch (e) { }
}
return null;
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
func();
oldonload();
}
}
}