// JavaScript Document
var posx = 0;
var posy = 0;
document.onmousemove = doSomething;
function doSomething(e)
{
	if (!e) var e = window.event;
	if (e.pageX || e.pageY)
	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY)
	{
		posx = e.clientX + document.body.scrollLeft;
		posy = e.clientY + document.body.scrollTop;
	}
}
function MM_openBrWindow(theURL,winName,features, relPos) { //v2.5 Chris
// relPos: settalo a 1 per posizionare window relativo a pos mouse
	if (relPos=='') { 
		doSomething;
		posaltezza=features.lastIndexOf('=');
		altezza=features.substring(posaltezza+1);
		posy2=posy;
		if (posy-altezza>=0) posy2=posy-altezza;
		features=features + ",left=" + posx + ",top=" + (posy2);
	}
	else features=features + ",left=10, top=10";
	//alert (features);
  nwindow=window.open(theURL,winName,features);
	nwindow.focus();
}
