// JavaScript Document

// Include the following JS code right above the </body> tag

function queryString(url,field) {
    var a = url;
	var q = a.split("&");
	for(var x=0;x<q.length;x++) {
		var z = q[x].split("=");
		if(z[0] == field) {
			return(z[1]);
		}
	}
}
function loadPopUpLink() {
    var a = document.getElementsByTagName("a");
    for(var i=0;i<a.length;i++) {
        if(a[i].className=="popup") {
            a[i].onclick= function() {
				var h = this.getAttribute("href");
				window.open(h,null,"height="+queryString(h,'height')+",width="+queryString(h,'width')+",scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no"); return false;
			}
        }
    }
}


// Add the "popup" class name to your links and add the querystring parameters to set the width and height of your pop up window
//<a href="imageLink.asp?popup=true&width=500&height=200" class="popup"><img src="foo.jpg" width="100" height="100" /></a>

