function ajax(array) { var url = array[0][0]; var elementId = array[0][1]; var loadingIcon = array[0][2]; var http = false; if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } http.open("GET", url, true); if(elementId != null && elementId != '') { if(loadingIcon == 'True' && document.getElementById(elementId) != null) { document.getElementById(elementId).innerHTML = "
"; } } http.onreadystatechange=function() { if(http.readyState == 4) { if(elementId != null && elementId != '' && document.getElementById(elementId) != null) { document.getElementById(elementId).innerHTML = http.responseText; try { if(typeof thickBoxInit == 'function') { thickBoxInit(); } AjaxReActivateJavascript(document.getElementById(elementId)); } catch(e) {} } if(array.length > 1) { var newArray = new Array(); for(i=0;i