Btn").onclick = function () {     var findtxt = $G("findtxt0").value.replace(/^\s|\s$/g, ""), obj,         replacetxt = $G("replacetxt").value.replace(/^\s|\s$/g, "");     if (!findtxt) {         return false;     }     if (findtxt == replacetxt || (!getMatchCase("matchCase0") && findtxt.toLowerCase() == replacetxt.toLowerCase())) {         return false;     }     obj = {         searchStr:findtxt,         casesensitive:getMatchCase("matchCase0"),         replaceStr:replacetxt