add: if (newY < screen.availTop) newY = screen.availTop + 20; if ((newY + window.outerHeight) > (screen.availTop + screen.availHeight)) newY = (screen.availTop + screen.availHeight) - window.outerHeight - 60;  window.moveTo( newX, newY ); 
context: function moveToAlertPosition(){	var xOffset = opener.outerWidth/2 - window.outerWidth/2;	var yOffset = (opener.outerHeight *2)/10;		xOffset  = xOffset> 0 ? xOffset : 0;	if ((opener.screenX + xOffset + window.outerWidth) > screen.availWidth)        xOffset = screen.availWidth - window.outerWidth - opener.screenX;    if((opener.screenY + yOffset + window.outerHeight) > screen.availHeight)            yOffset = screen.availHeight - window.outerHeight - opener.screenY;    xOffset = ( xOffset > 0 ) ? xOffset : 0;    yOffset = ( yOffset > 0 ) ? yOffset : 0;	window.moveTo( opener.screenX + xOffset, opener.screenY + yOffset );}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/22179ab725b65f04e53ea369a32174677c978880/dialogOverlay.js/clean/xpfe/global/resources/content/dialogOverlay.js