"; function sendfind(term, where) { var schems = document.getElementsByClassName("schems")[0]; if (term.length >= 2) { term = term.toLowerCase(); for (i = 0; i < schems.children.length; i++) { var thisone = schems.children[i]; var thisonetext = thisone.innerHTML.toLowerCase(); if (thisonetext.indexOf(term) > 1) { thisone.style.display = "inline-block"; } else { thisone.style.display = "none"; } } } else { for (i = 0; i < schems.children.length; i++) { var thisone = schems.children[i]; thisone.style.display = "inline-block"; } } window.location.href = window.location.href.split("#searchfor=")[0] + "#searchfor=" + term; } for(var i = 0; document.getElementsByClassName("schems")[0].children.length > i; i++) { document.getElementsByClassName("schems")[0].children[i].children[0].id = "schematic"+i; } if(window.location.href.indexOf("searchfor=") >= 1) { sendfind(window.location.href.split("searchfor=")[1],find); find.children[0].children[0].value = window.location.href.split("searchfor=")[1]; }