		function showtip (id) {
			if (document.all[''+id+'']) {
				var sw = document.body.clientWidth;
				var sh = document.body.clientHeight;
				var dw = document.all[''+id+''].clientWidth;
				var dh = document.all[''+id+''].clientHeight;
				var cx = self.event.clientX;
				var cy = self.event.clientY;

/*alert ("document.body.scrollTop "+document.body.scrollTop+"\ndocument.body.scrollLeft "+document.body.scrollLeft+"\nbody.clientWidth "+sw+"\nbody.clientHeight "+sh+"\ndocument.all.clientWidth "+dw+"\ndocument.all.clientHeight "+dh+"\nself.event.clientX "+cx+"\nself.event.clientY "+cy);*/
				if (sw < cx+dw+20) cx=sw-dw-20;
				if (sh < cy+dh+20) cy=sh-dh-20;
				document.all[''+id+''].style.top=cy+document.body.scrollTop+15;
				document.all[''+id+''].style.left=cx+document.body.scrollLeft+10;
				document.all[''+id+''].style.visibility='visible';
			}
		}
		function hidetip (v) {
				if (document.layers) document.layers[''+id+''].visibility = "hide";
				else if (document.all) document.all[''+id+''].style.visibility = "hidden";
				else if (document.getElementById) document.getElementById(''+id+'').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;
		}

/***********function - var 2***************/

function toggleDiv(id,flagit) {

/*****define clientWidth and clientHeight*******/
var myWidth = 0;
var myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
sw2 = window.innerWidth;
sh2 = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
sw2 = document.documentElement.clientWidth;
sh2 = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
sw2 = document.body.clientWidth;
sh2 = document.body.clientHeight;
  }

/*****define scrollLeft and scrollTop*******/
if (typeof(window.pageXOffset) == 'number') 
{
//Netscape compliant
st2 = window.pageXOffset;
sl2 = window.pageYOffset;
} 
else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) 
{
//DOM compliant
st2 = document.body.scrollLeft;
sl2 = document.body.scrollTop;
} 
else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) 
{
//IE6 standards compliant mode
st2 = document.documentElement.scrollLeft;
sl2 = document.documentElement.scrollTop;
}


/******************/
	var dw2 = document.all(''+id+'').clientWidth;
	var dh2 = document.all(''+id+'').clientHeight;
	var cx2 = self.event.clientX;
	var cy2 = self.event.clientY;

/*alert ("body.clientWidth "+sw2+"\nbody.clientHeight "+sh2+"\ndocument.all.clientWidth "+dw2+"\ndocument.all.clientHeight "+dh2+"\nself.event.clientX "+cx2+"\nself.event.clientY "+cy2+"\nst2 "+st2+"\nsl2 "+sl2);*/
	if (sw2 < cx2+dw2+20) cx2=sw2-dw2-20;
	if (sh2 < cy2+dh2+20) cy2=sh2-dh2-20;
	cy2=cy2+sl2+15;
	cx2=cx2+st2+10;


if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show";
else if (document.all) {
	document.all[''+id+''].style.visibility = "visible";
	document.all(''+id+'').style.top=cy2;
	document.all(''+id+'').style.left=cx2;
	}
else if (document.getElementById) {
	document.getElementById(''+id+'').style.top=cy2;
	document.getElementById(''+id+'').style.left=cx2;
	document.getElementById(''+id+'').style.visibility = "visible";
	}
}

else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide";
else if (document.all) document.all[''+id+''].style.visibility = "hidden";
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden";
}
}