function LTrim(value){
var re = /\s*((\S+\s*)*)/;
return value.replace(re, "$1");
}
function RTrim(value){
var re = /((\s*\S+)*)\s*/;
return value.replace(re, "$1");
}
function trim(value){
return LTrim(RTrim(value));
}// Removes leading and ending whitespaces
function fsearch(site){ 
if(site=="") return false;
document.frm_search.site.value=site;
document.frm_search.q.value=trim(document.frm_search.q.value);
document.frm_search.action="visit.php";
document.frm_search.target="_blank";
document.frm_search.submit();
return true;
}
function VZIT(what)
{
var at = / at / ;
var dot = / dot /g ;
var theAddress = what.href ;
theAddress = theAddress.replace(/.*\//, "mailto:") ;
theAddress = unescape(theAddress) ;
theAddress = theAddress.replace(at, '@') ;
theAddress = theAddress.replace(dot, '.') ;
what.href = theAddress ;
return true ;
}