rem: posx = e.clientX - xoffset + (ie5? document.body.scrollLeft : window.pageXOffset); posy = e.clientY - yoffset + (ie5? document.body.scrollTop : window.pageYOffset); 
add: var el = document.documentElement; posx = e.clientX - xoffset + (ie5? el.scrollLeft : window.pageXOffset); posy = e.clientY - yoffset + (ie5? el.scrollTop : window.pageYOffset); 
context: function contextMenu_show(menuId,e){	var menuobj=document.getElementById(menuId)	var posx = 0;	var posy = 0;	var yoffset = 0;	var xoffset = 0;var firedobj = ie5?e.srcElement:e.target;    while (firedobj!=null && firedobj.tagName!="HTML"){                //this is a hack, need to revisit                if (firedobj.tagName == "DIV") {                xoffset+=firedobj.offsetLeft;                yoffset+=firedobj.offsetTop;}            firedobj=firedobj.offsetParent;   }		posx = e.clientX - xoffset + (ie5? document.body.scrollLeft : window.pageXOffset);		posy = e.clientY - yoffset + (ie5? document.body.scrollTop : window.pageYOffset);	menuobj.style.left=posx;	menuobj.style.top=posy;      menuobj.style.visibility="visible"	return false}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/9549d37033531f7d28b1ae6d8b7d25a2652c05f8/contextMenu.js/buggy/www/extras/contextMenu/contextMenu.js