ReplaceBtn").onclick = function (txt, dir, mcase) {     var findtxt = $G("findtxt0").value, obj;     if (!findtxt) {         return false;     }     obj = {         searchStr:findtxt,         dir:0,         casesensitive:getMatchCase("matchCase0")     };     frCommond(obj); }; 