var msgShown=false,msgRefer="Please note you have not yet referred your enquiry.\r\n\r\nTo refer your enquiry, please select the 'Submit for referral' button at the bottom of the page.\r\n\r\nAlternatively, to review your answers, simply press 'Review details'.",msgFinalCheck="Please note you have not yet ordered your policy.\r\n\r\nTo order your policy, please select the 'Order policy' button at the bottom of the page.\r\n\r\nTo save your quote, simply press 'Save and return to My ICON'.";$(document).ready(function(){$("a[rel='external']").attr("target","blank")});function selectCheckboxes(a){$("form :checkbox:enabled").attr("checked",$(a).is(":checked"))}function showMessage(a){if(!msgShown){alert(a);msgShown=true;return false}else return true}function msgAttachReferral(){$("a:not([class='msgIgnore'])").click(function(){return showMessage(msgRefer)})}function msgAttachFinalCheck(){$("a:not([class='msgIgnore'])").click(function(){return showMessage(msgFinalCheck)})}function showFinalCheckMessage(){return showMessage(msgFinalCheck)}function titleCase(a){var b=a.value;if(b.length>0)a.value=b.titleCase()}String.prototype.titleCase=function(){for(var a=this.split(" "),b=0;b<a.length;b++)a[b]=a[b].charAt(0).toUpperCase()+a[b].substr(1).toLowerCase();return a.join(" ")};function OpenRadWindow(c,b){var a;if(b!=null)a=$find(b);c!=null&&a.setUrl(c);a.show();return a}function ToggleItem(b){var a=$get(b);if(a)a.style.display=a.style.display=="none"?"":"none"}function showNoteBox(c,b){var a=$get(c);if(a)if(b)a.style.display="";else a.style.display="none"}function setHiddenField(a,c){var b=document.getElementById(a);if(b!=null)b.value=c;else alert("Unable to located hidden field "+a)}function viewHiddenField(a){var b=document.getElementById(a);if(b!=null)alert(b.value);else alert("Unable to located hidden field "+a)}function UserConfirm(a){return confirm(a+" \n\nAre you sure?")}function ConfirmDelete(){return ConfirmDelete(" record")}function ConfirmDelete(a){return confirm("Delete this "+a+" \n\nAre you sure?")}function ProductUnavailable(){alert("The product that was selected is no longer available.  Please re-enter the required information.")}function ShowLoggedOutMessage(){alert("Your login session has expired due to inactivity.  Please log in again.")}function HistoryBack(){history.back()}function gotoUrl(a){location.href=a;return false};
