function mouseCoords(e) {
	var l = 0, t = 0;
	var leftPos = 20;			//Customize left offset
	var topPos = 150*(-1);		//Customize top offset
	var rightPos = 100*(-1);	//Customize right offset
	var divBox = document.getElementById("div_popupBox");
	divBox ? divBox.style.display='block' : divBox.style.display='none';
	
	if (!e) var e = window.event;		// Set your cursor coordinates
	if (e.clientX || e.clientY) {
		l = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
		t = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
	} else {
		l = e.pageX;
		t = e.pageY;
	}
	
	if (document.all) {
		var ieWidth = document.body.offsetWidth;
		var ieHeight = document.body.offsetHeight;
		var windowWidth = ieWidth;		//Get window width
		var windowHeight = ieHeight;	//Get window height
	} else {
		windowWidth = window.outerWidth;
		windowHeight = window.outerHeight;
	}
	
	windowWidth = (windowWidth/2) + (windowWidth/10);
	windowHeight = (windowHeight/2) + (windowHeight/10);
	if(l > windowWidth)	{
		divBox.style.left = l + divBox.offsetWidth*(-1) + rightPos+"px"
	} else	{
		divBox.style.left = l + leftPos+"px";
	}
	if(t > windowHeight) {
		divBox.style.top = t + divBox.offsetHeight*(-1)+"px"
	} else	{
		divBox.style.top = t + topPos+"px";
	}
	return true;
	
}

function displayHint(item_id)	{	//Show div popup for item
	var itemHint = document.getElementById(item_id)
	if(itemHint.style.display != 'block')
		itemHint.style.display = 'block';
	else
		itemHint.style.display = 'none';
}
