function showtip (v) 
{
	if (document.all[v]) 
	{
		var sw = document.body.clientWidth;
		var sh = document.body.clientHeight;
		var dw = document.all[v].clientWidth;
		var dh = document.all[v].clientHeight;
		var cx = self.event.clientX;
		var cy = self.event.clientY;
		if (sw < cx+dw+20) cx=sw-dw-20;
		if (sh < cy+dh+20) cy=sh-dh-20;
		document.all[v].style.top=cy+document.body.scrollTop+15;
		document.all[v].style.left=cx+document.body.scrollLeft+10;
		document.all[v].style.visibility='visible';
	}
}

function hidetip (v) 
{
	if (document.all[v]) 
	{
		document.all[v].style.visibility='hidden';
	}
}

function tvirch (url) 
{
	w = screen.width*0.6; h = screen.height-100;
	t = (screen.height-h)/3; l = screen.width-w-32;
	wd = window.open (url, 'tvirch', 'location=no,scrollbars=yes,status=no,menubar=no,resizable=yes,top='+t+',left='+l+',width='+w+',height=100');
	wd.resizeTo(w+12,100);
	for (i=0; i<h-100; i+=10) wd.resizeBy(0,10);
	wd.focus();
	return false;
}
