function refreshWithAjax(E,H,F,G){if(!E){return }$(H).innerHTML="";ajaxLoader=new Element("img",{"src":"images/ajax-loader.gif"}).injectTop($(H));doLookup=new Ajax(E,{evalScripts:true,data:F,method:G,update:$(H),onComplete:function(){elmt=$(H);while(elmt.getTag().toLowerCase()!="body"){elmt.setStyle("height","auto");elmt=elmt.getParent()}},onFailure:function(){$(H).innerHTML="We apologize but this data is currently unavailable."}}).request()}Element.extend({switchClass:function(D,C){this.removeClass(D).addClass(C)}})