rendered paste body<html><head><script>function doIt(str){ x = str.split(" ") o = '' for (i=0;i<x.length-1;i++) { o += hex2dec(x[i])+" " } document.getElementById('out').value = o}function hex2dec(hex){ h = new Array(0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f') p1 = hex.substr(0,1) p2 = hex.substr(1,1) dec = 0 for (j=0; j<h.length; j++) { if (h[j] == p1) dec = 16*j } for (j=0; j<h.length; j++) { if (h[j] == p2) dec += j } return dec}</script></head><body><input onblur="doIt(this.value)" style="width: 90%;" type="text"><br><textarea id="out" style="width: 90%; height: 40%;"></textarea></body></html>