// JavaScript Document

	

var oWin = null;
var POPUP_URL = '/pages/emailFriend.aspx?QueryString=';

function openPopup(sQueryString){
	popup(sQueryString);
}
function popup(sParam){
	if(POPUP_URL == null){alert('no popup url defined');}
	if(sParam == null){sParam = '';}
	
	if(oWin==null || typeof(oWin)=="undefined"){
		launchWindow(sParam);
	}else{
		if(oWin.closed){
			launchWindow(sParam);
		}else{
			oWin.focus();
			oWin.location.href=POPUP_URL+sParam;
		}
	}
}

function launchWindow(sParam){
	oWin = window.open(POPUP_URL+sParam, 'popupWindow', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=500');
	if (oWin==null || typeof(oWin)=="undefined"){
		alert("It seems that you have a popup blocker enabled.  Please disable it whilst you click this button.");
	}else{
		oWin.focus();
	}
}

