﻿//var prepExternalLinks = {
//	sLinkClass:"external",
//	sExitMsg:"You are about to leave Saphris.com. Merck does not review pr control the content at the site to which this hyperlink connects; therefore, this hyperlink does not constitute an endorsement by Merck of the content of any non-Merck site.",
//	oElementContainer: document.getElementById('mainCopy'),
//	init:function() {
//		if (!document.getElementById) {return;}
//		var arrLinks = DOMutils.getElementsByClassName( document.getElementById('mainCopy'), 'a', prepExternalLinks.sLinkClass);
//		iLinks = arrLinks.length;
//		if (iLinks == 0) return; 
//		for (var i=0; i<iLinks; i++) {
//			oLink = arrLinks[i];
//			oLink.onclick = function() {
//				if (! confirm(prepExternalLinks.sExitMsg) ){ return false; };
//			}
//		}
//	}
//};
//ELO.functionsToCallOnload.push("prepExternalLinks.init()");


     function jsOpenLink() {
         var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
       
         if (is_chrome == true) {
             return confirm("Thank you for visiting Saphris.com. \n\nMerck does not review or control the content at the site to which this hyperlink connects; therefore, this hyperlink does not constitute an endorsement by Merck of the content of any non-Merck site.\n\nDo you wish to continue?");
         }
         else {
             return confirm("Thank you for visiting Saphris.com. \n\nMerck does not review or control the content at the site to which this hyperlink connects; therefore,\nthis hyperlink does not constitute an endorsement by Merck of the content of any non-Merck site.\n\nDo you wish to continue?");
         }
     }

