﻿function AlertExternal(url){
	question=confirm("Would you like to visit: " + url + "\nThis link will take you out of a CMS website. If you agree, you can leave this website now. \n\nClick OK to continue to the selected link or click Cancel to close this message and return to the training.\n\nNote: These external links are not the responsibility of, or under the control of, the Centers for Medicare & Medicaid Services (CMS).  Some of these links may be to non-Federal government websites (.gov). CMS disclaims responsibility for the content and privacy policies of non-.gov websites. This link will open in a new window. Closing that window will return you to your place in this training.");
	if (question !="0"){
		window.open(url);
	}
}

function AlertOffsite(url){
	question=confirm("You are about to leave this training site and go to another CMS site. If you agree, you can leave this website now. \n\nClick OK to continue to the selected link or click Cancel to close this message and return to the training.\n\nNote: This link will open in a new window. Closing that window will return you to your place in this training.");
	if (question !="0"){
		window.open(url);
	}
}
