
function init() {
	var a = document.getElementsByTagName("a");

	for (var i=0;i<a.length;i++) {
		var x = a[i].href;
		var y = x.substring(x.lastIndexOf('/')+1);
//		a[i].href = y + ".html";
		if (y == "vpm" || y == "maintenance-contract") {
			a[i].onclick = function() {
				popUp(this.href);
				return false;
			}
		}
	}
}

function popUp(loc) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(loc, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=500');");
}

window.onload = init;
