// popupWindow function
// This is where you set your specific height & width etc... for your popups.
function openPopup(url,popType) {
	if (popType==1)
		window.open(url, 'popupwindow', 'width=570,height=900,scrollbars,resizable'); 
	else
		window.open(url);
	return false;
	}

function setFocus(formName, field) {
	eval('document.'+formName+'.'+field+'.focus()');
	}

$(document).load(function(){
	
	// Popups and external links.
	$("a.popup").click(function(){
		var url = this.href;
		openPopup(url,1);
		return false;
		})
	
	$("a.external").click(function(){
		var url = this.href;
		openPopup(url,2);
		return false;
		})
	});