function getPageCoords (element) 
	{ // thanks to 'Martin Honnen' for this function
	var coords = {x: 0, y: 0};
	while (element) 
		{
		coords.x += element.offsetLeft;
		coords.y += element.offsetTop;
		element = element.offsetParent;
		}
	return coords;
	} 

