
var popup = {
		init:function() {
				// open all links with class 'newWin' in popup window
				var x = document.getElementsByTagName('a');

				for (var i = 0; i < x.length; i++) {
						if (x[i].className == 'newWin') {
								x[i].onclick = function () {
										return popup.newWin(this.href);
								}

								x[i].title += ' ';
						}
				}
		},

		close:function() {

		},

		// popup function
		newWin:function(url) {
				newWindow = window.open(url, 'newwin', 'height=768,width=1024,scrollbars=yes');
				if (window.focus) {
						newWindow.focus();
				}

				return false;
		}
}

window.onload = popup.init;