/* ==================================================================	Remove Search Box Text	Specialist: Milton Montaque	Date: August 20, 2009	Version: 2.0		These 2 codes remove the default search box	copy from EPi Sites.		Must add the following line to a global JS Block:		<script type="text/javascript">window.onload=doit;</script>   ================================================================== */function getElementsByClass(node,searchClass,tag) {        var classElements = new Array();        var els = node.getElementsByTagName(tag); // use "*" for all elements        var elsLen = els.length;        var pattern = new RegExp("\\b"+searchClass+"\\b");        for (i = 0, j = 0; i < elsLen; i++) {                if ( pattern.test(els[i].className) ) {                        classElements[j] = els[i];                        j++;                }//end if        }//edn for        return classElements;}//end getbyclass function doit(){ var inputArray = getElementsByClass(document,'value-replace','*');        for (i = 0; i < inputArray.length; i++){               inputArray[i].value="";        }//end for}