function popUp (URL, scr, res, w, h) {
  day = new Date();
  id = day.getTime();
  prop = "scrollbars=" + scr + ", resizable=" + res + ", width=" + w + ", height=" + h + ", left=0, top=0";
  eval("page" + id + " = window.open(URL, '" + id + "', '" + prop + "');");
  }

function relPopUp () {
  aEl = document.getElementsByTagName ("a");
  for (i = 0; i < aEl.length; i++) {
	rel = aEl[i].rel;
	relB = rel.split ('[');
	tipo = relB[0];
	if (tipo == "popup") {
		cars = relB[1].slice (0, - 1);
		cars = cars.split (',');
		scr = (cars[0] != 0) ? cars[0] : 0;
		res = (cars[1] != 0) ? cars[1] : 0;
		w = (cars[2] != 0) ? cars[2] : 640;
		h = (cars[3] != 0) ? cars[3] : 480;
		URL = aEl[i].href;
		aEl[i].href = "javascript:popUp('" + URL + "'," + scr + "," + res + "," + w + "," + h + ")";
		}
	}
}

function blor () {
  aEl = document.getElementsByTagName ("a");
  for (i = 0; i < aEl.length; i++) aEl[i].onfocus = function () { if (this.blur) this.blur () };
}

window.onload = function startList () {
	relPopUp ();
	blor ();
	}
