var xmlHttp function aea_update( str, num ) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="http://www.authoritydomains.com/social-media-marketing/wp-content/plugins/aea/aea_update.php"; url=url+"?s="+str+"&n="+num; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged() { if (xmlHttp.readyState==4) { document.getElementById("als_results").innerHTML=xmlHttp.responseText; } } function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function myFunction( num ) { document.getElementById("eaContent" + num).style.display = "none"; document.getElementById("eaEdit" + num + "Text").value = document.getElementById("eaContent" + num).innerHTML; document.getElementById("eaEdit" + num).style.display = "inline"; document.getElementById("eaEdit" + num + "Text").focus(); } function myDone( num ) { document.getElementById("eaContent" + num).innerHTML = document.getElementById("eaEdit" + num + "Text").value; document.getElementById("eaEdit" + num).style.display = "none"; document.getElementById("eaContent" + num).style.display = "block"; aea_update( document.getElementById("eaEdit" + num + "Text").value, num ); } function set() { } window.onload = set;