If you are unsure as to which type of Discretionary Trust Will to make we recommend that you download and read (if you have not already done so) our free Guide to Discretionary Trust Wills by clicking here.
";var selectHTML="";var daggNote=" If applicable, specify the relationship of this person to the `first` spouse/partner";var dagntpm="";var namNote=" If this gift is for the surviving spouse/partner, enter the `second` spouse/partner`s name";var namNoteR=" If the Life Interest is for the surviving spouse/partner, enter the `second` spouse/partner`s name";var GtGlead=" Do you wish to give this Gift TWICE - i.e. in BOTH Wills ? ";var eMsg=[];eMsg[0]="You have ticked the 'If the beneficiary(s) fail(s) to outlive you'\nbox but not specified an alternate Beneficiary\nEither un-tick the box or enter a Substitute Beneficiary Name.";eMsg[1]="You have ticked the 'The beneficiary(s) do(es) not inherit until' box but not specified an age.\nEither un-tick the box or select an age.";eMsg[2]="You have ticked the 'Free format condition' box but not entered anything.\nEither un-tick the box or enter a condition.";eMsg[3]="You must enter a Beneficiary Name at the top of the Form.";eMsg[4]="You must enter a Number of Shares in the appropriate box.";eMsg[5]="You have not entered a Company Name.";eMsg[6]="The Number of Shares you have entered is not a valid number.\nPlease use only digits 0-9.";eMsg[7]="You have not specified whether this is a percentage or number of shares.";eMsg[8]="You have not entered the address of the property.";eMsg[9]="You have not specified who is to eventually inherit the\nproperty upon termination of the Right of Residence.";eMsg[10]="You have not entered an Insurance Company Name.";eMsg[11]="The Insurance Policy Value you have entered is not a valid number.\nPlease use only digits 0-9.";eMsg[12]="You have not entered a value for the amount of money you wish to leave.";eMsg[13]="The amount you have entered is not valid.\nPlease use only digits 0-9 and enter the amount in\nFULL POUNDS only i.e. NOT pounds and pence.";eMsg[14]="You cannot leave a legacy of £0 in your Will.\nEither enter a non-zero amount or use a different type of gift.";eMsg[15]="You have not entered a description of the Item.";eMsg[16]="You have not entered a Charity Name.\nClick on the link at the top of the page to select a Charity.";var LogOutSbmtBtn="
";var qEnterEmail=" Your email address: Choose a password: (Min 6 characters - numbers and letters only) Confirm password:
"+qReferrer+LogOutSbmtBtn+" ";var qEmailPromise="Your email address will not be given or sold to any Third party. Nor will you receive any unwarranted mailings from us. You can remove your email address and details from our database at any time. ";var qaProgOpts=new Array("Personal","Gifts","Estate","Responsibilities","Funeral");var qaProgVars=new Array("Pers","Gifts","Est","Resp","Guar","Lw","Chi");for(var i=0;iHERE for help. ";var qhMirrQ253_1="Yes - We want to actually name all of our children in the Wills";var qhMirrQ253_2="No - We want the simple term my children to be used in the Wills";var qhDefQ150="Who do you want your Estate to go to?,Your 'Estate' includes everything you own - money, investments, houses, other property, life insurance policies, etc. - after any gifts you have specified have been distributed.";var qhQ150=qhDefQ150;var qhDefQ250="Who do you want to inherit after the second of you has passed on or if you both die together?,Whoever you nominate here will receive your combined Estate if you die together, or after you have both passed on.";var qhLegQ250="Who do you want to inherit after the second of you has passed on or if you both die together?,Whoever you nominate here will receive your combined Residuary Estate if you die together, or after you have both passed on.";var qhQ250=qhDefQ250;var qhDTQ250="Who do you want your combined Estate to eventually go to?,Your 'Estate' includes everything you own - money, investments, houses, other property, life insurance policies, etc. - after any gifts you specified in the previous section have been distributed.
Whoever you nominate here will receive your combined Estate if you die together, or after you have both passed on.";var qhDefE600="Executors,Please appoint between 1 and 4 people to be responsible for carrying out the wishes of your Will.
(Note that addresses are optional).";var qhE600=qhDefE600;var qhDefQ601_1="We want to appoint the surviving spouse/partner as Executor, and then appoint substitutes to act if we both die together";var qhWarnQ601_1=" (Not recommended, as the surviving spouse/partner has a life interest in a property more)";var qhQ601_1=qhDefQ601_1;var qhDefE612="Substitute Executors,Please nominate the substitutes who are to be responsible for carrying out the wishes of your Wills if your appointed Executors are unable to act.
Specify the relationship of each substitute to the `first` spouse/partner.
(Note that addresses are optional).";var qhE612=qhDefE612;var qhDefQ701="Do you have any children under 18?,If you have children under 18, you can optionally appoint Guardians for them in your Will.
If there are custody issues with any of your children, we recommend that you select the 2nd option and undertake the appointment of Guardians as a separate exercise after you have made your Will.";var qhQ701=qhDefQ701;var qhQ800="";var qhQ800_1="";var qhQ800_2="";var qhC800_1="";var qhC800_2="L827";var qhQ851="";var qhQ851_1="";var qhQ851_2="";var qhQ851_3="";var qhQ851_4="";var qhQ855="";var qhQ855_1="";var qhQ855_2="";var qhE800="";var qhV800="";var qhE801="";var qhV801="";var q800Start="Congratulations - You have Successfully Completed your Will";for(var i=0;i<=10;i++){cText="var qhV800_"+i+"=''; var qhV801_"+i+"='';";eval(cText)}var e8Arr=new Array("802","803","804","805","806","807","807C","808","811","812","850","851");for(var i=0;i Please specify the FIRST type of gift/legacy you want to leave";var qhDef2Q980="Specific Gifts/Legacies,- EITHER specify the NEXT type of gift/legacy you want to leave and click NEXT
- OR select `Edit/Delete` for a Legacy you have already created (below right)
- OR select NO MORE GIFTS/LEGACIES TO SPECIFY and click NEXT";var qhQ980=qhDef1Q980;var qhQ981=qhQ980;var qhQ806="";var qhQ806_1="";var qhQ806_A1="";var qhQ806_2="";var qhQ806_A2="";var qhQ806_V1="Attorney Address Details,Would you like to enter Address & Date of Birth details for your Attorney(s) ?
";var qhQ806_V2=qhQ806_V1.replace("enter","keep the");var qhQ806_V1_R=qhQ806_V1.replace("\?"," and Replacement Attorney(s)\?");var qhQ806_V2_R=qhQ806_V2.replace("\?"," and Replacement Attorney(s)\?");var qhQ806P_V1="EITHER you can get your Attorney(s) to write their Address & Date of Birth on the LPA form when they sign it
OR you can enter them yourself now so they will be pre-printed on the form ";var qhQ806P_V1_R=qhQ806P_V1.replace("your Attorney\(s\)","your Attorneys and Replacement Attorney(s)");var qhQ806P_V2="If you select 'NO' then the details you previously entered will be removed.";var qhQ806_V1_1=qhQ806_V1+qhQ806P_V1;var qhQ806_V1_R_1=qhQ806_V1_R+qhQ806P_V1_R;var qhQ806_V2_2=qhQ806_V2+qhQ806P_V2;var qhQ806_V2_R_2=qhQ806_V2_R+qhQ806P_V2;var qhQ806_1_V1="NO -My Attorney(s) will write their Address & Date of Birth on the LPA when they sign it";var qhQ806_1_V1_R=qhQ806_1_V1.replace("will write","\/ Replacement(s) will write");var qhQ806_1_V2="NO - Please delete what I have entered and I will get my Attorney(s) to write their Address & Date of Birth on the LPA when they sign it";var qhQ806_1_V2_R=qhQ806_1_V2.replace("to write","& Replacment(s) to write");var qhQ806_2_V1="YES - I will enter some or all of my Attorney Address & Date of Birth details now";var qhQ806_2_V1_R=qhQ806_2_V1.replace("Attorney","Attorney \/ Replacement");var qhQ806_2_V2="YES - Please keep the Attorney Address & Date of Birth details I have already entered and show me them now so I can check them";var qhQ806_2_V2_R=qhQ806_2_V2.replace("Attorney","Attorney \/ Replacement");var qhQ806_1_SUGG=" (RECOMMENDED OPTION IF YOU ARE NOT SURE) ";var qhQ806_2_SUGG=" (RECOMMENDED: ATTORNEYS/REPLACEMENTS HAVE CHANGED SINCE THE LAST CHECK) ";var formCondHtml;var resCondText="";var noConditionSet="";var origText="";var cName="";var cRelat="";var cRelatSEX="";var sPo="";var insertHtml="";var textHtml="";var cdLength;var cNum;var cCond;var cCondStr="";var condType;var cRadio;var dVal;var resCarray=[];var cRad=[];var ccRad=[];var dSendback;var sex;var heShe;var seD="SAVE Extra Detail";var reD="REMOVE Extra Detail";var caN="BACK";var xMousePos=0;var yMousePos=0;var xMousePosMax=0;var yMousePosMax=0;var xMouseRel=0;var yMouseRel=0;if(document.layers){document.captureEvents(Event.MOUSEMOVE);document.onmousemove=captureMousePosition}else if(document.all){document.onmousemove=captureMousePosition}else if(document.getElementById){document.onmousemove=captureMousePosition}var validExit="";function setCookie(c_name,value){if(isLocalStorageNameSupported()){var CookieList="";var CookieListArr=[];var CookieExpiry="";var CookieExpiryArr=[];var NewCookieList="";var NewCookieExpiry="";var CookieUpdated=0;var exdate=new Date();var exMillisecs=exdate.getTime();if(cookieLife){exMillisecs=(exMillisecs*1)+(cookieLife*60000)}localStorage.setItem(c_name,value);if(getCookie("TMW_CookieList")){CookieList=getCookie("TMW_CookieList")}if(getCookie("TMW_CookieExpiry")){CookieExpiry=getCookie("TMW_CookieExpiry")}if(CookieList){CookieListArr=CookieList.split(seP2);CookieExpiryArr=CookieExpiry.split(seP2);for(var i=0;i<=CookieListArr.length;i++){if(CookieListArr[i]){if(CookieListArr[i]==c_name){NewCookieExpiry+=exMillisecs+seP2;CookieUpdated++}else{NewCookieExpiry+=CookieExpiryArr[i]+seP2}NewCookieList+=CookieListArr[i]+seP2}}}if(CookieUpdated==0){NewCookieExpiry+=exMillisecs+seP2;NewCookieList+=c_name+seP2}localStorage.setItem("TMW_CookieList",NewCookieList);localStorage.setItem("TMW_CookieExpiry",NewCookieExpiry)}}function getCookie(c_name){if(isLocalStorageNameSupported()){var c_value="";if(typeof(localStorage.getItem(c_name))!="undefined"){if(localStorage.getItem(c_name)){c_value=localStorage.getItem(c_name)}else{c_value=""}}else{c_value=null}return c_value}}function deleteCookie(name,path){if(isLocalStorageNameSupported()){if(typeof(localStorage.getItem(name))!="undefined"){localStorage.removeItem(name);var CookieList="";var CookieListArr=[];var CookieExpiry="";var CookieExpiryArr=[];var NewCookieList="";var NewCookieExpiry="";var CookieUpdated=0;if(getCookie("TMW_CookieList")){CookieList=getCookie("TMW_CookieList")}if(getCookie("TMW_CookieExpiry")){CookieExpiry=getCookie("TMW_CookieExpiry")}if(CookieList){CookieListArr=CookieList.split(seP2);CookieExpiryArr=CookieExpiry.split(seP2);for(var i=0;i<=CookieListArr.length;i++){if(CookieListArr[i]){if(CookieListArr[i]!=name){NewCookieExpiry+=CookieExpiryArr[i]+seP2;NewCookieList+=CookieListArr[i]+seP2}else{CookieUpdated++}}}}if(CookieUpdated>0){localStorage.setItem("TMW_CookieList",NewCookieList);localStorage.setItem("TMW_CookieExpiry",NewCookieExpiry)}}}}function qaAudImg(a){if("debug_iwc"!=callingProc&&"YES"!=TempDisableAud){if(AudItParms="",AudItURL&&""!=AudItURL&&"YES"==qaTrial){for(var t=(new Date).getTime(),e="",d=0;d=0)for(var s=qaPosn,m=0,o=0;0==m&&s>0;)s--,"E"==qaStack[s].substring(0,1)&&(m++,o=s,i=qaVars[s],r=qaVals[s],r=r.replace(/¬/g,"_"));AudItParms=""}SetVa0(),CountPages++}}function AuditLogAlert(){var qAudhtml='AUDIT LOG PAGE'+"\n";qAudhtml+="
";AuDWin=window.open("","AuDWin","width=1300,height=900,resizable=yes,scrollbars=yes");AuDWin.document.write(qAudhtml)}function veFel(Fel){var retVal='';if(document.getElementById){var fcText="if ((document.getElementById('"+Fel+"'))||(document.getElementById('willDetails')."+Fel+")) {retVal='1';} else {retVal='';}"}else if(document.all){var fcText="if ((document.all."+Fel+")||(document.all.willDetails."+Fel+")) {retVal='1';} else {retVal='';}"}else{var fcText="if (willDetails."+Fel+") {retVal='1';} else {retVal='';}"}eval(fcText);return retVal}function qaFindPage(){if(qaPosn){if(qaStack[qaPosn]){var oStoack=qaStack[qaPosn]}else{var oStoack="UNDEF"}}else{var oStoack="UNDEF"}return oStoack}function OpFelErrs(calledBy,rouTine,Field,ValTried,Err){if((LiveOrTest=="test")||(EditType=="ADMIN")){console.log("Page: "+qaFindPage().substring(0,4)+" - OpFelErrs: Called by setFel/retrFel Routine: "+rouTine+" Field:"+Field+" Value trying to set/retrieve: "+ValTried+"\n\nError: "+Err)}if((LiveOrTest=="test")||(EditType=="ADMIN")){AuditLogWrite(qaFindPage().substring(0,4),rouTine,calledBy,"OPFEL_ERROR","Field:"+Field+"; Value trying to set/retrieve: "+ValTried+"; Error: "+Err)}ValTried=ValTried.replace(/ /g,"\_");Err=Err.replace(/ /g,"\_");var winURL="https://www.tenminutewill.co.uk/main.cgi?process=iwc_opfel_error_report&getelm="+gEbId+"&page="+qaFindPage().substring(0,4)+"&h_email="+dEmail+"&a="+calledBy+"&a2="+rouTine+"&a3="+Field+"&t="+ValTried+"&t2="+Err;var imgSrcVal="";stIHt("page0Part5",imgSrcVal)}function setFel_generic(InterMed,calledBy,elType,formFld,formVal){var foundEl=0;if(elType!="value"){OpFelErrs(calledBy,InterMed,formFld,formVal,"Element type should be `value` but it was actually `"+elType+"`")}else{var stText="if(document.getElementById('"+formFld+"')) {document.getElementById('"+formFld+"')."+elType+"=formVal; foundEl++;} else if (document.getElementById('willDetails')."+formFld+") {document.getElementById('willDetails')."+formFld+"."+elType+"=formVal; foundEl++;}";hEcText=stText;eval(stText);if(foundEl==0){OpFelErrs(calledBy,InterMed,formFld,formVal,"(Trying to set `"+elType+"`) document.getElementById did not find an Element")}}return foundEl}function setFel_text(calledBy,elType,formFld,formVal){var foundEl=setFel_generic("setFel_text",calledBy,elType,formFld,formVal);return foundEl}function setFel_hidden(calledBy,elType,formFld,formVal){var foundEl=setFel_generic("setFel_hidden",calledBy,elType,formFld,formVal);return foundEl}function setFel_submit(calledBy,elType,formFld,formVal){var foundEl=setFel_generic("setFel_submit",calledBy,elType,formFld,formVal);return foundEl}function setFel_textarea(calledBy,elType,formFld,formVal){var foundEl=setFel_generic("setFel_textarea",calledBy,elType,formFld,formVal);return foundEl}function setFel_checkbox(calledBy,elType,formFld,formVal){var foundEl=0;if(elType!="checked"){OpFelErrs(calledBy,"setFel_checkbox",formFld,formVal,"Element type should be `checked` but it was actually `"+elType+"`")}else{if((formVal!="true")&&(formVal!="false")){if(formVal){formVal="true"}else{formVal="false"}}var shText="if(document.getElementById('"+formFld+"')) {document.getElementById('"+formFld+"')."+elType+"="+formVal+"; foundEl++;} else if (document.getElementById('willDetails')."+formFld+") {document.getElementById('willDetails')."+formFld+"."+elType+"="+formVal+"; foundEl++;}";hEcText=shText;eval(shText);if(foundEl==0){OpFelErrs(calledBy,"setFel_checkbox",formFld,formVal,"(Trying to set `"+elType+"`) document.getElementById did not find an Element")}}return foundEl}function setFel_select(calledBy,elType,formFld,formVal){var foundEl=0;var updatedEl=0;if(elType=="value"){var siText="if(document.getElementById('"+formFld+"')) {var SlctElm=document.getElementById('"+formFld+"');foundEl+=SlctElm.length;} else if (document.getElementById('willDetails')."+formFld+") {var SlctElm=document.getElementById('willDetails')."+formFld+";foundEl+=SlctElm.length;}";hEcText=siText;eval(siText);for(var x=0;x0){hEcText=raText;eval(raText);if(SlctElm){if(SlctElm.length){if(isInt(SlctElm.length)){foundFormFld++}else{foundFormFld=0}}else{foundFormFld=0}}else{foundFormFld=0}}if(foundFormFld==0){raText="if(document.getElementsByName('"+formFld+"')) {var SlctElm=document.getElementsByName('"+formFld+"');foundFormFld++;}";hEcText=raText;eval(raText);if(SlctElm){if(SlctElm.length){if(isInt(SlctElm.length)){foundFormFld++}else{foundFormFld=0}}else{foundFormFld=0}}else{foundFormFld=0}}if(foundFormFld>0){for(var x=0;x0){var Rslt="OK";var sfMsg="Found field type in array `FelType` :- "+elType.toUpperCase()+" of field `"+formFld+"` set to `"+formVal+"`"}else{var Rslt="FAILED";var sfMsg="Wasn`t able to set "+elType.toUpperCase()+" of field `"+formFld+"` to `"+formVal+"` - see OpFel Error"}if((LiveOrTest=="test")||(EditType=="ADMIN")){AuditLogWrite(qaFindPage().substring(0,4),"setFel_"+FelType[formFld],calledBy,Rslt,sfMsg)}}else if(document.getElementById){sfText="gIDtype=document.getElementById('"+formFld+"').type;";hEcText=sfText;eval(sfText);if((!gIDtype)||(gIDtype=="undefined")){sfText="gIDtype=document.getElementById('willDetails')."+formFld+".type;";hEcText=sfText;eval(sfText)}if((gIDtype)&&(gIDtype!="undefined")){if(gIDtype.substring(0,6)=='select'){gIDtype='select'}if(ValidateFelType(gIDtype)){sfText="var foundEl=setFel_"+gIDtype+"('"+calledBy+"','"+elType+"','"+formFld+"','"+formVal+"');";ExecutedOK++;hEcText=sfText;eval(sfText);if(foundEl>0){var Rslt="OK"}else{var Rslt="FAILED"}if((LiveOrTest=="test")||(EditType=="ADMIN")){AuditLogWrite(qaFindPage().substring(0,4),"setFel_"+gIDtype,calledBy,"NO_FELTYPE","Didn`t find field type in array `FelType` but DID using getElementById :- "+elType.toUpperCase()+" of field `"+formFld+"` set to `"+formVal+"` by routine `setFel_"+gIDtype+"`")}}}}if(ExecutedOK==0){if(!FelType[formFld]){OpFelErrs(calledBy,"setFel",formFld,formVal,"Element field: `"+formFld+"` - No FelType Array Value found")}else if(!ValidateFelType(FelType[formFld])){OpFelErrs(calledBy,"setFel",formFld,formVal,"Element field: `"+formFld+"` - FelType Array Value `"+FelType[formFld]+"` is invalid")}else if(!document.getElementById){OpFelErrs(calledBy,"setFel",formFld,formVal,"Browser does not support getElementById")}else if(!gIDtype){OpFelErrs(calledBy,"setFel",formFld,formVal,"Tried to use getElementById to get field type for "+formFld+" but it didn`t return anything")}else if(!ValidateFelType(gIDtype)){OpFelErrs(calledBy,"setFel",formFld,formVal,"Used getElementById to get field type for "+formFld+" but the returned value `"+gIDtype+"` is invalid")}if((LiveOrTest=="test")||(EditType=="ADMIN")){AuditLogWrite(qaFindPage().substring(0,4),"setFel",calledBy,"FAILED","Didn`t find field type in array `FelType` OR using getElementById for field `"+formFld+"` ... and so was UNABLE to set the field`s `"+elType.toUpperCase()+"` to `"+formVal+"`")}if(document.getElementById){var fcText="if(document.getElementById('"+formFld+"')) {document.getElementById('"+formFld+"')."+elType+"=formVal;} else if (document.getElementById('willDetails')."+formFld+") {document.getElementById('willDetails')."+formFld+"."+elType+"=formVal;}"}else if(document.all){var fcText="document.all.willDetails."+formFld+"."+elType+"=formVal;"}else{var fcText="willDetails."+formFld+"."+elType+"=formVal;"}hEcText=fcText;eval(fcText)}}function ValidateFelType(typE){var OK=0;var AllowedSetFels=new Array("text","hidden","checkbox","submit","textarea","select","radio");for(var i=0;i0){return true}else{return false}}function retrFel_radio(calledBy,elType,formFld){var foundEl=0;var RetVal="";var raText="";if((elType!="value")&&(elType!="checked")&&(elType!="length")){OpFelErrs(calledBy,"retrFel_radio",formFld,"","Element type should be `value` or `checked` or `length` but it was actually `"+elType+"`")}else if(elType=="checked"){raText="if(document.getElementById('"+formFld+"')) {RetVal=document.getElementById('"+formFld+"').checked; foundEl++;} else if (document.getElementById('willDetails')."+formFld+") {RetVal=document.getElementById('willDetails')."+formFld+".checked; foundEl++;}";hEcText=raText;eval(raText);if(foundEl==0){OpFelErrs(calledBy,"retrFel_radio",formFld,"","document.getElementById did not find an Element to set "+elType)}}else if(elType=="value"){var elem=document.getElementById('willDetails').elements;var FldLen=formFld.length;RetVal=-1;for(var i=0;i0){if(RadElm){RetVal=RadElm.length}if(RetVal){if(!isInt(RetVal)){foundEl=0}}else{foundEl=0}if(foundEl==0){raText="if(document.getElementsByName('"+formFld+"')) {var RadElm=document.getElementsByName('"+formFld+"'); foundEl++;}";hEcText=raText;eval(raText);if(foundEl>0){RetVal=RadElm.length}}}if(foundEl==0){OpFelErrs(calledBy,"retrFel_radio",formFld,"","document.getElementById did not manage to get Element "+elType)}}return RetVal}function retrFel_select(calledBy,elType,formFld){var foundEl=0;var RetVal="";if(elType=="value"){var siText="if(document.getElementById('"+formFld+"')) {var SlctElm=document.getElementById('"+formFld+"');foundEl+=SlctElm.length;} else if (document.getElementById('willDetails')."+formFld+") {var SlctElm=document.getElementById('willDetails')."+formFld+";foundEl+=SlctElm.length;}";hEcText=siText;eval(siText);if(foundEl==0){OpFelErrs(calledBy,"retrFel_select",formFld,"","getElementById did not find the `Select` field "+formFld)}else if(SlctElm.length<=0){OpFelErrs(calledBy,"retrFel_select",formFld,"","No Select Options were found for the `Select` field "+formFld)}else{var x=SlctElm.selectedIndex;if(x>=0){RetVal=SlctElm.options[x].value}else{RetVal=""}}}else{OpFelErrs(calledBy,"retrFel_select",formFld,"","Element type should be `value` but it was actually `"+elType+"`")}return RetVal}function retrFel_checkbox(calledBy,elType,formFld){var foundEl=0;var RetVal="";if((elType=="checked")||(elType=="value")){var siText="if(document.getElementById('"+formFld+"')) {var ChBxElm=document.getElementById('"+formFld+"');foundEl++;} else if (document.getElementById('willDetails')."+formFld+") {var ChBxElm=document.getElementById('willDetails')."+formFld+";foundEl++;}";hEcText=siText;eval(siText);if(foundEl==0){OpFelErrs(calledBy,"retrFel_checkbox",formFld,"","getElementById did not find the `Checkbox` field "+formFld)}else{RetVal=ChBxElm.checked}if(elType=="value"){if((RetVal==false)||(RetVal=="false")){RetVal=""}else{RetVal="1"}}}else{OpFelErrs(calledBy,"retrFel_checkbox",formFld,"","Element type should be `checked` or `value` but it was actually `"+elType+"`")}return RetVal}function retrFel_text(calledBy,elType,formFld){var Retval=retrFel_generic("retrFel_text",calledBy,elType,formFld);return Retval}function retrFel_textarea(calledBy,elType,formFld){var Retval=retrFel_generic("retrFel_textarea",calledBy,elType,formFld);return Retval}function retrFel_submit(calledBy,elType,formFld){var Retval=retrFel_generic("retrFel_submit",calledBy,elType,formFld);return Retval}function retrFel_hidden(calledBy,elType,formFld){var Retval=retrFel_generic("retrFel_hidden",calledBy,elType,formFld);return Retval}function retrFel_generic(origCaller,calledBy,elType,formFld){var foundEl=0;var RetVal="";var siText="if(document.getElementById('"+formFld+"')) {RetVal=document.getElementById('"+formFld+"')."+elType+";foundEl++;} else if (document.getElementById('willDetails')."+formFld+") {RetVal=document.getElementById('willDetails')."+formFld+"."+elType+";foundEl++;}";hEcText=siText;eval(siText);if(foundEl==0){OpFelErrs(calledBy,origCaller,formFld,"","getElementById did not find the field "+formFld)}return RetVal}function retrFel(calledBy,elType,formFld){var RExecutedOK=0;var rfText="";var RgIDtype="";var getVal="";var Rslt="FAILED";var fcText="";if((FelType[formFld])&&(ValidateFelType(FelType[formFld]))&&(document.getElementById)){RgIDtype=FelType[formFld];if(elType=="type"){RExecutedOK++;getVal=FelType[formFld];Rslt="OK"}else{rfText="getVal=retrFel_"+FelType[formFld]+"('"+calledBy+"','"+elType+"','"+formFld+"');";RExecutedOK++;hEcText=rfText;eval(rfText);Rslt="OK"}}else if(document.getElementById){rfText="RgIDtype=document.getElementById('"+formFld+"').type;";hEcText=rfText;eval(rfText);if((!RgIDtype)||(RgIDtype=="undefined")){rfText="RgIDtype=document.getElementById('willDetails')."+formFld+".type;";hEcText=rfText;eval(rfText)}if((RgIDtype)&&(RgIDtype!="undefined")){if(elType=="type"){RExecutedOK++;getVal=RgIDtype}else{if(RgIDtype.substring(0,6)=='select'){RgIDtype='select'}if(ValidateFelType(RgIDtype)){rfText="getVal=retrFel_"+RgIDtype+"('"+calledBy+"','"+elType+"','"+formFld+"');";RExecutedOK++;Rslt="NO_FELTYPE";hEcText=rfText;eval(rfText)}}}}if(RExecutedOK==0){if(!FelType[formFld]){OpFelErrs(calledBy,"retrFel",formFld,formVal,"Element field: `"+formFld+"` - No FelType Array Value found")}else if(!ValidateFelType(FelType[formFld])){OpFelErrs(calledBy,"retrFel",formFld,formVal,"Element field: `"+formFld+"` - FelType Array Value `"+FelType[formFld]+"` is invalid")}else if(!document.getElementById){OpFelErrs(calledBy,"retrFel",formFld,formVal,"Browser does not support getElementById")}else if(!RgIDtype){OpFelErrs(calledBy,"retrFel",formFld,formVal,"Tried to use getElementById to get field type for "+formFld+" but it didn`t return anything")}else if(!ValidateFelType(RgIDtype)){OpFelErrs(calledBy,"retrFel",formFld,formVal,"Used getElementById to get field type for "+formFld+" but the returned value `"+RgIDtype+"` is invalid")}if(document.getElementById){fcText="if (document.getElementById('"+formFld+"')) {getVal=document.getElementById('"+formFld+"')."+elType+";} else if (document.getElementById('willDetails')."+formFld+") {getVal=document.getElementById('willDetails')."+formFld+"."+elType+";}";hEcText=fcText;eval(fcText)}if((foundVal==0)&&(document.all)){fcText="if (document.all.willDetails."+formFld+") {getVal=document.all.willDetails."+formFld+"."+elType+";}";hEcText=fcText;eval(fcText)}if(foundVal==0){fcText="if (willDetails."+formFld+") {getVal=willDetails."+formFld+"."+elType+";}";hEcText=fcText;eval(fcText)}}if((elType=="value")&&((RgIDtype=="text")||(RgIDtype=="textarea"))){getVal=getVal.replace(/\'/gi,'`');getVal=getVal.replace(/\"/gi,'`');getVal=getVal.replace(/\;/gi,' ')}if((LiveOrTest=="test")||(EditType=="ADMIN")){AuditLogWrite(qaFindPage().substring(0,4),"retrFel",calledBy,Rslt,"Returned the following "+elType.toUpperCase()+" of field "+formFld+" to function :- "+getVal)}return getVal}function retrSty(elm,elmSty){if(document.getElementById){var fcText='var getElm=document.getElementById("'+elm+'");';eval(fcText);var fcText='var getVal=getElm.style.'+elmSty+';';eval(fcText)}else if(document.all){var fcText='var getElm=document.all.'+elm+';';eval(fcText);var fcText='var getVal=getElm.style.'+elmSty+';';eval(fcText)}else{var fcText='var getVal='+elm+'.style.'+elmSty+';';eval(fcText)}return getVal}function setSty(elm,elmSty,elmVal){if(document.getElementById){var fcText='var getElm=document.getElementById("'+elm+'");';eval(fcText);var fcText='getElm.style.'+elmSty+'=elmVal;';eval(fcText)}else if(document.all){var fcText='var getElm=document.all.'+elm+';';eval(fcText);var fcText='getElm.style.'+elmSty+'=elmVal;';eval(fcText)}else{var fcText=elm+'.style.'+elmSty+'=elmVal;';eval(fcText)}}function rtIHt(ihID){var RetVal="";if(ihID){if(document.getElementById){var thisID=document.getElementById(ihID);RetVal=thisID.innerHTML}else if(document.all){var thisID=document.all[ihID];RetVal=thisID.innerHTML}else{var fcText="RetVal="+ihID+".innerHTML;";eval(fcText)}}return(RetVal)}function stIHt(ihID,ihVAL){if(ihID){if(document.getElementById){var thisID=document.getElementById(ihID);if(thisID){thisID.innerHTML=insHTML1+ihVAL+insHTML2}}else if(document.all){var thisID=document.all[ihID];thisID.innerHTML=insHTML1+ihVAL+insHTML2}else{var fcText=ihID+".innerHTML=insHTML1+ihVAL+insHTML2;";eval(fcText)}}}function checkExit(){var chkEx="";if((chkEx=="YES")&&(validExit!="YES")&&(!isEmail(retrFel('checkExit','value',"h_email")))&&(!h_As_I)){var exWidth=520;var exHeight=595;var exTop=0;var exLeft=0;var avHeight=parseInt(window.screen.availHeight);if(!avHeight){avHeight=screen.height}var avWidth=parseInt(window.screen.availWidth);if(!avWidth){avWidth=screen.width}exLeft=parseInt(0.5*(avWidth-exWidth));exTop=parseInt(0.5*(avHeight-exHeight));var x="";for(var i=0;i
"}stIHt("page0Bar",qaProgBar)}function qaClrPage(){for(var i=1;i<=5;i++){cText='stIHt("page0Part'+i+'","");';eval(cText)}stIHt("page0Part3Msg","");stIHt("NavLinks","");stIHt("page0Part1_2","")}function doChSelect(){FelType["process_mode"]="hidden";prvPrMde=retrFel('doChSelect','value',"process_mode");if((qChSite=="YES")&&(qaTrial=="YES")&&((!ChaRity)||(ChaRity=="DEFAULT"))){FelType.length=0;FolderBlankTop.style.visibility="visible";qaClrPage();qaSetPb('H');var h1="Which Charity do you want our £10 donation to go to?";var h2="Thank you for making your Will via Will Bequest. In return, we donate £10 to a charity of your choice.
Charity Choice has over 10,000 registered charities for you to choose from. To nominate a charity click on 'Charity' below. Do not type anything in the box.
If you would prefer us not to make a donation, tick where shown. ";var h3='
");qaGnotes="CHARSLCT"}else{if((qaTrial)&&(!qaPrevSumm)){LoadFromCookies()}doQ1()}}function doQs(){for(var i=0;i<=qvMaxGifts;i++){if(i<10){var zeRoi="00"+i}else if(i<100){var zeRoi="0"+i}else{var zeRoi=i}cText='if (qvGI'+zeRoi+'N) {if (i>qgNr) {qgNr=i;}}';eval(cText)}if(qgNr>=0){qbGifts()}qaProcess();if(pDoQsDiscr){eval(pDoQsDiscr)}}function qaProcess(){if((qDirection>0)&&(qaStack[qaPosn]=="C831")){qaPosn++}qaGnotes=qaStack[qaPosn].substring(0,4);var qnxt="1";qaType=qaStack[qaPosn].substring(0,1);qaParm=qaStack[qaPosn].substring(1,4);if(qaType=="M"){while(qaType=="M"){qaPosn++;if(qaStack[qaPosn]){qaType=qaStack[qaPosn].substring(0,1);qaParm=qaStack[qaPosn].substring(1,4)}else{qaType="C";qaParm=""}}}if((qaType)&&(qaParm)){if((qaType==q1stType)&&(qaParm==q1stParm)){qnxt=1}else if(qaPosn>0){qnxt="2"}cText="qaPro"+qaType+"('"+qaParm+"','"+qnxt+"');";eval(cText)}else{qaProC("999")}}function qaQ800L800toL810(){try{if ((qaVals[qaPosn]=='1')&&(qaStack[qaPosn].substring(0,4)=='Q800')&&(qvTYPE=='MIRR')&&((qaStack[qaPosn+1].substring(0,4)=='C820')||(qaStack[qaPosn+2].substring(0,4)=='C820'))) {try {try{seTqaProQupdObj('qaQ800L800toL810');qaProQupdObj.LastVal[qaStack[qaPosn]]='2';console.log('Tricked qaProQupd into thinking Last Val was 2');}catch(e){console.log('Tricking qaProQupd into thinking Last Val was 2 failed with error: '+e.message);}qaProQupd('L810');console.log('Stack was set to LPA for SINGLE LPA (L800) so CHANGED to MIRROR LPAs(L810)');}catch(e){console.log('Trying qaProQupd(L810) failed with error: '+e.message);}}}catch(e){console.log('Inside function qaQ800L800toL810 failed with error: '+e.message);}}function qaProQ(qnr,qnxt){try{qaQ800L800toL810();}catch(e){console.log('Trying qaQ800L800toL810 failed with error: '+e.message);}FelType.length=0;var qOrigQnr=qnr;if(qnr=="801"){qnr="851";qaStack[qaPosn]="Q851"+qaStack[qaPosn].substring(4);qaParm="851"}if(qnr=="805"){qnr="855";qaStack[qaPosn]="Q855"+qaStack[qaPosn].substring(4);qaParm="855"}if(qnr=="806"){qbQ806()}if((qnr=="802")||(qnr=="803")){if(nrAys==1){qhRepl802="802"}if(qnr!=qhRepl802){qaStack[qaPosn]="Q"+qhRepl802+qaStack[qaPosn].substring(4,8);qChangedOvr=1}qnr=qhRepl802;qaParm=qnr}var p0P1='';var p0P1_2='';if((qnr=="970")||(qnr=="960")){qbEst();if(qMCused=="YES"){if(qnr=="970"){qnr=971;qaParm=971}if(qnr=="960"){qnr=961;qaParm=961}}qhQ970=qhDefQ970;if(qResClus<0){qResClus=0}if(qResClus<10){var Z="0"+qResClus}else{var Z=qResClus}cText="var myc=qvR_"+Z+"_00_N;";eval(cText);myc=myc.toLowerCase();if(myc=='my children'){qhQ970="What if none of your children survive you?,If none of your children, or the other beneficiaries of your Estate (listed below right) survive you what do you want to happen?"}}if((qnr=="972")||(qnr=="962")){qbEst();if(qMCused=="YES"){if(qnr=="972"){qnr=973;qaParm=973}if(qnr=="962"){qnr=963;qaParm=963}}if(qResClus<0){qResClus=0}if(qResClus<10){var Z="0"+qResClus}else{var Z=qResClus}cText="if ((qvR_"+Z+"_00_R==qvMRE)&&(qvR_"+Z+"_rows==0)) {var repL='N';} else {var repL='Y';}";eval(cText);if(repL=="Y"){qhQ972=qhSusQ972}else{qhQ972=qhDefQ972}cText="var myc=qvR_"+Z+"_00_N;";eval(cText);myc=myc.toLowerCase();if(myc=='my children'){qhQ972="What if none of your children survive you both?,If none of your children, or the other beneficiaries of your Estate (listed below right) survive both of you, what do you want to happen?"}}if(!q1stDone){q1stDone="Y";q1stType="Q";q1stParm=qnr;qnxt=1}var qhlpButs="";qaClrPage();qaRSel=-1;var qqhdr=[];var xTxt="";cText="if (qaQhdr"+qnr+".substring(0,4)=='var-') {var xTxt=qaQhdr"+qnr+".substring(4,99);}";eval(cText);if(xTxt){cText="qqhdr="+xTxt+".split(seP4);";eval(cText);cText="var qqhdr1="+xTxt+".substring(qqhdr[0].length+1,"+xTxt+".length);";eval(cText)}else{cText="qqhdr=qaQhdr"+qnr+".split(seP4);";eval(cText);cText="var qqhdr1=qaQhdr"+qnr+".substring(qqhdr[0].length+1,qaQhdr"+qnr+".length);";eval(cText)}p0P1=qqhdr[0];var qP3m="";var qP3v="";var qP1m="";cText="qP3v=qaQ3Msg"+qaParm+";";eval(cText);cText="qP4v=qaQ4Msg"+qaParm+";";eval(cText);var qP3vA=[];qP3vA=qP3v.split(seP4);if(qP3vA[0]){cText="qP3m="+qP3vA[0]+";";eval(cText);stIHt("page0Part3Msg",qP3m)}else{stIHt("page0Part3Msg","")}stIHt("page0Part4",qP4v);if(qP3vA[1]){cText="qP1m="+qP3vA[1]+";";eval(cText)}if(qqhdr1){p0P1_2=qP1m+qqhdr1}stIHt("page0Part1",p0P1);stIHt("page0Part1_2",p0P1_2);var p0P2='