var com06b_dgl_tip = -1;
var com06b_dgl_tip_t = 0;
var com06b_dgl_comp = document.getElementById?1:0;

function com06b_getObj(name) {
 if (!com06b_dgl_comp) return false;
 if (document.getElementById) return(document.getElementById(name));
 else if (document.all) return(document.all[name]);
 return false;
}

function com06b_n_stip(st,di,x,y,t) {
    if (!com06b_dgl_comp) {
	alert(st);
    	return -1;
    }
    if (com06b_dgl_tip != -1) com06b_n_stip_off(com06b_dgl_tip);
    var o = com06b_getObj(di);
    o.innerHTML = "<div class='com06b-miniboxc' style='left: "+x+"px; top: "+y+"px' onmouseover=\"com06b_n_stip_off('"+di+"')\"><div class='com06b-miniboxcc'>"+st+"</div></div>";
    o.style.visibility = 'visible';
    if (com06b_dgl_tip_t) clearTimeout(com06b_dgl_tip_t);
    com06b_dgl_tip = di;
    com06b_dgl_tip_t = setTimeout("com06b_n_stip_off('"+di+"')", t * 1000);
}

function com06b_n_stip_off(di) {
	if (!com06b_dgl_comp) return -1;
	if (com06b_dgl_tip_t) clearTimeout(com06b_dgl_tip_t);
	var o = com06b_getObj(di);
	o.style.visibility='hidden';
	com06b_dgl_tip = -1;
}

function com06b_go(type,e){
	q=escape(document.search.query.value).replace(/\+/g,"%2b");
	if (q == '') {return true;}
	var u;
	if (type == 'img') {
		u='http://arianna.libero.it/media/cgi-bin/media.pl?query='+q+'&categoria=httpimg';
	}
	else if (type == 'web') {
		u='http://arianna.libero.it/search/abin/integrata.cgi?regione=12&query='+q;
	}
	else if (type == 'usenet') {
		u='http://arianna.libero.it/usenet/cgi-bin/SearchNews.epl?KEYWORDS='+q+'&TABLES=RECENT_MSG';
	}
	else if (type == 'pagb') {
		u='http://paginebianche.libero.it/execute.cgi?btt=0&tl=2&tr=101&tc=&cb=20&tq=2&qs='+q;
	}
	else if (type == 'tut') {
		u='http://tuttocitta.libero.it/tcolnew/index_libero.html#sez=1015&com='+q;
	}
	else if (type == 'pagg') {
		u='http://paginegialle.libero.it/pg/cgi/pgsearch.cgi?btt=0&ts=1&l=1&cb=l&ind=&nc=&qs='+q;
	}
	else if (type == 'news') {
		u='http://arianna.libero.it/news/search/abin/news?query='+q;
	}
	else if (type == 'video') {
		u='http://video.libero.it/app/search/index.html?q='+q;
	}
	else if (type == 'altre') {
        u='http://arianna.libero.it/?'+q;
	}
	location.href=u;
	return false;
}
function com06b_controlla()
{
    var pattern=/^\s+$/;

	if ((document.search.query.value=='') || (document.search.query.value.match(pattern)) )  {
		com06b_n_stip('Specifica un termine per la ricerca','com06b-inforic',345,-38,5);
		return false;
	}
	return true;
}


