ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.ClientScript.RegisterClientScriptBlock alerts gives Microsoft JScript runtime errorHi @josmijose100,<br />Please try the following<br /><br /><a href = 'link(Threads/211430/jQuery-Microsoft-JScript-runtime-error-Object-expected/)'>jQuery: Microsoft JScript runtime error: Object expected</a><br /><br />It might help you.<br /><br />Cheers Andrea.https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/Tue, 29 Dec 2015 05:51:08 GMTClientScript.RegisterClientScriptBlock alerts gives Microsoft JScript runtime error<p>please share your complete HTML code</p>https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/Tue, 29 Dec 2015 05:54:37 GMTClientScript.RegisterClientScriptBlock alerts gives Microsoft JScript runtime error<p>&nbsp;</p> <pre class="brush: html"> function addOption(selectbox, text, value) { var optn = document.createElement(&#34;OPTION&#34;); text = text.replace(/&amp;amp;/g, &#39;&amp;&#39;); value = value.replace(/&amp;amp;/g, &#39;&amp;&#39;); optn.text = text; optn.value = value; selectbox.options.add(optn); } function fillstates() { var stateArray = document.getElementById(&#39;hdnSateNames&#39;).value.split(&#34;#&#34;); for (var count = 0; count &lt;= stateArray.length-2; count++) { var state = stateArray[count]; var stateCode = (state.split(&#34;;&#34;)[0]); var StateName = (state.split(&#34;;&#34;)[1]); addOption(document.getElementById(&#39;BMO_ddlMortgagorState&#39;), StateName, stateCode); } } function fillAffiliates() { var AffiliateArray = document.getElementById(&#39;hdnAffiliates&#39;).value.split(&#34;#&#34;); for (var count = 0; count &lt;= AffiliateArray.length - 2; count++) { var Affiliate = AffiliateArray[count]; var AffiliateCode = (Affiliate.split(&#34;^&#34;)[0]); var AffiliateText = (Affiliate.split(&#34;^&#34;)[1]); addOption(document.getElementById(&#39;BMO_ddlAffiliate&#39;), AffiliateText, AffiliateCode); } } function fillGroups() { var GroupArray = document.getElementById(&#39;hdnGroup&#39;).value.split(&#34;#&#34;); for (var count = 0; count &lt;= GroupArray.length - 2; count++) { var Group = GroupArray[count]; var GroupValue = (Group.split(&#34;^&#34;)[0]); var GroupText = (Group.split(&#34;^&#34;)[1]); addOption(document.getElementById(&#39;BMO_ddlBMOGroup&#39;), GroupText, GroupValue); } }</pre> <p>in function &nbsp;addOption() the line&nbsp;&nbsp; &nbsp;&nbsp;</p> <pre class="brush: js"> selectbox.options.add(optn);</pre> <p>&nbsp;get the error</p>https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/Tue, 29 Dec 2015 06:02:55 GMTClientScript.RegisterClientScriptBlock alerts gives Microsoft JScript runtime error<blockquote><cite>Andrea says:</cite> <pre>Hi @josmijose100,<br />Please try the following<br /><br /><a href="http://www.aspforums.net/Threads/211430/jQuery-Microsoft-JScript-runtime-error-Object-expected/">jQuery: Microsoft JScript runtime error: Object expected</a><br /><br />It might help you.<br /><br />Cheers Andrea.</pre> </blockquote> <p>&nbsp;it doesnot help me.</p>https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/Tue, 29 Dec 2015 06:09:15 GMTClientScript.RegisterClientScriptBlock alerts gives Microsoft JScript runtime error<p>Hi,</p> <p>Here I have created sample.Please check if your selectbox is undefined of null while passing to addOption Method.</p> <p><span style="text-decoration: underline;">HTML</span></p> <pre class="brush: html">&lt;div&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(function () { fillstates(); }); function addOption(selectbox, text, value) { var optn = document.createElement(&#34;OPTION&#34;); text = text.replace(/&amp;amp;/g, &#39;&amp;&#39;); value = value.replace(/&amp;amp;/g, &#39;&amp;&#39;); optn.text = text; optn.value = value; selectbox.options.add(optn); } function fillstates() { var stateArray = document.getElementById(&#39;&lt;%=hdnSateNames.ClientID %&gt;&#39;).value.split(&#34;#&#34;); for (var count = 0; count &lt;= stateArray.length - 1; count++) { var state = stateArray[count]; var stateCode = (state.split(&#34;;&#34;)[0]); var StateName = (state.split(&#34;;&#34;)[1]); addOption(document.getElementById(&#39;&lt;%=BMO_ddlMortgagorState.ClientID%&gt;&#39;), StateName, stateCode); } } &lt;/script&gt; &lt;asp:HiddenField ID=&#34;hdnSateNames&#34; Value=&#34;01;Maharashtra#02;Goa&#34; runat=&#34;server&#34; /&gt; &lt;asp:DropDownList ID=&#34;BMO_ddlMortgagorState&#34; runat=&#34;server&#34;&gt; &lt;/asp:DropDownList&gt; &lt;/div&gt;</pre> <p><span style="text-decoration: underline;">Screenshot</span></p> <p><span style="text-decoration: underline;"><img src="https://i.imgur.com/r8ha6jf.jpg" alt="" width="226" height="90" /></span></p>https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/Tue, 29 Dec 2015 06:23:06 GMTClientScript.RegisterClientScriptBlock alerts gives Microsoft JScript runtime error<blockquote><cite>Shashikant says:</cite> <p>Hi,</p> <p>Here I have created sample.Please check if your selectbox is undefined of null while passing to addOption Method.</p> <p><span style="text-decoration: underline;">HTML</span></p> <div> <div id="highlighter_70716" class="syntaxhighlighter html"> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="gutter"> <div class="line number1 index0 alt2">1</div> <div class="line number2 index1 alt1">2</div> <div class="line number3 index2 alt2">3</div> <div class="line number4 index3 alt1">4</div> <div class="line number5 index4 alt2">5</div> <div class="line number6 index5 alt1">6</div> <div class="line number7 index6 alt2">7</div> <div class="line number8 index7 alt1">8</div> <div class="line number9 index8 alt2">9</div> <div class="line number10 index9 alt1">10</div> <div class="line number11 index10 alt2">11</div> <div class="line number12 index11 alt1">12</div> <div class="line number13 index12 alt2">13</div> <div class="line number14 index13 alt1">14</div> <div class="line number15 index14 alt2">15</div> <div class="line number16 index15 alt1">16</div> <div class="line number17 index16 alt2">17</div> <div class="line number18 index17 alt1">18</div> <div class="line number19 index18 alt2">19</div> <div class="line number20 index19 alt1">20</div> <div class="line number21 index20 alt2">21</div> <div class="line number22 index21 alt1">22</div> <div class="line number23 index22 alt2">23</div> <div class="line number24 index23 alt1">24</div> <div class="line number25 index24 alt2">25</div> <div class="line number26 index25 alt1">26</div> <div class="line number27 index26 alt2">27</div> <div class="line number28 index27 alt1">28</div> <div class="line number29 index28 alt2">29</div> <div class="line number30 index29 alt1">30</div> </td> <td class="code"> <div class="container"> <div class="line number1 index0 alt2"><code class="html plain">&lt;</code><code class="html keyword">div</code><code class="html plain">&gt;</code></div> <div class="line number2 index1 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">&lt;</code><code class="html keyword">script</code> <code class="html color1">type</code><code class="html plain">=</code><code class="html string">"text/javascript"</code> <code class="html color1">src</code><code class="html plain">=</code><code class="html string">"<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js</a>"</code><code class="html plain">&gt;&lt;/</code><code class="html keyword">script</code><code class="html plain">&gt;</code></div> <div class="line number3 index2 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">&lt;</code><code class="html keyword">script</code> <code class="html color1">type</code><code class="html plain">=</code><code class="html string">"text/javascript"</code><code class="html plain">&gt;</code></div> <div class="line number4 index3 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">$(function () {</code></div> <div class="line number5 index4 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">fillstates();</code></div> <div class="line number6 index5 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">});</code></div> <div class="line number7 index6 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">function addOption(selectbox, text, value) {</code></div> <div class="line number8 index7 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">var optn = document.createElement("OPTION");</code></div> <div class="line number9 index8 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">text = text.replace(/&amp;amp;/g, '&amp;');</code></div> <div class="line number10 index9 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">value = value.replace(/&amp;amp;/g, '&amp;');</code></div> <div class="line number11 index10 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">optn.text = text;</code></div> <div class="line number12 index11 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">optn.value = value;</code></div> <div class="line number13 index12 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">selectbox.options.add(optn);</code></div> <div class="line number14 index13 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">}</code></div> <div class="line number15 index14 alt2">&nbsp;</div> <div class="line number16 index15 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">function fillstates() {</code></div> <div class="line number17 index16 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">var stateArray = document.getElementById('&lt;%=hdnSateNames.ClientID %&gt;').value.split("#");</code></div> <div class="line number18 index17 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">for (var count = 0; count &lt;= stateArray.length - 1; count++) {</code></div> <div class="line number19 index18 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">var state = stateArray[count];</code></div> <div class="line number20 index19 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">var stateCode = (state.split(";")[0]);</code></div> <div class="line number21 index20 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">var StateName = (state.split(";")[1]);</code></div> <div class="line number22 index21 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">addOption(document.getElementById('&lt;%=BMO_ddlMortgagorState.ClientID%&gt;'), StateName, stateCode);</code></div> <div class="line number23 index22 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">}</code></div> <div class="line number24 index23 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">}</code></div> <div class="line number25 index24 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">&lt;/</code><code class="html keyword">script</code><code class="html plain">&gt;</code></div> <div class="line number26 index25 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code>&nbsp;</div> <div class="line number27 index26 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">&lt;</code><code class="html keyword">asp:HiddenField</code> <code class="html color1">ID</code><code class="html plain">=</code><code class="html string">"hdnSateNames"</code> <code class="html color1">Value</code><code class="html plain">=</code><code class="html string">"01;Maharashtra#02;Goa"</code> <code class="html color1">runat</code><code class="html plain">=</code><code class="html string">"server"</code> <code class="html plain">/&gt;</code></div> <div class="line number28 index27 alt1"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">&lt;</code><code class="html keyword">asp:DropDownList</code> <code class="html color1">ID</code><code class="html plain">=</code><code class="html string">"BMO_ddlMortgagorState"</code> <code class="html color1">runat</code><code class="html plain">=</code><code class="html string">"server"</code><code class="html plain">&gt;</code></div> <div class="line number29 index28 alt2"><code class="html spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="html plain">&lt;/</code><code class="html keyword">asp:DropDownList</code><code class="html plain">&gt;</code></div> <div class="line number30 index29 alt1"><code class="html plain">&lt;/</code><code class="html keyword">div</code><code class="html plain">&gt;</code></div> </div> </td> </tr> </tbody> </table> </div> </div> <p><span style="text-decoration: underline;">Screenshot</span></p> <p><img src="https://i.imgur.com/r8ha6jf.jpg" alt="" width="226" height="90" /></p> </blockquote> <p>&nbsp;IT doesnot work for me<br /><br /></p>https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/Tue, 29 Dec 2015 06:42:01 GMTClientScript.RegisterClientScriptBlock alerts gives Microsoft JScript runtime error<p>Hi,</p> <p>Please share you HTML code as well.</p>https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/Tue, 29 Dec 2015 07:22:57 GMTClientScript.RegisterClientScriptBlock alerts gives Microsoft JScript runtime error<p>Hi,</p> <p>I have checked you code It is working fine.I would suggest you to try the same code on new HTML page.</p> <p><span style="text-decoration: underline;">HTML</span></p> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;Bank Of Montreal(BMO)&lt;/title&gt; &lt;meta http-equiv=&#34;X-UA-Compatible&#34; content=&#34;IE=EmulateIE8&#34; /&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script src=&#34;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&#34; type=&#34;text/javascript&#34;&gt;&lt;/script&gt; &lt;link href=&#34;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&#34; rel=&#34;Stylesheet&#34; type=&#34;text/css&#34; /&gt; &lt;style type=&#34;text/css&#34;&gt; #ui-datepicker-div td { font-size: 10px; } &lt;/style&gt; &lt;script type=&#34;text/javascript&#34;&gt; function CloseWindow() { window.open(&#39;&#39;, &#39;_parent&#39;, &#39;&#39;); window.close(); } $(document).ready(function () { //to block date below 6 month for all user var minDt = -180; //to block previous date if user has no right to give effective date 6 months back if (document.getElementById(&#34;hdnUserRight&#34;).value == &#34;False&#34;) { minDt = 0; /// maxDate: +30, }; $(&#34;#BMO_txtEffectiveDate&#34;).datepicker({ changeMonth: true, changeYear: true, minDate: minDt, //maxDate: +30, onClose: function (dateText, instance) { var date, _dateFormat = instance.settings.dateFormat || $.datepicker._defaults.dateFormat, _settings = instance.settings; try { date = $.datepicker.parseDate(_dateFormat, dateText, _settings); } catch (e) { alert(&#34;Please enter valid date.&#34;); } if (date) { $(this).val($.datepicker.formatDate(_dateFormat, date, _settings)); } else { $(this).val(&#34;&#34;); } //New codes added for validation if user enter date manually without calender control var d = new Date(); d.setMonth(d.getMonth() - 6); var New_Date = new Date($(&#34;#BMO_txtEffectiveDate&#34;).val()); if (New_Date &lt; d) { alert(&#34;Date should not be less than 6 months from today.&#34;); $(&#39;#BMO_txtEffectiveDate&#39;).val(&#39;&#39;); return false; } var Today = new Date(); //to remove time from datepart Today.setHours(0, 0, 0, 0); var New_Date = new Date($(&#34;#BMO_txtEffectiveDate&#34;).val()); //to remove time from datepart New_Date.setHours(0, 0, 0, 0) if (document.getElementById(&#34;hdnUserRight&#34;).value == &#34;False&#34;) { if (New_Date &lt; Today) { alert(&#34;Date should not be less than CurrentDate.&#34;); $(&#39;#BMO_txtEffectiveDate&#39;).val(&#39;&#39;); return false; } } checkQueterDate(); } }); $(&#34;.ui-datepicker&#34;).css(&#34;font-size&#34;, &#34;10px&#34;); }); //to block Effective date from previous policy period if he is second quater function checkQueterDate() { var EffectiveDate = new Date($(&#34;#BMO_txtEffectiveDate&#34;).val()); var Today = new Date(); //to get effective date feb 01 var PolicyStartDate = new Date(Today.getFullYear(), 1, 1); //to get May 1-start odf ssecond quater var firstquarterEndDate = new Date(Today.getFullYear(), 4, 0); if (firstquarterEndDate &gt; Today &amp;&amp; EffectiveDate &lt; PolicyStartDate) { alert(&#34;Date should not be less than current policy period.&#34;); $(&#39;#BMO_txtEffectiveDate&#39;).val(&#39;&#39;); return false; } } var arrFields = new Array(); arrFields[0] = &#39;BMO_txtOutPrincipalBalance&#39;; arrFields[1] = &#39;BMO_txtContentsValue&#39;; arrFields[2] = &#39;BMO_txtBMONumber&#39;; function ajaxObject(url, callbackFunction) { var that = this; this.updating = false; this.abort = function () { if (that.updating) { that.updating = false; that.AJAX.abort(); that.AJAX = null; } } this.update = function (passData, postMethod) { if (that.updating) { return false; } that.AJAX = null; if (window.XMLHttpRequest) { that.AJAX = new XMLHttpRequest(); } else { that.AJAX = new ActiveXObject(&#34;Microsoft.XMLHTTP&#34;); } if (that.AJAX == null) { return false; } else { that.AJAX.onreadystatechange = function () { if (that.AJAX.readyState == 4) { that.updating = false; that.callback(that.AJAX.responseText, that.AJAX.status, that.AJAX.responseXML); that.AJAX = null; } } that.updating = new Date(); if (/post/i.test(postMethod)) { var uri = urlCall; that.AJAX.open(&#34;POST&#34;, uri, true); that.AJAX.setRequestHeader(&#34;Content-type&#34;, &#34;application/x-www-form-urlencoded&#34;); that.AJAX.setRequestHeader(&#34;Content-Length&#34;, passData.length); that.AJAX.send(passData); } else { var uri = urlCall; that.AJAX.open(&#34;GET&#34;, uri, true); that.AJAX.send(null); } return true; } } var urlCall = url; this.callback = callbackFunction || function () { }; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// function CallserverIndex(dealerName) { var dealer_Name = Trim(document.getElementById(dealerName).value); if (dealer_Name == &#34;Sel&#34;) { document.getElementById(&#39;BMO_txtOwnerAddress&#39;).value = &#34;&#34;; var e = document.getElementById(&#39;BMO_ddlOwnerState&#39;); e.options[0].selected = true; document.getElementById(&#39;BMO_txtOwnerZip&#39;).value = &#34;&#34;; document.getElementById(&#39;BMO_txtOwnerCity&#39;).value = &#34;&#34;; } if (dealer_Name != &#34;Sel&#34;) { var url = &#34;ApplyNow.aspx?ContentId=&#34; + document.getElementById(&#39;hdnContentId&#39;).value + &#34;&amp;dt=&#34; + new Date().getSeconds() + &#34;&amp;dealername=&#34; + dealer_Name; var myrequest1 = new ajaxObject(url, processData); myrequest1.callback = function (a, b, responseXML) { message = responseXML; var ApplicationList = responseXML.getElementsByTagName(&#34;ApplicationList&#34;); var count_ApplicationList = ApplicationList.length; if (ApplicationList[0].getElementsByTagName(&#34;Address&#34;)[0].firstChild.data != null) { document.getElementById(&#39;BMO_txtOwnerAddress&#39;).value = ApplicationList[0].getElementsByTagName(&#34;Address&#34;)[0].firstChild.data; } if (ApplicationList[0].getElementsByTagName(&#34;State&#34;)[0].firstChild.data != null) { var e = document.getElementById(&#39;BMO_ddlOwnerState&#39;); var statevalue = ApplicationList[0].getElementsByTagName(&#34;State&#34;)[0].firstChild.data; for (optionCounter = 0; optionCounter &lt; e.length; optionCounter++) { if (e.options[optionCounter].value == statevalue) { e.options[optionCounter].selected = true; } } } if (ApplicationList[0].getElementsByTagName(&#34;Zip&#34;)[0].firstChild.data != null) { document.getElementById(&#39;BMO_txtOwnerZip&#39;).value = ApplicationList[0].getElementsByTagName(&#34;Zip&#34;)[0].firstChild.data; } if (ApplicationList[0].getElementsByTagName(&#34;City&#34;)[0].firstChild.data != null) { document.getElementById(&#39;BMO_txtOwnerCity&#39;).value = ApplicationList[0].getElementsByTagName(&#34;City&#34;)[0].firstChild.data; } } myrequest1.update(); } } function AddItem(Text, Value) { var opt = document.createElement(&#34;option&#34;); document.getElementById(&#34;BMO_ddlReportingYear&#34;).options.add(opt); opt.text = Text; opt.value = Value; } function processData(responseText, responseStatus) { if (responseStatus == 200) { alert(responseText); } else { alert(responseStatus + &#39; -- Error Processing Request&#39;); } } function CallServerIndex_populateDealershipName() { var e = document.getElementById(&#39;BMO_ddlDealershipName&#39;); var url = &#34;ApplyNow.aspx?ContentId=&#34; + document.getElementById(&#39;hdnContentId&#39;).value + &#34;&amp;dt=&#34; + new Date().getSeconds() + &#34;&amp;Dealers=&#34; + 1; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { req = new ActiveXObject(&#34;Msxml2.XMLHTTP&#34;); } catch (e) { try { req = new ActiveXObject(&#34;Microsoft.XMLHTTP&#34;); } catch (e2) { req = false; } } } req.open(&#34;GET&#34;, url, true); req.onreadystatechange = callback; req.setRequestHeader(&#34;Content-Type&#34;, &#34;application/x-www-form-urlencoded&#34;); req.send(null); } //Ajax request, response handler function callback() { if (req.readyState == 4) { if (req.status == 200) { //parseMessage(); return true; } } return false; } function addOption(selectbox, text, value) { var optn = document.createElement(&#34;OPTION&#34;); text = text.replace(/&amp;amp;/g, &#39;&amp;&#39;); value = value.replace(/&amp;amp;/g, &#39;&amp;&#39;); optn.text = text; optn.value = value; selectbox.options.add(optn); } function fillstates() { var stateArray = document.getElementById(&#39;hdnSateNames&#39;).value.split(&#34;#&#34;); for (var count = 0; count &lt;= stateArray.length - 2; count++) { var state = stateArray[count]; var stateCode = (state.split(&#34;;&#34;)[0]); var StateName = (state.split(&#34;;&#34;)[1]); addOption(document.getElementById(&#39;BMO_ddlMortgagorState&#39;), StateName, stateCode); } } function fillAffiliates() { var AffiliateArray = document.getElementById(&#39;hdnAffiliates&#39;).value.split(&#34;#&#34;); for (var count = 0; count &lt;= AffiliateArray.length - 2; count++) { var Affiliate = AffiliateArray[count]; var AffiliateCode = (Affiliate.split(&#34;^&#34;)[0]); var AffiliateText = (Affiliate.split(&#34;^&#34;)[1]); addOption(document.getElementById(&#39;BMO_ddlAffiliate&#39;), AffiliateText, AffiliateCode); } } function fillGroups() { var GroupArray = document.getElementById(&#39;hdnGroup&#39;).value.split(&#34;#&#34;); for (var count = 0; count &lt;= GroupArray.length - 2; count++) { var Group = GroupArray[count]; var GroupValue = (Group.split(&#34;^&#34;)[0]); var GroupText = (Group.split(&#34;^&#34;)[1]); addOption(document.getElementById(&#39;BMO_ddlBMOGroup&#39;), GroupText, GroupValue); } } function Details() { fillstates(); fillAffiliates(); fillGroups(); document.getElementById(&#39;BMO_txtMortgagorFName&#39;).value = document.getElementById(&#39;hdnDealershipName&#39;).value; document.getElementById(&#39;BMO_txtMortgagorAddress&#39;).value = document.getElementById(&#39;hdnAddress&#39;).value; document.getElementById(&#39;BMO_txtMortgagorCity&#39;).value = document.getElementById(&#39;hdnCity&#39;).value; if (document.getElementById(&#39;hdnState&#39;).value == &#39;&#39;) { document.getElementById(&#39;BMO_ddlMortgagorState&#39;).selectedIndex = 0; } else { document.getElementById(&#39;BMO_ddlMortgagorState&#39;).value = document.getElementById(&#39;hdnState&#39;).value; } document.getElementById(&#39;BMO_txtMortgagorZip&#39;).value = document.getElementById(&#39;hdnZip&#39;).value; document.getElementById(&#39;BMO_txtBuildingValue&#39;).value = document.getElementById(&#39;hdnNewVehicleValue&#39;).value; document.getElementById(&#39;BMO_txtContentsValue&#39;).value = document.getElementById(&#39;hdnUsedVehicleValue&#39;).value; document.getElementById(&#39;BMO_txtBMONumber&#39;).value = document.getElementById(&#39;hdnRoadVehicleValue&#39;).value; } &lt;/script&gt; &lt;/head&gt; &lt;body style=&#34;background: #6B9AAD url(_gfx/bgrd_tile.jpg) repeat-x fixed 0 0;&#34; onload=&#34;CallServerIndex_populateDealershipName();Details();&#34;&gt; &lt;form name=&#34;Form1&#34; method=&#34;post&#34; action=&#34;ApplyNow.aspx?Userid=MQ%3d%3d&#34; id=&#34;Form1&#34;&gt; &lt;div&gt; &lt;input type=&#34;hidden&#34; name=&#34;__EVENTTARGET&#34; id=&#34;__EVENTTARGET&#34; value=&#34;&#34; /&gt; &lt;input type=&#34;hidden&#34; name=&#34;__EVENTARGUMENT&#34; id=&#34;__EVENTARGUMENT&#34; value=&#34;&#34; /&gt; &lt;input type=&#34;hidden&#34; name=&#34;__VIEWSTATE&#34; id=&#34;__VIEWSTATE&#34; value=&#34;/wEPDwUJLTM5MDQyNjA5ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUJYnRuU3VibWl0Euf2EExuk1tVHx9vna6ZDMMH8yM=&#34; /&gt; &lt;/div&gt; &lt;script type=&#34;text/javascript&#34;&gt; //&lt;![CDATA[ var theForm = document.forms[&#39;Form1&#39;]; if (!theForm) { theForm = document.Form1; } function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } //]]&gt; &lt;/script&gt; &lt;script&gt; CurrDate = &#39;12/29/2015&#39;;&lt;/script&gt; &lt;script&gt; function ValidateSection() { switch (i) { default: return true; break; } } DivCount = 0;&lt;/script&gt; &lt;div&gt; &lt;input type=&#34;hidden&#34; name=&#34;__VIEWSTATEGENERATOR&#34; id=&#34;__VIEWSTATEGENERATOR&#34; value=&#34;6B424F7D&#34; /&gt; &lt;input type=&#34;hidden&#34; name=&#34;__EVENTVALIDATION&#34; id=&#34;__EVENTVALIDATION&#34; value=&#34;/wEWGgKNrNXVDgLCi9reAwKR1d+MAQLn2fC5DQL8oeOpAQL4s82PAgK17crhAQLzoL7iAgLlofLMBwLph5jtCALHqOWTBgLY7YrWCAKmmKvvCwLegcySDwLK8pSpDwLI5K+CAwKZlr35BwKsn5uIBQKY0eDtAQLWu+xnApjkmpAGAp24utIOAomaw/8FArHAifIEAqO3vZICAunNqfII6GZurpIIC9ZPA6J2ju7llHuJ3i0=&#34; /&gt; &lt;/div&gt; &lt;table style=&#34;width: 805px; height: 100%; background-color: #ffffff&#34; align=&#34;center&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; border=&#34;0&#34;&gt; &lt;tr id=&#34;trContent&#34;&gt; &lt;td&gt; &lt;table style=&#34;width: 100%&#34; border=&#34;0&#34;&gt; &lt;tr&gt; &lt;td colspan=&#34;2&#34;&gt; &lt;img src=&#34;_gfx/previous_disabled.gif&#34; id=&#34;imgPreviousTop&#34; onclick=&#34;ShowDiv(&#39;P&#39;)&#34; alt=&#34;Previous&#34; style=&#34;display: none&#34; /&gt; &lt;/td&gt; &lt;td style=&#34;text-align: right&#34;&gt; &lt;img src=&#34;_gfx/next.gif&#34; id=&#34;imgNextTop&#34; onclick=&#34;ShowDiv(&#39;N&#39;)&#34; name=&#34;imgNextTop&#34; alt=&#34;Next&#34; style=&#34;display: none&#34; /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&#34;border: 1px&#34;&gt; &lt;td align=&#34;center&#34; colspan=&#34;3&#34;&gt; &lt;center&gt; &lt;span id=&#34;spnHeader&#34;&gt; &lt;table style=&#34;background-color: #527683; width: 100%&#34; border=&#34;2&#34; rules=&#34;none&#34; cellspacing=&#34;1&#34; bordercolor=&#34;#013879&#34; cellpadding=&#34;3&#34;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style=&#34;height: 40%&#34;&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;text-align: center&#34;&gt; &lt;span style=&#34;color: #ffffff; font-size: 20px; font-weight: bold&#34;&gt;Bank of Montreal&lt;/span&gt; &lt;br /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;height: 40%&#34;&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/span&gt; &lt;/center&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&#34;center&#34; colspan=&#34;3&#34;&gt; &lt;span id=&#34;spnContent&#34;&gt; &lt;script&gt;&lt;/script&gt; &lt;div id=&#39;div0&#39;&gt; &lt;table style=&#34;border-bottom: #000066 0px solid; border-left: #000066 0px solid; width: 100%; border-top: #000066 0px solid; border-right: #000066 0px solid&#34; cellspacing=&#34;2&#34; bordercolor=&#34;#013879&#34; cellpadding=&#34;1&#34; align=&#34;left&#34;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style=&#34;text-align: left; width: 40%; vertical-align: middle&#34; bgcolor=&#34;#638294&#34; colspan=&#34;2&#34;&gt; &lt;font color=&#34;#ffffff&#34;&gt;Owner/Mortgagor&rsquo;s Information :&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;width: 50%&#34;&gt; Owner/Mortgagor&rsquo;s First Name &lt;/td&gt; &lt;td style=&#34;width: 50%&#34;&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtMortgagorFName&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;100&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Owner/Mortgagor&rsquo;s Last Name &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtMortgagorLName&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;100&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Owner/Mortgagor&rsquo;s Address : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtMortgagorAddress&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;100&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Owner/Mortgagor&rsquo;s City : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtMortgagorCity&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;100&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Owner/Mortgagor&rsquo;s State : &lt;/td&gt; &lt;td&gt; &lt;span&gt;&lt;span&gt; &lt;select style=&#34;width: 51%&#34; id=&#34;BMO_ddlMortgagorState&#34; onclick=&#34;&#34; onchange=&#34;&#34;&gt; &lt;option selected=&#34;&#34; value=&#34;NA&#34;&gt;Select&lt;/option&gt; &lt;/select&gt; &lt;/span&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Owner/Mortgagor&rsquo;s Zip : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input onblur=&#34;ZipOnBlur(this);&#34; style=&#34;width: 50%&#34; id=&#34;BMO_txtMortgagorZip&#34; onkeypress=&#34;return ZipKeyPress(this.value,event)&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;10&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Cost Center : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;!-- old &lt;input style=&#34;width: 17.6%&#34; id=&#34;BMO_txtCostCenter&#34; onkeypress=&#34;return NumberKeyPress(event)&#34; onblur=&#34;return NumberOnBlur(this)&#34; onclick=&#34;&#34; onchange=&#34;&#34;&gt;--&gt; &lt;input onblur=&#34;&#34; style=&#34;width: 50%&#34; id=&#34;BMO_txtCostCenter&#34; onfocus=&#34;&#34; onkeypress=&#34;return FKeyPress (this.value,event)&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;20&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Bank Region : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtBankRegion&#34; onkeypress=&#34;return FKeyPress (this.value,event)&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;100&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Property Type&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt; : &lt;/td&gt; &lt;td&gt; Commercial &lt;span&gt; &lt;input id=&#34;BMO_rdoPropTypeCommercial&#34; onclick=&#34;&#34; onchange=&#34;&#34; value=&#34;1&#34; checked=&#34;&#34; type=&#34;radio&#34; name=&#34;PropertyType&#34; /&gt;&lt;/span&gt; Residential &lt;span&gt; &lt;input id=&#34;BMO_rdoPropTypeResidential&#34; onclick=&#34;&#34; onchange=&#34;&#34; value=&#34;2&#34; type=&#34;radio&#34; name=&#34;PropertyType&#34; /&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Description of Property : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;textarea style=&#34;width: 95%&#34; id=&#34;BMO_txtDescOfProperty&#34; onclick=&#34;null&#34; onchange=&#34;null&#34; maxlength=&#34;500&#34;&gt; &lt;/textarea&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;text-align: left; width: 40%; vertical-align: middle&#34; bgcolor=&#34;#638294&#34; colspan=&#34;2&#34;&gt; &lt;font color=&#34;#ffffff&#34;&gt;Relationship Manager/Employee Requesting Information :&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Relationship Manager/Employee Requesting Loan First Name: &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtRelManagerFName&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;100&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Relationship Manager /Employee Requesting Loan Last Name: &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtRelManagerLName&#34; onclick=&#34;&#34; onchange=&#34;&#34; maxlength=&#34;100&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Relationship Manager Phone Number&lt;!--&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt;--&gt; : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input onblur=&#34;return PhoneOnBlur(this)&#34; style=&#34;width: 50%&#34; id=&#34;BMO_txtRelManagerPhone&#34; onkeypress=&#34;return PhoneKeyPress(this.value,event)&#34; onclick=&#34;&#34; onchange=&#34;&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Relationship Manager Email Address&lt;!--&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt;--&gt; : &lt;/td&gt; &lt;td&gt; &lt;!--title=&#34;* Email Address&#34;--&gt; &lt;span&gt; &lt;input onblur=&#34;return checkemail(this.id)&#34; style=&#34;width: 50%&#34; id=&#34;BMO_txtRelManagerEmail&#34; onclick=&#34;&#34; onchange=&#34;&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; BMO Group&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt; : &lt;/td&gt; &lt;td&gt; &lt;span&gt;&lt;span&gt; &lt;select style=&#34;width: 51%&#34; id=&#34;BMO_ddlBMOGroup&#34; onclick=&#34;&#34; onchange=&#34;&#34; runat=&#34;server&#34; title=&#34;* Please select &#39;BMO Group&#39;.&#34;&gt; &lt;option selected=&#34;&#34; value=&#34;0&#34;&gt;Select&lt;/option&gt; &lt;/select&gt; &lt;/span&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; BMO Affiliate&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt; : &lt;/td&gt; &lt;td&gt; &lt;span&gt;&lt;span&gt; &lt;select style=&#34;width: 51%&#34; id=&#34;BMO_ddlAffiliate&#34; onclick=&#34;&#34; onchange=&#34;&#34; runat=&#34;server&#34; title=&#34;* Please select &#39;BMO Affiliate&#39;.&#34;&gt; &lt;option selected=&#34;&#34; value=&#34;0&#34;&gt;Select&lt;/option&gt; &lt;/select&gt; &lt;/span&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;text-align: left; width: 40%; vertical-align: middle&#34; bgcolor=&#34;#638294&#34; colspan=&#34;2&#34;&gt; &lt;font color=&#34;#ffffff&#34;&gt;Loan Information :&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Outstanding Principal Balance/Building Value&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt; : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input onblur=&#34;setNum(this.id);&#34; style=&#34;width: 50%&#34; id=&#34;BMO_txtBuildingValue&#34; onfocus=&#34;setNormalNum(this)&#34; title=&#34;* &#39;Outstanding Principal Balance/Building Value&#39;.&#34; onkeypress=&#34;return FKeyPress (this.value,event)&#34; onclick=&#34;&#34; maxlength=&#34;12&#34; /&gt; &lt;!-- CalculateSum(arrFields,&#39;AMSI_txtTotalMonthlyInven&#39;);&#34;--&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Contents Value : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input onblur=&#34;setNum(this.id);&#34; style=&#34;width: 50%&#34; id=&#34;BMO_txtContentsValue&#34; onfocus=&#34;setNormalNum(this)&#34; onkeypress=&#34;return FKeyPress (this.value,event)&#34; onclick=&#34;&#34; value=&#34;0&#34; maxlength=&#34;12&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; BMO Number : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtBMONumber&#34; onkeypress=&#34;return FKeyPress (this.value,event)&#34; onclick=&#34;&#34; maxlength=&#34;12&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Forceplace/REO&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt; : &lt;/td&gt; &lt;td&gt; &lt;span&gt;&lt;span&gt; &lt;select style=&#34;width: 51%&#34; id=&#34;BMO_ddlForceplaceREO&#34; title=&#34;* Please select &#39;Forceplace/REO&#39;.&#34; onclick=&#34;&#34; onchange=&#34;&#34; runat=&#34;server&#34;&gt; &lt;option selected=&#34;&#34; value=&#34;sel&#34;&gt;Select&lt;/option&gt; &lt;option value=&#34;1&#34;&gt;Forceplace&lt;/option&gt; &lt;option value=&#34;2&#34;&gt;REO&lt;/option&gt; &lt;/select&gt; &lt;/span&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Effective Date&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt; : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtEffectiveDate&#34; title=&#34;* &#39;Effective Date&#39;.&#34; onclick=&#34;&#34; onchange=&#34;&#34; /&gt; &lt;!--&lt;asp:TextBox ID=&#34;txtCheckDate&#34; runat=&#34;server&#34; CssClass=&#34;inpTxtE&#34;&gt;&lt;/asp:TextBox&gt; &lt;font color=&#34;#ff0066&#34;&gt;*&lt;/font&gt;--&gt; &lt;!--&lt;img id=&#34;img3&#34; onmouseover=&#34;this.style.cursor=&#39;hand&#39;&#34; title=&#34;Select Date&#34; onclick=&#34;javascript:showCalendarControl(document.getElementById(&#39;BMO_txtEffectiveDate&#39;)); return false;&#34; src=&#34;_gfx/icon_cal.gif&#34; align=&#34;middle&#34; name=&#34;imgEFFDate&#34; &gt; --&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;text-align: left; vertical-align: middle&#34; colspan=&#34;2&#34;&gt; &lt;br /&gt; &lt;p&gt; &lt;span&gt; &lt;input onblur=&#34;&#34; id=&#34;BMO_chkAgree&#34; title=&#34;* Please select if the information provided is correct and accurate.&#34; onclick=&#34;&#34; value=&#34;True&#34; type=&#34;checkbox&#34; /&gt; &lt;/span&gt;By Checking this box, typing your name and your title you are affirming the above information is correct and accurate.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan=&#34;2&#34;&gt; &lt;table width=&#34;100%&#34;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style=&#34;width: 15%&#34;&gt; Name/Signature&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt; : &lt;/td&gt; &lt;td style=&#34;width: 35%&#34;&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtSignature&#34; title=&#34;* &#39;Name/Signature&#39;.&#34; onclick=&#34;&#34; onchange=&#34;&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;td style=&#34;width: 7%&#34;&gt; Title&lt;b style=&#34;color: red&#34;&gt;*&lt;/b&gt; : &lt;/td&gt; &lt;td style=&#34;width: 43%&#34;&gt; &lt;span&gt; &lt;input style=&#34;width: 50%&#34; id=&#34;BMO_txtTitle&#34; title=&#34;* &#39;Title&#39;.&#34; onclick=&#34;&#34; onchange=&#34;&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Date : &lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input onblur=&#34;checkdate(this)&#34; style=&#34;width: 50%&#34; id=&#34;BMO_txtSignDate&#34; title=&#34;Date&#34; onclick=&#34;&#34; onchange=&#34;&#34; readonly=&#34;&#34; maxlength=&#34;10&#34; /&gt; &lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;/td&gt; &lt;td&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;img src=&#34;_gfx/previous_disabled.gif&#34; id=&#34;imgPrevious&#34; onclick=&#34;ShowDiv(&#39;P&#39;)&#34; alt=&#34;Previous&#34; style=&#34;display: none&#34; /&gt; &lt;/td&gt; &lt;td style=&#34;text-align: center&#34;&gt; &lt;input type=&#34;image&#34; name=&#34;btnSubmit&#34; id=&#34;btnSubmit&#34; src=&#34;_gfx/submit.gif&#34; onclick=&#34;if(CheckEnable()){var RsvalueCtrl = ValidateSectionControls();if(RsvalueCtrl==true){if(SetValue()){return true;}else{return false;}}else{return false;}}else{return false;};var SubmitConfirm= confirm(&#39;Do you want to Submit the form?&#39;);if (SubmitConfirm == false){return false};&#34; style=&#34;border-style: None; border-width: 0px;&#34; /&gt; &lt;/td&gt; &lt;td style=&#34;text-align: right&#34;&gt; &lt;img src=&#34;_gfx/next.gif&#34; id=&#34;imgNext&#34; onclick=&#34;ShowDiv(&#39;N&#39;)&#34; name=&#34;imgNext&#34; style=&#34;display: none&#34; /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id=&#34;trMessage&#34; style=&#34;display: none; height: 100%&#34;&gt; &lt;td style=&#34;width: 100%; height: 650px; text-align: center; vertical-align: top&#34;&gt; &lt;table style=&#34;width: 100%;&#34; border=&#34;0&#34;&gt; &lt;tr&gt; &lt;td style=&#34;padding-left: 13px; width: 800px; background-repeat: no-repeat; font-family: Arial; height: 168px; color: #ffffff; font-weight: bold&#34;&gt; &lt;span style=&#34;font-size: 24px&#34;&gt; &lt;br&gt; &lt;br&gt; Bank Of Montreal(BMO)&lt;/span&gt;&lt;span style=&#34;font-size: 13px&#34;&gt;&lt;br&gt; &lt;br&gt; Hays Companies Florida, 1000S Pine Island Rd, Suite 225, Plantation, FL 33324, Phone: 954-475-3600,&lt;br&gt; Toll Free: (800) 834-7688, Fax: 954-475-2120, or email: &lt;a style=&#34;color: white&#34; href=&#34;mailto: assyst@hayscompanies.com&#34;&gt; assyst@hayscompanies.com&lt;/a&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &amp;nbsp; &lt;/td&gt; &lt;/tr&gt; &lt;tr style=&#34;vertical-align: middle&#34;&gt; &lt;td style=&#34;vertical-align: middle; text-align: center; color: #660033; font-size: 20px; font-weight: bold&#34;&gt; Thank You!! &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;vertical-align: middle; text-align: center;&#34;&gt; Your application was&amp;nbsp;received successfully. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;vertical-align: middle; text-align: center;&#34;&gt; Please click&amp;nbsp; &lt;a id=&#34;lnkPrintView&#34; href=&#34;javascript:__doPostBack(&#39;lnkPrintView&#39;,&#39;&#39;)&#34;&gt; here&lt;/a&gt;&amp;nbsp;to &lt;font color=&#34;#660033&#34; size=&#34;3&#34;&gt;&lt;b&gt;View&lt;/b&gt;&lt;/font&gt; or &lt;font color=&#34;#660033&#34; size=&#34;3&#34;&gt;&lt;b&gt;Print&lt;/b&gt;&lt;/font&gt; the Application. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;vertical-align: middle; text-align: center;&#34;&gt; Please click&amp;nbsp; &lt;a id=&#34;lnkApplynow&#34; href=&#34;javascript:__doPostBack(&#39;lnkApplynow&#39;,&#39;&#39;)&#34;&gt; here&lt;/a&gt;&amp;nbsp;to &lt;font color=&#34;#660033&#34; size=&#34;3&#34;&gt;&lt;b&gt;Submit&lt;/b&gt;&lt;/font&gt; new Application. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&#34;vertical-align: middle; text-align: center;&#34;&gt; Please click &lt;a onclick=&#34;self.close();&#34; href=&#34;#&#34;&gt;here&lt;/a&gt; to close this window. &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;input name=&#34;hdSession&#34; type=&#34;hidden&#34; id=&#34;hdSession&#34; value=&#34;BMO&#34; /&gt; &lt;input name=&#34;hdKey&#34; type=&#34;hidden&#34; id=&#34;hdKey&#34; /&gt; &lt;input name=&#34;hdID&#34; type=&#34;hidden&#34; id=&#34;hdID&#34; /&gt; &lt;input name=&#34;hdValue&#34; type=&#34;hidden&#34; id=&#34;hdValue&#34; /&gt; &lt;input name=&#34;hdnCurrYear&#34; type=&#34;hidden&#34; id=&#34;hdnCurrYear&#34; /&gt; &lt;input name=&#34;hdnUserRight&#34; type=&#34;hidden&#34; id=&#34;hdnUserRight&#34; value=&#34;True&#34; /&gt; &lt;input name=&#34;stateID&#34; type=&#34;hidden&#34; id=&#34;stateID&#34; /&gt; &lt;input name=&#34;professionId&#34; type=&#34;hidden&#34; id=&#34;professionId&#34; /&gt; &lt;input name=&#34;hdnDealershipName&#34; type=&#34;hidden&#34; id=&#34;hdnDealershipName&#34; /&gt; &lt;input name=&#34;hdnAddress&#34; type=&#34;hidden&#34; id=&#34;hdnAddress&#34; /&gt; &lt;input name=&#34;hdnCity&#34; type=&#34;hidden&#34; id=&#34;hdnCity&#34; /&gt; &lt;input name=&#34;hdnState&#34; type=&#34;hidden&#34; id=&#34;hdnState&#34; /&gt; &lt;input name=&#34;hdnZip&#34; type=&#34;hidden&#34; id=&#34;hdnZip&#34; /&gt; &lt;input name=&#34;hdnNewVehicleValue&#34; type=&#34;hidden&#34; id=&#34;hdnNewVehicleValue&#34; /&gt; &lt;input name=&#34;hdnUsedVehicleValue&#34; type=&#34;hidden&#34; id=&#34;hdnUsedVehicleValue&#34; /&gt; &lt;input name=&#34;hdnDemoVehicleValue&#34; type=&#34;hidden&#34; id=&#34;hdnDemoVehicleValue&#34; /&gt; &lt;input name=&#34;hdnRoadVehicleValue&#34; type=&#34;hidden&#34; id=&#34;hdnRoadVehicleValue&#34; /&gt; &lt;input name=&#34;hdnTotalInventory&#34; type=&#34;hidden&#34; id=&#34;hdnTotalInventory&#34; /&gt; &lt;input name=&#34;hdnContentId&#34; type=&#34;hidden&#34; id=&#34;hdnContentId&#34; value=&#34;1259&#34; /&gt; &lt;input name=&#34;hdnSateNames&#34; type=&#34;hidden&#34; id=&#34;hdnSateNames&#34; value=&#34;AL;Alabama#AK;Alaska#AZ;Arizona#AR;Arkansas#CA;California#CO;Colorado#CT;Connecticut#DE;Delaware#DC;District of Columbia#FL;Florida#GA;Georgia#HI;Hawaii#ID;Idaho#IL;Illinois#IN;Indiana#IA;Iowa#KS;Kansas#KY;Kentucky#LA;Louisiana#ME;Maine#MD;Maryland#MA;Massachusetts#MI;Michigan#MN;Minnesota#MS;Mississippi#MO;Missouri#MT;Montana#NE;Nebraska#NV;Nevada#NH;New Hampshire#NJ;New Jersey#NM;New Mexico#NY;New York#NC;North Carolina#ND;North Dakota#OH;Ohio#OK;Oklahoma#OR;Oregon#PA;Pennsylvania#RI;Rhode Island#SC;South Carolina#SD;South Dakota#TN;Tennessee#TX;Texas#UT;Utah#VT;Vermont#VA;Virginia#WA;Washington#WV;West Virginia#WI;Wisconsin#WY;Wyoming#&#34; /&gt; &lt;input name=&#34;hdnAffiliates&#34; type=&#34;hidden&#34; id=&#34;hdnAffiliates&#34; value=&#34;1^BSH#2^CSH#3^DSH#4^HMAH#5^HNA#6^Legacy MI#7^LSH#9^M&amp;amp;I Bank#8^PSPS#27^Test 5#25^Test User#0^Test12#&#34; /&gt; &lt;input name=&#34;hdnGroup&#34; type=&#34;hidden&#34; id=&#34;hdnGroup&#34; value=&#34;2^Commercial#3^REO#1^Retail/Small Business#&#34; /&gt; &lt;script&gt; if (document.getElementById(&#34;BMO_txtDescOfProperty&#34;)) { document.getElementById(&#39;BMO_txtDescOfProperty&#39;).value = &#34;&#34;; } &lt;/script&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p><span style="text-decoration: underline;">Screenshot</span></p> <p><span style="text-decoration: underline;"><img src="https://i.imgur.com/9UGyM0k.gif" alt="" width="468" height="297" /></span></p>https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/https://www.aspforums.net:443/Threads/196895/ClientScriptRegisterClientScriptBlock-alerts-gives-Microsoft-JScript-runtime-error/Tue, 29 Dec 2015 08:28:01 GMT