

function findPopUpAnchors() {
    var popUpAnchors = getElementsByClass("popUp", "", "a");
    var dimensions = [];
    for(var i = 0; popUpAnchors.length > i; i++) {
        popUpAnchors[i].onclick = function() {
            dimensions = this.rel.split(",");
            launchPopUp(this.href, dimensions[0], dimensions[1], this.title);
            return false;
        };
    }
}

function launchPopUp(url, width, height, title) {
    var params = "scrollbars,location=0,toolbar=0,menubar=0,titlebar=0,resizable=1,status=1,height=" + height + ",width=" + width;
	var newWindow = window.open(url,"whatsThis",params);
	if(newWindow) {
	    newWindow.document.title = title;
	    newWindow.focus();
	    newWindow = null;
	}        
}
