var d = document;

var remote = null;
function openWin(url, x, y) {

if (remote && remote.open && !remote.closed) {
		remote.close();
	}
	remote = window.open(url, 'LFI Website', 'width=' + x +',height=' + y + ',toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
}

function GetElTop(El) {
  /* from www.webreference.com */
	var TopPos = El.offsetTop;
  var ParEl = El.offsetParent;
  while (ParEl != null) {
    TopPos += ParEl.offsetTop;
    ParEl = ParEl.offsetParent;
  }
  return TopPos;
}

function GetElLeft(El) {
  /* from www.webreference.com */
	var LeftPos = parseInt(El.offsetLeft);
	var ParEl = El.offsetParent;
	while (ParEl != null) {
		LeftPos += parseInt(ParEl.offsetLeft);
		ParEl = ParEl.offsetParent;
	}
	return LeftPos;
}

