function Highlight(imgobj, xpos, ypos)
{
	el = imgobj;
	curxpos = 0;
	curypos = 0;
	
	while (el != null)
	{
		curxpos += el.offsetLeft;
		curypos += el.offsetTop;
		el = el.parentElement;
	}

	hl = document.all.highlighter;
	hlwidth = hl.offsetWidth;
	hlheight = hl.offsetHeight;
	
	hl.style.left = curxpos + xpos - (hlwidth / 2);
	hl.style.top = curypos + ypos - (hlheight / 2);
	hl.style.visibility = "";
}


var mapwindow = null;
var hlstring = null;

function DisplayMap(url, name, winwidth, winheight, xpos, ypos, scroll)
{
	LeftPosition = (screen.width) ? (screen.width - winwidth - 50) : 0;
	TopPosition = (screen.height) ? (screen.height - winheight) / 2 : 0;
	settings = 'height=' + winheight + ',width=' + winwidth + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable';
	
	hlstring = "Highlight(document.all.mapimage, " + xpos + ", " + ypos + ");";
	mapwindow = window.open(url, name, settings);
}


function processhighlight()
{
	v = null;
	
	if (window.opener)
	{
		v = window.opener.hlstring;
		window.opener.hlstring = "";
	}
	else if(top.frames.clmlist)
	{
		v = top.frames.clmlist.hlstring;
		top.frames.clmlist.hlstring = "";
	}
	
	if (v != null) eval(v);
}



