57
| <![CDATA[<script type="text/javascript">
<!--
function stringReplace(form) {
var replaceStr = form.keyword.value;
var pattern = /\;/g;
form.keyword.value = replaceStr.replace(pattern, " ");
if (trim(form.keyword.value, " ").length == 0 && document.getElementById("c1").checked == true ) {
window.location.href = "/busca/search?browse-all=yes";
return false;
}
}
function trim(str, chars) {
return ltrim(rtrim(str, chars), chars);
}
function ltrim(str, chars) {
chars = chars || "\\s";
return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
function rtrim(str, chars) {
chars = chars || "\\s";
return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}
-->
</script>]]>
|