function openw (abc)
{
window.open('', 'tvwindow', 'height=580,innerHeight=580,width=700,innerWidth=650');
document.tvrandom.id.value=abc;
document.tvrandom.submit() ;
}
function add2Favorites()
{
window.external.AddFavorite('http://www.use.co.il',document.title);
return true ;
}
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="../poisk.php";
document.frm_search.target="_blank";
document.frm_search.submit();
return true;
}
function UZE(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 ;
}
