function downloadMsg(filename) {		
	if(confirm('Thank you for visiting the malaria and general travel health website, sponsored by GlaxoSmithKline Travel Health. You are about to leave this website and enter a third party website. GlaxoSmithKline does not accept any responsibility for the content of this or any other external website. The content of this third-party site was correct at time of build.')) {
		var menuWin = window.open(filename,"external");
		menuWin.focus();				
	}			
}

function download(filename) {		
	if(navigator.appName.indexOf("Microsoft", 0) > -1) {
		var height = 400;
		var width = 640;
		var winProps = "resizable,status,menubar=yes,toolbar=yes,scrollbars=yes,height="+height+",width="+width;
		winProps = winProps.substring(0,winProps.length);
		var menuWin = window.open(filename,"download",winProps);
		menuWin.focus();				
	} else {
		window.location = filename;
	}
}

function createPopup(cUrl,cName,width,height) {
	// Create a pop-up window
	var xWin;

	if(isNaN(height)) {
		height=420;
	}

	if(isNaN(width)) {
		width=540;
	}
	cFeatures = "resizable,status=no,menubar=no,toolbar=no,scrollbars=yes,height="+height+",width="+width;
			
	xWin = window.open(cUrl,cName,cFeatures);
	xWin.focus();
}
