// JavaScript Document - Prevnar (HCP) - Pop-up Functions

// call sample - <a href="javascript:void(0);" onclick="popWin('name')">
function popWin(popID) {
	if(popID == "ushcp") {
		var popDoc = "country_notice_pop.aspx";
		var str = "height=" + 275 + ", innerHeight=" + 275 + ", width=" + 420 + ", innerWidth=" + 420;
	} else if(popID == "vaccinescheduler") {
		var popDoc = "vaccine/index.aspx";
		var str = "height=" + 480 + ", innerHeight=" + 480 + ", width=" + 640 + ", innerWidth=" + 640;
	}
	var contextWindow = window.open(popDoc, popID, str + ', resizable=0, scrollbars=0, toolbar=0, status=0');
	
	contextWindow.focus();
	return false;
}


function closeMe() {
	self.close();
}

function passthruPop( href ){
	// used to pop open pass thru in a separate window instead of letting browser handle in a tab, etc.
	// separate wrapper from NBW call in case ever need to interject something different here
	openNBW( href );
	return false;
}

function openNBW( href ){
	// used to open a new browser window (NBW). If not handled this way, it is up to browser to determine
	// if should be handled in a tab, etc.
	window.open( href, '_blank', 'toolbar=yes,location=yes,directories=yes,resizable=yes,scrollbars=yes' );
	return false;
}
