/* Author: Marc Linsangan */

window.onload = function() {
	var x = document.getElementsByTagName('a');
	for (var i=0;i<x.length;i++) {
		if (x[i].getAttribute('type') == 'popup') {
			x[i].onclick = function () {
				return pop(this.href)
			}
			x[i].title += ' (Popup)';
		}
	}
}

function pop(url) {
	newwindow=window.open(url,'name','top=100,left=200,height=600,width=800,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}
