function aqs(A){addToQueryString(A+"="+$(A).value)}function addToQueryString(A){var B=location.protocol+"//"+location.host+location.pathname;var C;if(location.search.length>0){C=B+location.search+"&"+A}else{C=B+"?"+A}window.location.href=C}function sendParam(A,B){if(B.which==13){aqs(A.id)}}function fdr(A){Effect.toggle("fdr_"+A,"blind")}function fdr_show_all(){var B;var A=document.getElementsByClassName("fiberdescrow");for(B=0;B<A.length;B++){if(Element.visible(A[B])==false){Effect.toggle(A[B],"blind",{afterFinish:fdr_fix_cols})}}$("showAll").style.display="none";$("hideAll").style.display="block"}function fdr_fix_cols(){var D=Element.getHeight("fibersTable");var C=Element.getHeight("mainContent");if(D>C){$("mainContent").style.height=""+D+"px"}else{var A=Element.getHeight("rt_sidebar");var B=Element.getHeight("fiber_selections");if((D>B)&&(D>A)){$("mainContent").style.height=""+D+"px"}else{if((B>D)&&(B>A)){$("mainContent").style.height=""+B+"px"}else{if((A>D)&&(A>B)){$("mainContent").style.height=""+A+"px"}}}}}function fdr_hide_all(){var B;var A=document.getElementsByClassName("fiberdescrow");for(B=0;B<A.length;B++){if(Element.visible(A[B])==true){Effect.toggle(A[B],"blind",{afterFinish:fdr_fix_cols})}}$("showAll").style.display="block";$("hideAll").style.display="none"}function check_all_fibers(B){var A;var C=document.getElementsByClassName("fibercheck");for(A=0;A<C.length;A++){if(B=="on"){C[A].checked=true}else{C[A].checked=false}}}function compare_fibers(A){var B;var D=0;var C=document.getElementsByClassName("fibercheck");for(B=0;B<C.length;B++){if(C[B].checked==true){D++}}if(D<1){alert("Error: No fibers are currently selected. Please use the checkboxes above.")}else{if(D==1){alert("Error: Only one fiber is selected for comparison.")}else{A.submit()}}}function focusna(A){$("crna").focus();$("crna").style.visibility="hidden";$("crna").style.visibility="visible"}function numeric_na(){new Effect.BlindUp("crna_text");new Effect.BlindDown("crna_numeric");new Effect.Highlight("crna_numeric",{afterFinish:focusna})}function text_na(){new Effect.BlindUp("crna_numeric");new Effect.BlindDown("crna_text");new Effect.Highlight("crna_text")}function onestep_fibers(){new Effect.Fade("fibersTable",{afterFinish:onestep_part2})}function onestep_part2(){new Effect.Appear("fibersearch_form")}function browsemode_fibers(){new Effect.Fade("fibersearch_form",{afterFinish:browsemode_part2})}function browsemode_part2(){new Effect.Appear("fibersTable")}function onestep_numeric_na(A){if(A.options[A.selectedIndex].value=="num"){new Effect.BlindUp("ocrna_text");new Effect.BlindDown("ocrna_numeric");new Effect.Highlight("ocrna_numeric",{afterFinish:onestep_focusna})}}function onestep_text_na(){$("crnamenu").selectedIndex=0;new Effect.BlindUp("ocrna_numeric");new Effect.BlindDown("ocrna_text");new Effect.Highlight("ocrna_text")}function onestep_focusna(A){$("ocrna").focus();$("ocrna").style.visibility="hidden";$("ocrna").style.visibility="visible"}