
			function addEvent(obj,type,func) {
				if (obj.addEventListener) { obj.addEventListener(type,func,false); return true; }
				if (obj.attachEvent) { return obj.attachEvent("on"+type,func); }
				return false;
			}

			function findEvent(e) {
				if (!e) var e = window.event;
				return e;
			}
			
			function findTarget(e) {
				if (e.target) t = e.target;
				else if (e.srcElement) t = e.srcElement;
				while (t.nodeType != 1) t = t.parentNode;
				return t;
			}

			addEvent(window,"load",popups_init);

			function popups_init() {
				links = document.getElementsByTagName("A");
				for(i=0;i<links.length;i++) {
					if (links[i].className == "popup") links[i].onclick = popups_clickfunc;
				}
			}

			function popups_clickfunc(e) {
				e = findEvent(e); t = findTarget(e);
				popups_popup(t);
				return false;
			}

			function popups_popup(URLStr) {
				var popUpWin=0; var width=600; var height=450; var left = 300; var top = 300;
				if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); }
				popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenx='+left+',screeny='+top+'');
				return false;
			}

