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="go.php";
document.frm_search.target="_blank";
document.frm_search.submit();
return true;
}
function tv2see (abc)
{
window.open('', 'tvwindow', 'height=580,innerHeight=580,width=700,innerWidth=650');
document.tvrandom.id.value=abc;
document.tvrandom.submit() ;
}
