function getXMLHttp(){var a=null;if(window.ActiveXObject){if(navigator.userAgent.toLowerCase().indexOf("msie 5")!=-1){a=new ActiveXObject("Microsoft.XMLHTTP")}else{a=new ActiveXObject("Msxml2.XMLHTTP")}}if(!a&&typeof(XMLHttpRequest)!="undefined"){a=new XMLHttpRequest()}return a}function cmPHP(e,d,a,b,c){}function insertDB(d){var e=document.getElementById("cosa").value;if(e==""){e=document.getElementById("cosa0").innerHTML}var c=document.getElementById("dove").value;if(c==""){c=document.getElementById("dove0").innerHTML}var b="cosa="+encodeURI(e)+"&dove="+encodeURI(c)+"&elapsedtime="+document.getElementById("elapsedtime").innerHTML+"&what="+encodeURI(e)+"&nresults="+document.getElementById("nresults").innerHTML+"&categoryrow="+document.getElementById("categoryrow").innerHTML+"&row="+document.getElementById("row").innerHTML+"&codPUnum="+document.getElementById("codPUnum").innerHTML+"&nrescategory="+document.getElementById("nrescategory").innerHTML+"&rank="+document.getElementById("rank").innerHTML+"&codiceOPEC="+document.getElementById("codiceOPEC").innerHTML+"&referer="+d;var a=newXMLHttpRequest();if(a!=null){a.open("POST","_extractIdQuery.php",true);a.setRequestHeader("Content-type","application/x-www-form-urlencoded");a.send(b);a.onreadystatechange=handleResponse(a,manageIdQuery,ResponseType.html)}else{alert("Il tuo browser non supporta XMLHttpRequest")}}function manageIdQuery(a){document.getElementById("id_query").innerHTML=a};
