if (window != top) { top.location.href = location.href }; function changeImage( imgName, imgFile ) { if( document.images ) document.images[imgName].src = imgFile; } /* //heighlight foregroundobject $(function() { $("#CONTENTTABLE_FLUID").mouseover(function() { $(this).expose( { color: '#000', opacity: 0.7 }); }); $("#CONTENTTABLE_FLUID").mouseout(function() { $.expose.close(); }); }); */ var ajaxQueue = []; var debug = 1; var waitingForAjax = false; function queueAjax(url, callback, element_id) { var as = new AjaxSpec(url, callback, element_id); engageDataFuntion(element_id); if (!waitingForAjax) { as.execute(); } else { ajaxQueue.push(as); } } function AjaxSpec (url, callback, element_id) { this.url = url; this.callback = callback; this.element_id = element_id; this.execute = function() { ajaxRequest(this.url, this.callback, this.element_id); }; } function ajaxRequest(url, callback, element_id) { var data = null; waitingForAjax = true; var rand = Math.floor(Math.random() * 999999999); url = (url.indexOf("?")>-1) ? url + '&r=' + rand : url + '?r=' + rand; try { xhrobj = new XMLHttpRequest(); } catch (e) { try { xhrobj=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xhrobj=new ActiveXObject("Microsoft.XMLHTTP"); } } xhrobj.open("GET", url); xhrobj.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xhrobj.onreadystatechange = function() { if (xhrobj.readyState == 4 && xhrobj.status == 200) { callback(xhrobj.responseText, element_id); waitingForAjax = false; if (ajaxQueue.length > 0) { var as = ajaxQueue.shift(); as.execute(); } } if (xhrobj.readyState == 4 && xhrobj.status == 404) { callback('