$(document).ready(function() {

    $(".healthcare-professional").click(function(event) {

        var answer = confirm("The information provided in this section is intended expressly for health care professionals in the United States. Click 'OK' to enter if you are a US health care professional.");
        if (answer == true) {
            return true;
        }
        else {

            event.preventDefault();

        }

    });

	$(".outside-link").click(function(event) {

        var answer = confirm("You are now leaving Nexavar.com. This link to a third-party site is provided as a courtesy; Onyx-Bayer is not responsible for third-party site content.\n\nWould you like to leave Nexavar.com?");
        if (answer == true) {
            return true;
        }
        else {

            event.preventDefault();

        }

    });

	$(".medical-information").click(function(event) {

        var answer = confirm("You are now leaving the promotional website Nexavar.com and entering the medical information website NexavarMedicalInformation.com \n\nPlease click OK to continue");
        if (answer == true) {
            return true;
        }
        else {

            event.preventDefault();

        }

    });



});

function healthcarelink()
{

		var answer = confirm("The information provided in this section is intended expressly for health care professionals in the United States. Click 'OK' to enter if you are a US health care professional.");
        if (answer == true) {


            window.location = "/scripts/pages/en/hcp/";
				
        }
        else {

        


        }


}
