function initPopupLinks(){
	var linkContainer = document.getElementById("notices");
	if (linkContainer!=null){
		var links = linkContainer.getElementsByTagName("a");
		if (links!=null){
			for (var i = 0; i < links.length; i++){
				if (links[i].target!="_self"){
					links[i].onclick = popUp;
				}
			}
		}
	}
	return true;
}

// creates a popup window
function popUp(){
	var state = new Boolean();
	
	//if(!document.form1.openWindow.checked) {
	if(!document.getElementById("openWindow").checked) {
		popUp = window.open(this.href);
		if (window.focus) {popUp.focus()}
		state = false;
	} 
	else {
		this.target = "_self";
		state = true;
	}
	return state;
}
