function ra_expand(C){try{var A=document.getElementById(C).getAttribute("url");A=A+"&action=expand";dojo.io.bind({url:A,load:function(E,F,D){ra_action(C,F,"expand")},error:function(E,D){ra_error(E,D)},mimetype:"text/plain"})}catch(B){}}function ra_collapse(C){try{var A=document.getElementById(C).getAttribute("url");A=A+"&action=collapse";dojo.io.bind({url:A,load:function(E,F,D){ra_action(C,F,"collapse")},error:function(E,D){ra_error(E,D)},mimetype:"text/plain"})}catch(B){}}function ra_more(B){var A=document.getElementById(B).getAttribute("url");A=A+"&action=more";dojo.io.bind({url:A,load:function(D,E,C){ra_action(B,E)},mimetype:"text/plain"})}function ra_action(E,B,A){try{var D=document.getElementById(E);document.getElementById("tmp_ajax").innerHTML=B;if(D!=null&&A=="expand"){D.innerHTML=document.getElementById("tmp_"+E).innerHTML;D.style.display="";D.style.visiblility="visible"}}catch(C){}}function ra_error(B,A){try{var C=document.getElementById("summary_navigation");if(C!=null){C.submit()}}catch(D){}}function ra_showRefinePanel(B){var A=document.getElementById(B).getAttribute("url");A=A+"&action=showRefinePanel";dojo.io.bind({url:A,load:function(D,E,C){ra_panel_action(B,E,"showRefinePanel")},mimetype:"text/plain"})}function ra_hideRefinePanel(B){var A=document.getElementById(B).getAttribute("url");A=A+"&action=hideRefinePanel";dojo.io.bind({url:A,load:function(D,E,C){ra_panel_action(B,E,"hideRefinePanel")},mimetype:"text/plain"})}function ra_panel_action(D,B,A){var C=document.getElementById(D);document.getElementById("tmp_ajax").innerHTML=B;if(C&&A=="show"){C.innerHTML=document.getElementById("tmp_"+D).innerHTML;C.getElementById(D).style.display="";C.getElementById(D).style.visiblility="visible"}}function daisy_action_clearall(A){var B="dojo url is "+A;dojo.io.bind({url:A,load:function(D,E,C){},mimetype:"text/plain"})}function simple_update_action(A){var B="dojo url is "+A;dojo.io.bind({url:A,load:function(D,E,C){},mimetype:"text/plain"})}function saveForm(G){if(G==null){return false}var D=dojo.byId(G);if(D==null){return false}var C=null;C=D.getAttribute("auto_save_url");if(C==null){return false}var B=document.forms[G].elements.SID.value;var E=document.forms[G].elements.product.value;var A=document.forms[G].elements.search_mode.value;C=C+"&SID="+B+"&product="+E+"&search_mode="+A;try{dojo.io.bind({url:C,sync:false,formNode:D,mimetype:"text/plain"})}catch(F){return false}return false}function saveDCRForm(K){if(K==null){return false}var B=dojo.byId(K);if(B==null){return false}var A=null;A=B.getAttribute("auto_save_url");if(A==null){return false}var C=document.forms[K].elements.SID.value;var L=document.forms[K].elements.product.value;var I=document.forms[K].elements.search_mode.value;A=A+"&SID="+C+"&product="+L+"&search_mode="+I;var H=B.cloneNode(true);H.innerHTML=B.innerHTML;for(var E=0;E<H.elements.length;E++){var J=H.elements[E].value;var M=H.elements[E].type;if(typeof J=="undefined"){H.elements[E].value=""}if(M==null){H.elements[E].type="unknown"}}for(var E=0;E<H.elements.length;E++){var J=H.elements[E].value;var M=H.elements[E].type;var G=H.elements[E].checked;var D=H.elements[E].name;if(M=="radio"&&G==false){H.elements[E].name="ignore"}}try{dojo.io.bind({url:A,sync:false,formNode:H,mimetype:"text/plain"})}catch(F){return false}return false}function saveRadioForm(I){if(I==null){return false}var B=dojo.byId(I);if(B==null){return false}var A=null;A=B.getAttribute("auto_save_url");if(A==null){return false}var C=document.forms[I].elements.SID.value;var J=document.forms[I].elements.product.value;var H=document.forms[I].elements.search_mode.value;A=A+"&SID="+C+"&product="+J+"&search_mode="+H;for(var E=0;E<B.elements.length;E++){var K=B.elements[E].value;var L=B.elements[E].type;var G=B.elements[E].checked;var D=B.elements[E].name;if(typeof K=="undefined"){B.elements[E].value=""}if(L==null){B.elements[E].type="unknown"}if(L=="radio"){if(G==false&&D!="period"){B.elements[E].name="ignore"}}}try{dojo.io.bind({url:A,sync:false,formNode:B,mimetype:"text/plain"})}catch(F){return false}return false}function postAsyncForm(C,B){var A=function(D){};formDataHandlerAction(C,A,B)}function formDataHandlerAction(G,J,C){if(J==null){J=function(K){document.write(K)}}var B=null;if(G!=null){B=dojo.byId(G)}if(B==null){return false}var A=null;if(C==null){C="url"}A=B.getAttribute(C);if(A==null||A.length<1){return false}var F;if(navigator.userAgent.indexOf("Safari")>0){F=B}else{var F=B.cloneNode(true);for(var D=0;D<F.elements.length;D++){var H=F.elements[D].value;var I=F.elements[D].type;if(typeof H=="undefined"){F.elements[D].value=""}if(I==null){F.elements[D].type="unknown"}}}try{dojo.io.bind({url:A,sync:true,formNode:F,mimetype:"text/plain",load:function(L,M,K){J(M)}})}catch(E){return false}return false}function postAsyncCheckboxForm(C,B){var A=function(D){};checkboxFormDataHandlerAction(C,A,B)}function checkboxFormDataHandlerAction(F,I,C){if(I==null){I=function(J){document.write(J)}}var B=null;if(F!=null){B=dojo.byId(F)}if(B==null){return false}var A=null;if(C==null){C="url"}A=B.getAttribute(C);if(A==null||A.length<1){return false}if(navigator.userAgent.indexOf("Safari")>0){}else{for(var D=0;D<B.elements.length;D++){var G=B.elements[D].value;var H=B.elements[D].type;if(typeof G=="undefined"){B.elements[D].value=""}if(H==null){B.elements[D].type="unknown"}}}try{dojo.io.bind({url:A,sync:true,formNode:B,mimetype:"text/plain",load:function(K,L,J){I(L)}})}catch(E){return false}return false}function old_async_update_ml(){var B=null;var C=document.getElementById("ml_count");if(C){B=C.getAttribute("url")}if(B){var A=document.forms.summary_records_form;if(A){B+="&update_indicators=true"}debug_alert("async_update_ml sending URL "+B);dojo.io.bind({url:B,load:function(E,F,D){handle_ml_data(F)},mimetype:"text/plain"})}}function simpleDataHandlerAction(A,B){if(B==null){B=function(C){document.write(C)}}if(A){dojo.io.bind({url:A,load:function(D,E,C){B(E)},mimetype:"text/plain"})}}function chem_fullrec_navigation(A,B){if(A){dojo.io.bind({url:A,load:function(D,E,C){chem_fullrec_data_handler(E,B)},mimetype:"text/plain"})}};
