function getHTTPObject() { var xmlhttp; if(window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else if (window.ActiveXObject) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); if (!xmlhttp) { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } } return xmlhttp; } var timeQuantity = 0; function changeQuantity(e){ window.clearInterval(timeQuantity); timeQuantity = window.setTimeout(function(){ GetOptions('attribute_list', '/includes/attributes_ajax.php'); }, 1000); } var ajax = getHTTPObject(); var currentUrl = ""; var targetdiv = ""; function changePage(url, target) { ajax.abort(); ajax = getHTTPObject(); targetdiv = target; ajax.open("GET", url, true); ajax.onreadystatechange = updatePage; // Send the request ajax.send(null); } function updatePage() { if (ajax.readyState == 4) { var response = ajax.responseText; document.getElementById(targetdiv).innerHTML = response; var script = /