window.onload = init;

function init() {
	disableAnchors();
}


function disableAnchors() {
	var anchors = document.getElementsByTagName('A');
	for (i = 0; i < anchors.length; i++) {
		if (anchors[i].href == document.location) {
			anchors[i].onclick = function() {
				return false
			}
		}
	}
}

function NewWindow(url, windowName, w, h, scroll, resize) {
	var winl=(screen.width - w)/2;
	var wint=(screen.height - h)/2;
	winprops='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize+'';
	win=window.open(url, windowName, winprops);
	if (parseInt(navigator.appVersion)>=4) {
		win.window.focus()
	}
}

