<\/th><\/tr><\/thead>'),$("#MultiPrescription").modal("show");else t!=null?document.location.href=t:redirect.click()}})}function RedirectToHomePage(){$.ajax({url:"/contact-lenses/Customer/RedirectToHomePage",type:"POST"})}function SelectedPrescription(){$("#lblError").hide();$("#NoSelectedId").hide();$(".ajax-loading-block-window").show();var n=$(".chkAddress1:checked").closest("tr").find(".tdPatientId3").text(),t=$(".chkAddress1:checked").closest("tr").find(".tdPatientId1").text();n==""?($("#MultiPrescription").scrollTop(0),$("#NoSelectedId").show(),$(".ajax-loading-block-window").hide("slow")):$.ajax({type:"POST",data:{selectedRxId:n,selectedProductId:t},url:"/contact-lenses/Product/SelectedPrescriptionId",success:function(){$("#MultiPrescription").hide();GoToPrescribedProduct()},error:function(){$(".ajax-loading-block-window").hide("slow");alert("We cannot complete the requested action at this time. Please try again and if you need further support, contact our Customer Care department and we will be happy to assist you.")}})}function GoToPrescribedProduct(){$(".ajax-loading-block-window").show();$.ajax({type:"POST",url:"/contact-lenses/Product/ProductDetails",data:{productId:0,updatecartitemid:0,rxId:0},success:function(n){$("#ViewProduct").hide();$(".ajax-loading-block-window").hide("slow");n=="outofstock"?$("#NoProductMatch").modal("show"):document.location.href=n}})}$(document).on("click",".close,#depetClose,#patientClose,#reselectClose,#modelClose,#closemultiprec,#reorderBookanAppt",function(){$(".modal").modal("hide");$(".modal-backdrop").hide()});$(document).on("click",".chkAddress1",function(){$(".chkAddress1").not(this).prop("checked",!1)})