Looking After The Future

function ShowErrMsg(qid,prevent,chkid = ”,chkbox = ”) {
if(chkbox == “checkbox” && !(jQuery(“#”+chkid+”:checked”).length)) {
jQuery(“.questerrmsg_”+qid).remove();
} else if(!(jQuery(“.questerrmsg_”+qid).length)) {
if(prevent == 1) {
PreventMsg = “Error: “;
} else {
PreventMsg = “Warning: “;
}
errmsg = ‘

‘+PreventMsg+jQuery(“.diverrmsg_”+qid).html()+’

‘;
jQuery(“#optiondivid_”+qid).append(errmsg);
}
}
function HideErrMsg(qid) {
jQuery(“.questerrmsg_”+qid).remove();
}
function ShowAdditionalQuestion(qid,additionqid,chkid = ”,chkbox = ”) {
if(chkbox == “checkbox” && !(jQuery(“#”+chkid+”:checked”).length)) {
jQuery(“.additionalquest_”+qid).remove();
} else if(!(jQuery(“.additionalquest_”+qid).length)) {
jQuery.ajax({
method: “POST”,
url: “https://sandbox.innox.co.uk/question”,
data: { questionid: additionqid,parentid:qid }
}).done(function( resp ) {
jQuery(“#optiondivid_”+qid).after(resp);
});
}
}
function HideAdditionalQuestion(qid,additionqid) {
jQuery(“.additionalquest_”+qid).remove();
}
function ConfirmRedirectToD4U(RedirectUrl) {
window.location = RedirectUrl;
}
function ShowHideOpt(id,dimg,simg) {
if(jQuery(“#”+id).css(“display”) == “block”) {
jQuery(“#”+id).hide();
if(id == “support_box1”)
jQuery(“#support_box1_2”).hide();
if(dimg != “”) {
jQuery(“#img_”+id).attr(“src”,dimg);
}
} else {
jQuery(“#”+id).show();
if(id == “support_box1”)
jQuery(“#support_box1_2”).show();
if(dimg != “”) {
jQuery(“#img_”+id).attr(“src”,simg);
}
}
}
function OpenChatBox(id) {
var is_safari = navigator.userAgent.indexOf(“Safari”) > -1;
if(is_safari) {
if(jQuery(“div#lc_chat_layout”).hasClass(“lc-collapsed”)) {
//jQuery(“div#lc_chat_layout”).css(“height”,”395px”);
jQuery(“div#lc_chat_layout”).removeClass(“lc-collapsed”);
jQuery(“div#lc_chat_layout”).addClass(“lc-expanded”);
} else {
//jQuery(“div#lc_chat_layout”).css(“height”,”43px”);
jQuery(“div#lc_chat_layout”).removeClass(“lc-expanded”);
jQuery(“div#lc_chat_layout”).addClass(“lc-collapsed”);
}
} else {
jQuery(“#lc_chat_header”).click();
}
}
jQuery(“.myCustomOption8 input:text”).val(“Select From Following:”);
/// added 14-7-16 by BC
/// If pharmacy questions and checks if in the UK, if not hides the cart button
jQuery(function($){
// we have added the class ukcheck the uk question div
//$(‘.ukcheck’).css(‘background-color’, ‘blue’);
if ($(‘.ukcheck’).length) { // check is div ukcheck is present if not leave alone
//alert(‘Found with Length’);
var optionID = $(‘.radio’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
//alert(optionID);
var yesId = “options_” + optionID + “_1”;
var noId = “options_” + optionID + “_2”;
//alert(yesId);
var ukNo = document.getElementById(yesId); // id buttons for uk check
var ukYes = document.getElementById(noId); // id buttons for uk check
ukNo.onclick = function () {
$(‘.uk-warning’).remove();
$(‘.option’).hide();
$(‘.ukcheck’).show();
$(‘.product-options-bottom’).hide();
$(‘.ukcheck’).append(“

We cannot supply any medicines outside the UK without supply of a prescription from a UK or EU registered doctor.

“);
}
ukYes.onclick = function () {
$(‘.option’).show();
$(‘.option.HideMeInit’).hide();
if($(‘.myCustomOption25_r_2’).is(‘:checked’))
$(‘.option.HideMeInit’).show();
$(‘.hide_age’).hide();
$(‘.ukcheck’).show();
$(‘.product-options-bottom’).show();
$(‘.uk-warning’).hide();
}
}// ends check id ukcheck class is present
if ($(‘.myCustomOption1’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOption1 input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOption1 = “options_” + optionID + “_1”;
var noIdmyCustomOption1 = “options_” + optionID + “_2”;
var ukYesmyCustomOption1 = document.getElementById(yesIdmyCustomOption1); // id buttons for uk check
var ukNomyCustomOption1 = document.getElementById(noIdmyCustomOption1); // id buttons for uk check
ukNomyCustomOption1.onclick = function () {
$(‘.myCustomOption1_error’).remove();
}
ukYesmyCustomOption1.onclick = function () {
$(‘.myCustomOption1_error’).remove();
$(‘.myCustomOption1’).append(“

Unfortunately, we cannot supply you with this treatment, Please consult your GP.

“);
}
}
if ($(‘.myCustomOption2’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOption2 input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOption2 = “options_” + optionID + “_2”;
var noIdmyCustomOption2 = “options_” + optionID + “_1”;
var ukYesmyCustomOption2 = document.getElementById(yesIdmyCustomOption2); // id buttons for uk check
var ukNomyCustomOption2 = document.getElementById(noIdmyCustomOption2); // id buttons for uk check
ukNomyCustomOption2.onclick = function () {
$(‘.myCustomOption2_error’).remove();
$(‘.myCustomOption2’).append(“

Unfortunately, we cannot supply you with this treatment. Please consult your GP.

“);
}
ukYesmyCustomOption2.onclick = function () {
$(‘.myCustomOption2_error’).remove();
}
}
if ($(‘.myCustomOption3’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOption3 input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOption3 = “options_” + optionID + “_1”;
var noIdmyCustomOption3 = “options_” + optionID + “_2”;
var ukYesmyCustomOption3 = document.getElementById(yesIdmyCustomOption3); // id buttons for uk check
var ukNomyCustomOption3 = document.getElementById(noIdmyCustomOption3); // id buttons for uk check
ukNomyCustomOption3.onclick = function () {
$(‘.myCustomOption3_error’).remove();
$(‘.myCustomOption3’).append(“

Please confirm that you/the intended user agree.

“);
}
ukYesmyCustomOption3.onclick = function () {
$(‘.myCustomOption3_error’).remove();
}
}
if ($(‘.myCustomOption4’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOption4 input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOption4 = “options_” + optionID + “_1”;
var noIdmyCustomOption4 = “options_” + optionID + “_2”;
var ukYesmyCustomOption4 = document.getElementById(yesIdmyCustomOption4); // id buttons for uk check
var ukNomyCustomOption4 = document.getElementById(noIdmyCustomOption4); // id buttons for uk check
ukNomyCustomOption4.onclick = function () {
$(‘.myCustomOption4_error’).remove();
$(‘.myCustomOption4’).append(“

The symptoms listed could be indicative of a more serious illness and should be investigated by your GP at your earliest convenience.

“);
}
ukYesmyCustomOption4.onclick = function () {
$(‘.myCustomOption4_error’).remove();
}
}
if ($(‘.myCustomOption10’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOption10 input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOption10 = “options_” + optionID + “_1”;
var noIdmyCustomOption10 = “options_” + optionID + “_2”;
var ukYesmyCustomOption10 = document.getElementById(yesIdmyCustomOption10); // id buttons for uk check
var ukNomyCustomOption10 = document.getElementById(noIdmyCustomOption10); // id buttons for uk check
ukNomyCustomOption10.onclick = function () {
$(‘.myCustomOption10_error’).remove();
$(‘.myCustomOption10’).append(“

The symptoms listed above can indicate bacterial infection rather than fungal or can be indicative of underlying immune system issues. Please book to see your GP at your earliest convenience. Click here to visit NHS CHOICES to see alternative medical services in your area.

“);
}
ukYesmyCustomOption10.onclick = function () {
$(‘.myCustomOption10_error’).remove();
}
}
jQuery(‘.myCustomOption12_r_1’).click(function(){
jQuery(‘.myCustomOption12_error’).remove();
jQuery(‘.myCustomOption12’).append(“

If you have not consulted your GP/diabetic nurse about cases of thrush, please do so before placing an order for treatment online.

“);
});
jQuery(‘.myCustomOption12_r_2’).click(function(){
jQuery(‘.myCustomOption12_error’).remove();
});
jQuery(‘.myCustomOption13_r_2’).click(function(){
jQuery(‘.myCustomOption13_error’).remove();
jQuery(‘.myCustomOption13’).append(“

Infections affecting more than 2 toenails may need enhanced treatments and may not improve with Curanail alone, please book to see your own GP or Podiatrist for further investigation and treatment.

“);
});
jQuery(‘.myCustomOption13_r_1’).click(function(){
jQuery(‘.myCustomOption13_error’).remove();
});
jQuery(‘.myCustomOption14_r_2’).click(function(){
jQuery(‘.myCustomOption14_error’).remove();
jQuery(‘.myCustomOption14’).append(“

Conditions listed above need careful monitoring and fungal nail infections can indicate poor control of the disorder, please book to see your GP or diabetic nurse as soon as possible.

“);
});
jQuery(‘.myCustomOption14_r_1’).click(function(){
jQuery(‘.myCustomOption14_error’).remove();
});
jQuery(‘.myCustomOption15_r_2’).click(function(){
jQuery(‘.myCustomOption15_error’).remove();
jQuery(‘.myCustomOption15’).append(“

Please book to see GP for treatment as this product is not proven to be safe during pregnancy or breast-feeding.

“);
});
jQuery(‘.myCustomOption15_r_1’).click(function(){
jQuery(‘.myCustomOption15_error’).remove();
});
jQuery(‘.myCustomOption16_r_1’).click(function(){
jQuery(‘.myCustomOption16_error’).remove();
jQuery(‘.myCustomOption16’).append(“

If the conditions above are not agreed to or met, then this treatment is not suitable.

“);
});
jQuery(‘.myCustomOption16_r_2’).click(function(){
jQuery(‘.myCustomOption16_error’).remove();
});
jQuery(‘.myCustomOption22_r_1’).click(function(){
jQuery(‘.myCustomOption22_error’).remove();
jQuery(‘.myCustomOption22’).append(“

If the conditions above are not agreed to or met, then this treatment is not suitable.

“);
});
jQuery(‘.myCustomOption22_r_2’).click(function(){
jQuery(‘.myCustomOption22_error’).remove();
});
jQuery(“.myCustomOption17 input:text”).focusout(function(){
if(this.value <= 27) {
jQuery('.myCustomOption17_error').remove();
jQuery('.myCustomOption17').append("

You don’t meet the requirements to take Alli as they are not considered overweight.

“);
} else {
jQuery(‘.myCustomOption17_error’).remove();
}
if(jQuery(‘.custom_warning’).length) {
$(‘.spinner-wrapper’).hide();
$(‘#product-addtocart-button’).hide();
$(‘div.add-to-cart-buttons’).hide();
$(‘div.qty_err_msg’).hide();
} else {
$(‘.spinner-wrapper’).show();
$(‘#product-addtocart-button’).show();
$(‘div.add-to-cart-buttons’).show();
}
});
jQuery(“.myCustomOption26_sel”).change(function(){
selectedvals = jQuery(‘.myCustomOption26_sel option:selected’).text().trim();
if(selectedvals == “A BMI below 18.5” || selectedvals == “A BMI of 18.5 to 24.9”) {
jQuery(‘.myCustomOption26_error’).remove();
jQuery(‘.myCustomOption26’).append(“

We cannot supply you with this product as the answer provided indicates you are of a healthy weight.

“);
} else if(selectedvals == “A BMI of 24.9 to 28”) {
jQuery(‘.myCustomOption26_error’).remove();
jQuery(‘.myCustomOption26’).append(“

Your BMI shows that you are classed as slightly overweight and an altered diet would be more suitable than beginning medication such as Alli.

“);
} else {
jQuery(‘.myCustomOption26_error’).remove();
}
});
jQuery(‘.myCustomOption18_r_2’).click(function(){
jQuery(‘.myCustomOption18_error’).remove();
jQuery(‘.myCustomOption18’).append(“

This medication is not advised for use during pregnancy or breast-feeding. Please speak to your GP regarding treatment.

“);
});
jQuery(‘.myCustomOption18_r_1’).click(function(){
jQuery(‘.myCustomOption18_error’).remove();
});
jQuery(‘.myCustomOption19_r_2’).click(function(){
jQuery(‘.myCustomOption19_error’).remove();
jQuery(‘.myCustomOption19’).append(“

If you are taking any of the medicines listed then it is not suitable for you to use. Please book to see your GP for alternative weight loss treatments. For alternative advice on weight loss click here.

“);
});
jQuery(‘.myCustomOption19_r_1’).click(function(){
jQuery(‘.myCustomOption19_error’).remove();
});
jQuery(‘.myCustomOption20_r_2’).click(function(){
jQuery(‘.myCustomOption20_error’).remove();
jQuery(‘.myCustomOption20’).append(“

This medication acts during the absorption of fat from the gut. Absorption problems could complicate this process, please book to see your GP regarding weight loss treatment or alternatively click here for more info. (Link to NHS Choices)

“);
});
jQuery(‘.myCustomOption20_r_1’).click(function(){
jQuery(‘.myCustomOption20_error’).remove();
});
jQuery(‘.myCustomOption21_r_1’).click(function(){
jQuery(‘.myCustomOption21_error’).remove();
jQuery(‘.myCustomOption21’).append(“

If the conditions above are not agreed to or met, then this treatment is not suitable.

“);
});
jQuery(‘.myCustomOption21_r_2’).click(function(){
jQuery(‘.myCustomOption21_error’).remove();
});
jQuery(‘.myCustomOption23_r_1’).click(function(){
jQuery(‘.myCustomOption23_error’).remove();
jQuery(‘.myCustomOption23’).append(“

Regaine may still be supplied. Be advised that there is no clinic evidence supporting using Regaine for treatment of hair loss only in the temple area.

“);
});
jQuery(‘.myCustomOption23_r_2’).click(function(){
jQuery(‘.myCustomOption23_error’).remove();
});
jQuery(‘.myCustomOption24_r_1’).click(function(){
jQuery(‘.myCustomOption24_error’).remove();
jQuery(‘.myCustomOption24’).append(“

Unfortunately, we are unable to supply you with this treatment. If you require emergency contraception urgently, please visit the NHS Choices website to find a clinic near you.

“);
});
jQuery(‘.myCustomOption24_r_2’).click(function(){
jQuery(‘.myCustomOption24_error’).remove();
});
jQuery(‘.myCustomOptionImages_r_2’).click(function(){
jQuery(‘.myCustomOptionImages_error’).remove();
jQuery(‘.myCustomOptionImages’).append(“

The symptoms you have indicated show extensive fungal infection and damage to the nails, we would advise you to book in to see your GP or Podiatrist as soon as possible.

“);
});
jQuery(‘.myCustomOptionImages_r_3’).click(function(){
jQuery(‘.myCustomOptionImages_error’).remove();
jQuery(‘.myCustomOptionImages’).append(“

The symptoms you have indicated show extensive fungal infection and damage to the nails, we would advise you to book in to see your GP or Podiatrist as soon as possible.

“);
});
jQuery(‘.myCustomOptionImages_r_1’).click(function(){
jQuery(‘.myCustomOptionImages_error’).remove();
});
if ($(‘.myCustomOptionTerms’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOptionTerms input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOptionTerms = “options_” + optionID + “_1”;
var noIdmyCustomOptionTerms = “options_” + optionID + “_2”;
var ukYesmyCustomOptionTerms = document.getElementById(yesIdmyCustomOptionTerms); // id buttons for uk check
var ukNomyCustomOptionTerms = document.getElementById(noIdmyCustomOptionTerms); // id buttons for uk check
ukNomyCustomOptionTerms.onclick = function () {
$(‘.myCustomOptionTerms_error’).remove();
var comm_err = “If the conditions above are not agreed to or met, then this treatment is not suitable.”;
if(jQuery(this).parents(“div.option”).hasClass(“CustomErr8”)) {
var comm_err = “Unfortunately, we are unable to supply this product. Please consult your GP immediately.”;
}
$(‘.myCustomOptionTerms’).append(“

“+comm_err+”

“);
}
ukYesmyCustomOptionTerms.onclick = function () {
$(‘.myCustomOptionTerms_error’).remove();
}
}
NoScore5 = 0;
if ($(‘.myCustomOption5’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOption5 input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOption5 = “options_” + optionID + “_1”;
var noIdmyCustomOption5 = “options_” + optionID + “_2”;
var ukYesmyCustomOption5 = document.getElementById(yesIdmyCustomOption5); // id buttons for uk check
var ukNomyCustomOption5 = document.getElementById(noIdmyCustomOption5); // id buttons for uk check
ukNomyCustomOption5.onclick = function () {
NoScore5 = 1;
}
ukYesmyCustomOption5.onclick = function () {
NoScore5 = 0;
}
}
NoScore6 = 0;
if ($(‘.myCustomOption6’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOption6 input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOption6 = “options_” + optionID + “_1”;
var noIdmyCustomOption6 = “options_” + optionID + “_2”;
var ukYesmyCustomOption6 = document.getElementById(yesIdmyCustomOption6); // id buttons for uk check
var ukNomyCustomOption6 = document.getElementById(noIdmyCustomOption6); // id buttons for uk check
ukNomyCustomOption6.onclick = function () {
NoScore6 = 1;
}
ukYesmyCustomOption6.onclick = function () {
NoScore6 = 0;
}
}
NoScore7 = 0;
if ($(‘.myCustomOption7’).length) { // check is div ukcheck is present if not leave alone
var optionID = $(‘.myCustomOption7 input[type=radio]’).attr(‘name’)
optionID = optionID.match(/d+/)[0];
var yesIdmyCustomOption7 = “options_” + optionID + “_1”;
var noIdmyCustomOption7 = “options_” + optionID + “_2”;
var ukYesmyCustomOption7 = document.getElementById(yesIdmyCustomOption7); // id buttons for uk check
var ukNomyCustomOption7 = document.getElementById(noIdmyCustomOption7); // id buttons for uk check
ukNomyCustomOption7.onclick = function () {
NoScore7 = 1;
}
ukYesmyCustomOption7.onclick = function () {
NoScore7 = 0;
}
}
jQuery(“#options_11991_2”).click(function(){
$(‘.options_11991_error’).remove();
$(‘#options_11991_1’).parents(‘div.pErrPro’).append(“

Unfortunately, we are unable to supply you with this treatment. If you require emergency contraception urgently, please visit the NHS Choices website to find a clinic near you.

“);
});
jQuery(“#options_11991_1”).click(function(){
$(‘.options_11991_error’).remove();
});
jQuery(“.myCustomOptionImages_r_1_radimg”).click(function(){
jQuery(“.myCustomOptionImages_r_1”).click();
jQuery(“.myCustomOption5span”).remove();
jQuery(“.myCustomOptionImages dd ul”).append(“Selected Option: 1“);
});
jQuery(“.myCustomOptionImages_r_2_radimg”).click(function(){
jQuery(“.myCustomOptionImages_r_2”).click();
jQuery(“.myCustomOption5span”).remove();
jQuery(“.myCustomOptionImages dd ul”).append(“Selected Option: 2“);
});
jQuery(“.myCustomOptionImages_r_3_radimg”).click(function(){
jQuery(“.myCustomOptionImages_r_3”).click();
jQuery(“.myCustomOption5span”).remove();
jQuery(“.myCustomOptionImages dd ul”).append(“Selected Option: 3“);
});
/*
jQuery(“#options_12636_1”).click(function(){
jQuery(“#options-12636-container”).css(“color”,”red”);
jQuery(“#options-12636-container”).css(“font-size”,”14px”);
jQuery(“#options-12636-container”).html(“Unfortunately, we cannot supply you with this treatment, Please consult your GP.”);
});
jQuery(“#options_12636_2”).click(function(){
jQuery(“#options-12636-container”).html(“”);
});
jQuery(“#options_12640_1”).click(function(){
jQuery(“#options-12640-container”).css(“color”,”red”);
jQuery(“#options-12640-container”).css(“font-size”,”14px”);
jQuery(“#options-12640-container”).html(“Unfortunately, we cannot supply you with this treatment. Please consult your GP.”);
});
jQuery(“#options_12640_2”).click(function(){
jQuery(“#options-12640-container”).html(“”);
});
jQuery(“#options_12641_2”).click(function(){
jQuery(“#options-12641-container”).css(“color”,”red”);
jQuery(“#options-12641-container”).css(“font-size”,”14px”);
jQuery(“#options-12641-container”).html(“Please confirm that you/the intended user agree.”);
});
jQuery(“#options_12641_1”).click(function(){
jQuery(“#options-12641-container”).html(“”);
});
*/
var Hide_Add_toCart = 2;
jQuery(“div.pom-content div.option input:radio”).click(function(){
if(jQuery(“#options_12641_2”).is(“:checked”) || jQuery(“#options_12636_1”).is(“:checked”)) {
Hide_Add_toCart = 1;
} else {
Hide_Add_toCart = 2;
}
if(jQuery(“#options_12639_1”).is(“:checked”)) {
if(jQuery(“#options_12640_1”).is(“:checked”))
Hide_Add_toCart = 1;
}
if(Hide_Add_toCart == 2) {
jQuery(“div.pom-content div.product-options-bottom div.add-to-cart”).show();
} else {
jQuery(“div.pom-content div.product-options-bottom div.add-to-cart”).hide();
}
});
jQuery(“input[type=radio]”).click(function(){
TotalNoScore = NoScore5 + NoScore6 + NoScore7;
if(TotalNoScore > 1) {
$(‘.myCustomOption7_error’).remove();
$(‘.myCustomOption7’).append(“

You are not suitable for Migraine Relief

“);
} else {
$(‘.myCustomOption7_error’).remove();
}
if(jQuery(this).hasClass(“CustomNoStop_r_2”)) {
var IdNoStop = jQuery(this).parents(“ul”).attr(‘id’)+”_no_stop”;
jQuery(“.”+IdNoStop).remove();
jQuery(this).parents(“div.option”).append(“

You are not suitable for this product

“);
}
if(jQuery(this).hasClass(“CustomNoStop_r_1”)) {
var IdNoStop = jQuery(this).parents(“ul”).attr(‘id’)+”_no_stop”;
jQuery(“.”+IdNoStop).remove();
}
if(jQuery(this).hasClass(“CustomYesStop_r_1”)) {
var IdYesStop = jQuery(this).parents(“ul”).attr(‘id’)+”_yes_stop”;
jQuery(“.”+IdYesStop).remove();
jQuery(this).parents(“div.option”).append(“

You are not suitable for this product

“);
}
if(jQuery(this).hasClass(“CustomYesStop_r_2”)) {
var IdYesStop = jQuery(this).parents(“ul”).attr(‘id’)+”_yes_stop”;
jQuery(“.”+IdYesStop).remove();
}
if(jQuery(this).hasClass(“CustomYesStop_r_3”)) {
var IdYesStop = jQuery(this).parents(“ul”).attr(‘id’)+”_yes_stop”;
jQuery(“.”+IdYesStop).remove();
}
MyCustom9 = 0;
jQuery(“.myCustomOption9_r_1”).each(function(){
if(this.checked)
MyCustom9++;
});
if(MyCustom9 > 2) {
jQuery(“.customoption9_error”).remove();
jQuery(“div.myCustomOption9Last”).append(“

You are not suitable for this product

“);
} else {
jQuery(“.customoption9_error”).remove();
}
if(jQuery(this).hasClass(“YesStopMe_r_1”)) {
var IdYesStop = jQuery(this).parents(“ul.options-list”).attr(‘id’)+”_yes_stop”;
jQuery(“.”+IdYesStop).remove();
var comm_err = “Based on your answer provided, your condition would be best treated with a face to face consultation with your own GP and not via mail-order medical services. Please make an appointment at your earliest convenience, alternatively if you have selected the wrong answer please revisit the question.”;
if(jQuery(this).parents(“div.option”).hasClass(“CustomErr1”)) {
var comm_err = “These medications can potentially interact with Levonelle/EllaOne. We are unable to supply this product. Please consult your GP immediately.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr2”)) {
var comm_err = “Unfortunately, we are unable to supply this product. Please consult your GP immediately.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr4”)) {
var comm_err = “Morning after pills will not end a pre-existing pregnancy. To order this product for future use, please change your answer to ‘No’ and continue.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr10”)) {
var comm_err = “We are unable to supply you with treatment. You should consider a migraine treatment plan with your GP. Please consult your GP.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr11”)) {
var comm_err = “We are unable to supply you with treatment. Please consult your GP.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr12”)) {
var comm_err = “We are unable to supply you with treatment since this medication is not indicated for migraines that cause the symptoms above. Please consult your GP.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr14”)) {
var comm_err = “We are unable to supply you with treatment. You should discuss with your GP the possibility that ‘triptans’ could be causing coronary vasoconstriction or anaphylaxis”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr18”)) {
var comm_err = “We are unable to supply you with Regaine. Please consult your GP.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr22”)) {
var comm_err = “Maloff Protect should not be used in pregnancy or whilst breastfeeding unless advised by a doctor or other qualified prescriber. Advice the customer to make an appointment to discuss suitable antimalarial protection with their doctor.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr23”)) {
var comm_err = “If the customer experienced mild side effects, such as headache, nausea and vomiting, abdominal pain or diarroea, reassure them that these are common and should not last long. Make them aware that absorption of atovaquone may be reduced in users with diarrhoea or vomiting.
If the customer experienced severe allergic reactions or side effects, Maloff Protect is contraindicated. Advise them to make an appointment to discuss suitable antimalarial protection with their doctor.
Check if the adverse event was reported. All adverse drug reactions should be reported. Reporting forms and information can be found at https://yellowcard.mhra.gov.uk/.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr24”)) {
var comm_err = “Maloff Protect should not be used by customers who are taking any of these medicines unless advised by a doctor or other qualified prescriber. Advise the customer to make an appointment to discuss suitable antimalarial protection with their doctor or other qualified prescriber.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr25”)) {
var comm_err = “There are special warnings and precautions regarding the diagnoses in question 6. Refer to the SmPC for full information, and advise the customer to make an appointment with their doctor or other qualified prescriber to discuss weather or not Maloff Protect is suitable for them”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr26”)) {
var comm_err = “The maximum duration of travel for which Maloff Protect can be supplied without prescription is 12 weeks (93 tablets). For longer duration of travel, advice should be sought from a doctor or other qualified prescriber.
Tell your pharmacist if you are taking any medication or have any diagnosed medical condition that is not listed above.
Please read the SmPC or PIL for full details of contradications, special warnings and precautions.”;
}
jQuery(this).parents(“div.option”).append(“

“+comm_err+”

“);
}
if(jQuery(this).hasClass(“YesStopMe_r_2”)) {
var IdYesStop = jQuery(this).parents(“ul.options-list”).attr(‘id’)+”_yes_stop”;
jQuery(“.”+IdYesStop).remove();
}
if(jQuery(this).hasClass(“NoStopMe_r_2”)) {
var IdNoStop = jQuery(this).parents(“ul.options-list”).attr(‘id’)+”_no_stop”;
jQuery(“.”+IdNoStop).remove();
var comm_err = “Based on your answer provided, your condition would be best treated with a face to face consultation with your own GP and not via mail-order medical services. Please make an appointment at your earliest convenience, alternatively if you have selected the wrong answer please revisit the question.”;
if(jQuery(this).parents(“div.option”).hasClass(“CustomErr3”)) {
var comm_err = “Please be aware that Levonelle/EllaOne is not 100% effective. You can still change your answer and continue.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr5”)) {
var comm_err = “Levonelle should NOT be requested by women with a BMI of 30 or above.
EllaOne will be more effective and should be ordered instead.
You can change your answer to ‘Yes’ and continue.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr6”)) {
var comm_err = “Levonelle and EllaOne should NOT be taken in the same menstrual cycle (period). You can change your answer to ‘Yes’ and continue.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr7”)) {
var comm_err = “Unfortunately, we are unable to supply this product. Please consult your GP immediately.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr9”)) {
var comm_err = “We are unable to supply you with treatment. Please consult your GP.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr13”)) {
var comm_err = “If you have not been diagnosed with migraines and used triptan medication with success before contact your GP.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr15”)) {
var comm_err = “You must agree to this before continuing. If you need assistance contact customer support.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr16”)) {
var comm_err = “Regaine is only indicated for males aged between 18 and 49. Contact us to discuss alternative options.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr17”)) {
var comm_err = “We are unable to supply you with Regaine. Please consult your GP.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr19”)) {
var comm_err = “EHC can only be supplied to the intended user, it can only be shipped to the woman in question.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr20”)) {
var comm_err = “Maloff Protect is not available from the pharmacy for those under 18 years old. If the customer is under 18, advise them to talk to their doctor as they may be suitable for prescription Atovaquone/Proguanil.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr21”)) {
var comm_err = “The safety and effectiveness of Maloff Protect has not been established for prophylaxis of malaria in patients who weigh less than 40 kg. Advise the customer to make an appointment to discuss suitable antimalarial protection with their doctor.”;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr27”)) {
var comm_err = “It is advised that this product is only used as an addition to healthy eating and exercise. For more advice please follow
http://www.nhs.uk/livewell/healthy-eating/Pages/Healthyeating.aspx“;
} else if(jQuery(this).parents(“div.option”).hasClass(“CustomErr29”)) {
var comm_err = “Because you have not visited your GP regarding Nausea Cyclizine is not best for first line treatment. Please see your GP to confirm cause of nausea.”;
}
jQuery(this).parents(“div.option”).append(“

“+comm_err+”

“);
}
if(jQuery(this).hasClass(“NoStopMe_r_1”)) {
var IdNoStop = jQuery(this).parents(“ul.options-list”).attr(‘id’)+”_no_stop”;
jQuery(“.”+IdNoStop).remove();
}
if(jQuery(‘.custom_warning’).length) {
$(‘.spinner-wrapper’).hide();
$(‘#product-addtocart-button’).hide();
$(‘div.add-to-cart-buttons’).hide();
$(‘div.qty_err_msg’).hide();
} else {
$(‘.spinner-wrapper’).show();
$(‘#product-addtocart-button’).show();
$(‘div.add-to-cart-buttons’).show();
}
});
jQuery(“select”).change(function(){
if(jQuery(‘.custom_warning’).length) {
$(‘.spinner-wrapper’).hide();
$(‘#product-addtocart-button’).hide();
$(‘div.add-to-cart-buttons’).hide();
$(‘div.qty_err_msg’).hide();
} else {
$(‘.spinner-wrapper’).show();
$(‘#product-addtocart-button’).show();
$(‘div.add-to-cart-buttons’).show();
}
});
jQuery(“a.btn-add-prescription”).click(function () {
//if (/Mobi/.test(navigator.userAgent)) {
document.getElementById(‘pom’).scrollIntoView();
//}
});
});
function ChageMyCustomOptions(opt,cliclid) {
opt1 = opt.split(“_”);
if(opt1[0] == “Yes”) {
jQuery(“img.Yes_”+opt1[1]).attr(“src”,SITE_SKIN_URL+”images/yes-option.png”);
jQuery(“img.No_”+opt1[1]).attr(“src”,SITE_SKIN_URL+”images/no-option-u.png”);
} else {
jQuery(“img.Yes_”+opt1[1]).attr(“src”,SITE_SKIN_URL+”images/yes-option-u.png”);
jQuery(“img.No_”+opt1[1]).attr(“src”,SITE_SKIN_URL+”images/no-option.png”);
}
jQuery(“#”+cliclid).click();
}
function ChageMyCustomOptionsDefaultRadio(opt,cliclid,type=”) {
if(type == “checkbox”) {
//jQuery(“img.”+opt).attr(“src”,SITE_SKIN_URL+”images/radio-un-ticked-img.png”);
//alert(jQuery(“#”+cliclid).attr(‘checked’));
if(jQuery(“#”+cliclid).prop(“checked”) == true) {
jQuery(“#img_other_”+cliclid).attr(“src”,SITE_SKIN_URL+”images/radio-un-ticked-img.png”);
} else {
jQuery(“#img_other_”+cliclid).attr(“src”,SITE_SKIN_URL+”images/radio-ticked-img.png”);
}
jQuery(“#”+cliclid).click();
} else {
jQuery(“img.”+opt).attr(“src”,SITE_SKIN_URL+”images/radio-un-ticked-img.png”);
jQuery(“#img_other_”+cliclid).attr(“src”,SITE_SKIN_URL+”images/radio-ticked-img.png”);
jQuery(“#”+cliclid).click();
}
}
jQuery(“.spinner-inc”).click(function(){
alert(“in”);
});
var HeightArrayOption1 = [];
HeightArrayOption1[“4ft 0in – 121.92cm”] = “121.92”;
HeightArrayOption1[“4ft 1in – 124.46cm”] = “124.46”;
HeightArrayOption1[“4ft 2in – 127.00cm”] = “127.00”;
HeightArrayOption1[“4ft 3in – 129.54cm”] = “129.54”;
HeightArrayOption1[“4ft 4in – 132.08cm”] = “132.08”;
HeightArrayOption1[“4ft 5in – 134.62cm”] = “134.62”;
HeightArrayOption1[“4ft 6in – 137.16cm”] = “137.16”;
HeightArrayOption1[“4ft 7in – 139.70cm”] = “139.70”;
HeightArrayOption1[“4ft 8in – 142.24cm”] = “142.24”;
HeightArrayOption1[“4ft 9in – 144.78cm”] = “144.78”;
HeightArrayOption1[“4ft 10in – 147.32cm”] = “147.32”;
HeightArrayOption1[“4ft 11in – 149.86cm”] = “149.86”;
HeightArrayOption1[“5ft 0in – 152.40cm”] = “152.40”;
HeightArrayOption1[“5ft 1in – 154.94cm”] = “154.94”;
HeightArrayOption1[“5ft 2in – 157.48cm”] = “157.48”;
HeightArrayOption1[“5ft 3in – 160.02cm”] = “160.02”;
HeightArrayOption1[“5ft 4in – 162.56cm”] = “162.56”;
HeightArrayOption1[“5ft 5in – 165.10cm”] = “165.10”;
HeightArrayOption1[“5ft 6in – 167.00cm”] = “167.00”;
HeightArrayOption1[“5ft 7in – 170.18cm”] = “170.18”;
HeightArrayOption1[“5ft 8in – 172.72cm”] = “172.72”;
HeightArrayOption1[“5ft 9in – 175.26cm”] = “175.26”;
HeightArrayOption1[“5ft 10in – 177.80cm”] = “177.80”;
HeightArrayOption1[“5ft 11in – 180.34cm”] = “180.34”;
HeightArrayOption1[“6ft 0in – 182.88cm”] = “182.88”;
HeightArrayOption1[“6ft 1in – 185.42cm”] = “185.42”;
HeightArrayOption1[“6ft 2in – 187.97cm”] = “187.97”;
HeightArrayOption1[“6ft 3in – 190.50cm”] = “190.50”;
HeightArrayOption1[“6ft 4in – 193.04cm”] = “193.04”;
HeightArrayOption1[“6ft 5in – 195.58cm”] = “195.58”;
HeightArrayOption1[“6ft 6in – 198.12cm”] = “198.12”;
HeightArrayOption1[“6ft 7in – 200.66cm”] = “200.66”;
jQuery( “.mycustomoptbmi_r_1” ).click(function() {
jQuery(“.bmi_t”).val(“”);
});
jQuery( “.mycustomoptbmi_r_2” ).click(function() {
jQuery(“.bmi_t”).val(“”);
});
jQuery( “div.myCustomOption3_2 select” ).change(function() {
calculateMyBMI(1,”3_2″,”3_3″,”3_4″,”bmi”);
});
jQuery( “div.myCustomOption3_3 select.myCustomOption3_3_sel” ).change(function() {
calculateMyBMI(1,”3_2″,”3_3″,”3_4″,”bmi”);
});
jQuery( “div.myCustomOption3_4 select.myCustomOption3_4_sel” ).change(function() {
calculateMyBMI(1,”3_2″,”3_3″,”3_4″,”bmi”);
});
jQuery( “div.myCustomOption3_5 select” ).change(function() {
calculateMyBMI(2,”3_5″,”3_6″,””,”bmi”);
});
jQuery( “div.myCustomOption3_6 select” ).change(function() {
calculateMyBMI(2,”3_5″,”3_6″,””,”bmi”);
});
function calculateMyBMI(type,h,w,wp,bmi_index) {
if(type == 1) {
height = 0;
if(jQuery(“.myCustomOption”+h+”_sel option:selected”).val() > 0)
height = HeightArrayOption1[jQuery(“.myCustomOption”+h+”_sel option:selected”).html().trim()];
weight = 0;
if(jQuery(“.myCustomOption”+w+”_sel option:selected”).val() > 0)
weight = jQuery(“.myCustomOption”+w+”_sel option:selected”).html().trim() * 1;
weightp = 0;
if(jQuery(“.myCustomOption”+wp+”_sel option:selected”).val() > 0)
weightp = jQuery(“.myCustomOption”+wp+”_sel option:selected”).html().trim() * 1;
roundedBMI = “”;
if(height > 0 && weight > 0) {
totalpounds = (weight*14) + weightp;
weightFinal = totalpounds * 0.453592;
var finalBmi = weightFinal/(height/100*height/100);
var roundedBMI = Math.round( finalBmi * 10 ) / 10;
}
jQuery(“.”+bmi_index+”_t”).val(roundedBMI);
} else {
height = 0;
if(jQuery(“.myCustomOption”+h+”_sel option:selected”).val() > 0)
height = jQuery(“.myCustomOption”+h+”_sel option:selected”).html().replace(“m”,””).trim() * 100;
weight = 0;
if(jQuery(“.myCustomOption”+w+”_sel option:selected”).val() > 0)
weight = jQuery(“.myCustomOption”+w+”_sel option:selected”).html().replace(” Kilos”,””).trim() * 1;
roundedBMI = “”;
if(height > 0 && weight > 0) {
weightFinal = weight;
var finalBmi = weightFinal/(height/100*height/100);
var roundedBMI = Math.round( finalBmi * 10 ) / 10;
}
jQuery(“.”+bmi_index+”_t”).val(roundedBMI);
}
}
jQuery(document).ready(function() {
jQuery(“div.cms-additional .tab-link”).click(function() {
jQuery(“div.cms-additional #tab-content .tabbed”).hide();
newid = this.id.replace(“head-tabs-“, “tabs-“);
jQuery(“div.cms-additional #tab-content #” + newid).show();
jQuery(“div.cms-additional .tabs .tab-link”).removeClass(“active”);
jQuery(“div.cms-additional .tabs #” + this.id).addClass(“active”);
newid = this.id.replace(“head-tabs-“, “head-img-tabs-“);
jQuery(“div.cms-additional .tabs .headimg”).attr(“src”, “https://www.chemist-4-u.com/media/viagra_connect/tick-mark-black.png”);
jQuery(“div.cms-additional .tabs #” + newid).attr(“src”, “https://www.chemist-4-u.com/media/viagra_connect/tick-mark-white.png”);
});
jQuery(“.faq_tab_title”).not(‘div.brand_page_container div.ec_faqbox div.faqs#questioncontent div.faqtabs div.faqtab div.faq_tab_title’).click(function() {
newid = this.id.replace(“faq_tab_title_”, “faq_detail_”);
jQuery(“#” + newid).toggle();
});
});
jQuery(document).ready(function() {
jQuery(‘body.cms-companyvalues #product-tabs’).easytabs({updateHash:false,});
});

Read More…