
function openPopUp(linkURL) {
	window.open(linkURL,'popup','width=900,height=400')
}

function openPopUpDisclaimer(linkURL) {
	window.open(linkURL,'popup','width=920,height=600,scrollbars=yes')
}

function openScrollablePopUp(linkURL) {
	window.open(linkURL,'popup','width=920,height=400,scrollbars=yes')
}

function installPopups() {
	// check to see that the browser supports the getElementsByTagName method
	// if not, exit the loop 
	if (!document.getElementsByTagName) {
		return false; 
	} 
	
	var installCount = 0;

	// create an array of objects of each link in the document 
	var popuplinks = document.getElementsByTagName("a");
	// loop through each of these links (anchor tags) 	
	
	var className = isIE() ? "className" : "class";
	
	for (var i=0; i < popuplinks.length; i++) {	
		// if the link has a class of "popup"...	
		if (popuplinks[i].getAttribute(className) == "popup") {	
			// add an onclick event on the fly to pass the href attribute	
			// of the link to our second function, openPopUp 	
			popuplinks[i].onclick = function() {	
				openPopUp(this.getAttribute("href"));	
				return false; 	
			}
			installCount++; 	
		}
		else if (popuplinks[i].getAttribute(className) == "popupDisclaimer") {	
			// add an onclick event on the fly to pass the href attribute	
			// of the link to our second function, openPopUp 	
			popuplinks[i].onclick = function() {	
				openPopUpDisclaimer(this.getAttribute("href"));	
				return false; 	
			}
			installCount++; 	
		}
		else if (popuplinks[i].getAttribute(className) == "popupScrollable") {	
			// add an onclick event on the fly to pass the href attribute	
			// of the link to our second function, openPopUp 	
			popuplinks[i].onclick = function() {	
				openScrollablePopUp(this.getAttribute("href"));	
				return false; 	
			}
			installCount++; 	
		}
		
		
	} 
} 


