function doPopUps() {
if (!document.getElementsByTagName) return false;
var links = document.getElementsByTagName("a");
for (var i=0; i < links.length; i++) {
if (links[i].className && links[i].className.match("popUp")) {
links[i].setAttribute("title", "This link will open in a new window");
}
// attributes if single page only, e.g. end session - named 'PopUp1'
if (links[i].className && (' ' + links[i].className + ' ').indexOf(' popUp1 ') != -1) {
links[i].onclick = function() {
window.open(this.href,'PopUp1','menubar=yes,resizable=yes,status=yes,width=480,height=320');
return false;
}
} 
// attributes for multiple page Help popup - named 'PopUpHelp'
else if (links[i].className && (' ' + links[i].className + ' ').indexOf(' popUpHelp ') != -1) {
links[i].onclick = function() {
window.open(this.href,'PopUpHelp','toolbar=yes,menubar=yes,resizable=yes,status=yes,scrollbars=yes,width=500,height=480');
return false;
}
} 
// attributes for any other multiple page popup - named 'PopUpMulti'
else if (links[i].className && (' ' + links[i].className + ' ').indexOf(' popUpMulti ') != -1) {
links[i].onclick = function() {
	window.open(this.href,'PopUpMulti','toolbar=yes,menubar=yes,resizable=yes,status=yes,scrollbars=yes,width=785,height=480');
return false;
}
}
}
}
window.onload = doPopUps;