var http2 = false;
if(navigator.appName == "Microsoft Internet Explorer") {
http2 = new ActiveXObject("Microsoft.XMLHTTP");
} else {
http2 = new XMLHttpRequest();
}
function replace_f(id, url, val, val2) {
http2.open("GET", url + "?name=" + val + "&val2=" + val2, true);
http2.onreadystatechange=function() {
if(http2.readyState == 4) {
document.getElementById(id).innerHTML = http2.responseText;
}
}
http2.send(null);
} 

