function AddToFaves()
{
	window.external.AddFavorite("http://www.nexium.ca","Nexium.ca");
}

function go(TD, flag)
{
	if (flag > 0) {	
		if (leave(flag) == true) {
			window.location=TD.getElementsByTagName("A")[0].href;
		}
	}
	else {
		window.location=TD.getElementsByTagName("A")[0].href;
	}
}

//for external sites, popup box, English
var xmsg = 'You are now leaving the AstraZeneca Canada site, a website maintained by AstraZeneca Canada Inc.\n\nThis link is provided for your convenience only. AstraZeneca Canada Inc. takes no responsibility for the content of any website maintained by any third party and makes no representation as to the accuracy or completeness of any information contained on this or any subsequent link.';

//for external sites, popup box, French
var xmsgf = 'Vous quittez maintenant www.astrazeneca.ca, le site Web d’AstraZeneca Canada Inc.\n\nCet hyperlien vise à vous faciliter la tâche seulement. AstraZeneca Canada Inc. n’assume aucune responsabilité pour ce qui est du contenu de tout site Web offert par un tiers et ne fait aucune déclaration pour ce qui est de l’exactitude ou de l’intégralité des renseignements contenus sur ce site ou d’autres sites.';

//for external sites, not popup box
function gotosite(strLan) {
	var msg = (strLan == 'en') ? "This link is provided for your convenience only. AstraZeneca Canada Inc. takes no responsibility for the content of any website maintained by any third party and makes no representation as to the accuracy or completeness of any information contained on this or any subsequent link."  : "Cet hyperlien vise à vous faciliter la tâche seulement. AstraZeneca Canada Inc. n’assume aucune responsabilité pour ce qui est du contenu de tout site Web offert par un tiers et ne fait aucune déclaration pour ce qui est de l’exactitude ou de l’intégralité des renseignements contenus sur ce site ou d’autres sites.";
	return confirm(msg);
}

var popupWin = null;
function open_Window(sURL, sName, iWidth, iHeight) {
	var WinOptions = "width=" + iWidth + ", height=" + iHeight + ",resizable=no,toolbar=no,addressbar=no,status=no,screenx=50,left=50,screenY=50,top=50"
	if (popupWin && !popupWin.closed) popupWin.close();	//close it if it's already open
	popupWin = window.open(sURL, sName, WinOptions, true)
//	popupWin.document.write(strHTML);
//	popupWin.document.close();
	popupWin.focus();
}

document.write('<script src="/flumistconsumer/common/staticlogo.js"></script>');

//Opening symptom tracker
var winDoc = null;
function openDocWin(url) {
//	if (winDoc && !winDoc.closed) winDoc.close();	//close it if it's already open
	winDoc = window.open(url,'_doc', 'width=504,height=550,left=10,top=10,resizable=no,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no,directories=no', true)
	winDoc.focus();
	return true;
}

function popUpLarge(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=600,left = 0,top = 0');");
}

function popUpLASR(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=1000,height=760,left = 0,top = 0');");
}
