-
Notifications
You must be signed in to change notification settings - Fork 15
/
Checkout.aspx
577 lines (559 loc) · 32.5 KB
/
Checkout.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
<%@ Page Language="VB" Trace="false" AutoEventWireup="true" MasterPageFile="~/Skins/Kartris/Template.master"
CodeFile="checkout.aspx.vb" Inherits="_Checkout" Title="Checkout" MaintainScrollPositionOnPostback="True" %>
<%@ Register TagPrefix="user" TagName="CheckoutAddress" Src="~/UserControls/Front/CheckoutAddressPopup.ascx" %>
<%@ Register TagPrefix="user" TagName="AddressDetails" Src="~/UserControls/General/AddressDetails.ascx" %>
<%@ Register TagPrefix="user" TagName="KartrisLogin" Src="~/UserControls/Front/KartrisLogin.ascx" %>
<%@ Register TagPrefix="user" TagName="CreditCardInput" Src="~/UserControls/Front/CreditCardInput.ascx" %>
<%@ Register TagPrefix="user" Namespace="Kartris" Assembly="KartrisCheckboxValidator" %>
<asp:Content ID="cntMain" ContentPlaceHolderID="cntMain" runat="Server">
<div id="checkout">
<h1>
<asp:Literal ID="litCheckoutTitle" runat="server" Text="<%$ Resources: PageTitle_CheckOut%>"
EnableViewState="false" /></h1>
<!--
===============================
CUSTOMER LOGIN / CREATE USER
===============================
-->
<asp:MultiView ID="mvwCheckout" runat="server" ActiveViewIndex="0">
<asp:View ID="viwEmailInput" runat="server">
<div>
<user:KartrisLogin runat="server" ID="UC_KartrisLogin" ForSection="checkout" />
</div>
</asp:View>
<asp:View ID="viwCheckoutInput" runat="server">
<!--
===============================
PAYMENT METHODS
Dropdown if multiple choices
available, hidden if only one
choice.
===============================
-->
<asp:UpdatePanel runat="server" ID="updPaymentMethods" UpdateMode="Conditional">
<ContentTemplate>
<asp:PlaceHolder ID="phdPaymentMethods" runat="server">
<div class="section">
<h2>
<asp:Literal ID="litCheckoutPaymentMethod" runat="server" Text="<%$ Resources: FormLabel_SelectPayment %>"
EnableViewState="false" /></h2>
<asp:DropDownList CssClass="" ID="ddlPaymentGateways" runat="server" AutoPostBack="true" />
<asp:Literal ID="litPaymentGatewayHidden" runat="server" Visible="false"></asp:Literal>
<asp:RequiredFieldValidator EnableClientScript="True" ID="valPaymentGateways" runat="server"
ControlToValidate="ddlPaymentGateways" CssClass="error" InitialValue="::False" ForeColor="" ValidationGroup="Checkout"
Display="Dynamic" Text="<%$ Resources: Kartris, ContentText_RequiredField %>"></asp:RequiredFieldValidator>
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="phdCustomerChoicesInfo" runat="server" Visible="false">Some info
</asp:PlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
<div>
<asp:LinkButton ID="lnkbtnDummy" runat="server" Text="" />
<!--
===============================
POPUP FOR ERRORS
Ones with no client-side
validation...
===============================
-->
<ajaxToolkit:ModalPopupExtender ID="popExtender" runat="server" TargetControlID="lnkbtnDummy"
CancelControlID="btnCancel" PopupControlID="pnlErrorPopup" BackgroundCssClass="popup_background" />
<asp:Panel ID="pnlErrorPopup" runat="server" CssClass="popup" Style="display: none">
<h2>
<asp:Literal ID="litTitle" runat="server" Text="<%$ Resources: Kartris, ContentText_CorrectErrors %>"
EnableViewState="false" /></h2>
<asp:Literal runat="server" ID="litOtherErrors" Text="" EnableViewState="false"></asp:Literal>
<div>
<br />
<asp:Button CausesValidation="false" ID="btnOk" CssClass="button" runat="server"
Text="<%$ Resources: Kartris, ContentText_OK %>" />
</div>
<asp:LinkButton ID="btnCancel" CssClass="closebutton linkbutton" runat="server" Text="×"
CausesValidation="false" />
</asp:Panel>
<!--
===============================
STREET ADDRESSES
Billing / Shipping
===============================
-->
<asp:UpdatePanel runat="server" ID="updAddresses" UpdateMode="Conditional">
<ContentTemplate>
<div class="row collapse">
<!--
-------------------------------
BILLING ADDRESS
-------------------------------
-->
<div class="checkoutaddress small-12 large-6 columns">
<user:CheckoutAddress runat="server" ID="UC_BillingAddress" Title="<%$ Resources: Address, FormLabel_BillingAddress %>"
ErrorMessagePrefix="Billing " ValidationGroup="Billing" EnableValidation="true" />
</div>
<!--
-------------------------------
SHIPPING ADDRESS
-------------------------------
-->
<!-- Shipping Address Selection/Input Control-->
<asp:Panel ID="pnlShippingAddress" runat="server" Visible="false" CssClass="checkoutaddress small-12 large-6 columns">
<user:CheckoutAddress ID="UC_ShippingAddress" runat="server" ErrorMessagePrefix="Shipping "
ValidationGroup="Shipping" Title="<%$ Resources: Address, FormLabel_ShippingAddress %>" />
</asp:Panel>
</div>
<div class="spacer">
</div>
<!--
-------------------------------
SAME SHIPPING/BILLING CHECKBOX
-------------------------------
-->
<p>
<span class="checkbox">
<asp:CheckBox ID="chkSameShippingAsBilling" runat="server" Checked="true" AutoPostBack="true" />
<asp:Label ID="lblchkSameShipping" Text="<%$ Resources: Checkout, ContentText_SameShippingAsBilling %>"
runat="server" AssociatedControlID="chkSameShippingAsBilling" EnableViewState="true" /></span>
</p>
<!--
===============================
EU VAT NUMBER
===============================
-->
<asp:PlaceHolder ID="phdEUVAT" runat="server" Visible="false">
<div class="section" id="euvatsection">
<div class="row">
<div class="small-12 large-2 columns">
<asp:Label ID="lblEnterEUVAT" runat="server" Text="<%$ Resources: ContentText_EnterEUVat %>"
EnableViewState="false" AssociatedControlID="txtEUVAT" />
</div>
<div class="small-1 large-1 columns">
<strong>
<asp:Literal ID="litMSCode" runat="server" EnableViewState="true" /></strong>
</div>
<div class="small-10 large-3 columns">
<asp:TextBox ID="txtEUVAT" runat="server" EnableViewState="true" AutoPostBack="true"></asp:TextBox>
</div>
<div class="small-1 large-6 columns"> <asp:Literal ID="litValidationOfVATNumber" runat="server"></asp:Literal></div>
</div>
</div>
</asp:PlaceHolder>
<!--
===============================
EORI
===============================
-->
<asp:PlaceHolder ID="phdEORI" runat="server" Visible="false">
<div class="section" id="eorisection">
<div class="row">
<div class="small-12 large-2 columns">
<asp:Label ID="lblEORI" runat="server" Text="<%$ Resources: Kartris, ContentText_EORI %>"
EnableViewState="false" AssociatedControlID="txtEORI" />
</div>
<div class="small-1 large-1 columns">
</div>
<div class="small-10 large-3 columns">
<asp:TextBox ID="txtEORI" runat="server" EnableViewState="true" AutoPostBack="true"></asp:TextBox>
</div>
<div class="small-1 large-6 columns"> </div>
</div>
</div>
</asp:PlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
<div class="spacer">
</div>
</div>
<!--
-------------------------------
PURCHASE ORDER NUMBER
This field appears dynamically
if 'PO' (offline payment) is
selected.
-------------------------------
-->
<asp:UpdatePanel ID="updMain" runat="server">
<ContentTemplate>
<asp:PlaceHolder ID="phdPONumber" runat="server" Visible="false">
<div class="section" id="ponumbersection">
<div class="row">
<div class="small-12 large-2 columns">
<asp:Label ID="lblPONumber" runat="server" Text="<%$ Resources: Invoice, ContentText_PONumber %>"
EnableViewState="false" AssociatedControlID="txtPurchaseOrderNo" />
</div>
<div class="small-1 large-1 columns">
</div>
<div class="small-10 large-3 columns">
<asp:TextBox ID="txtPurchaseOrderNo" runat="server" EnableViewState="true" AutoPostBack="true"></asp:TextBox>
</div>
<div class="small-1 large-6 columns"> </div>
</div>
</div>
</asp:PlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
<!--
===============================
BASKET
===============================
-->
<div id="checkoutbasket">
<asp:UpdatePanel ID="updBasket" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="chkSameShippingAsBilling" />
</Triggers>
<ContentTemplate>
<div>
<user:BasketView ID="UC_BasketView" runat="server" ViewType="CHECKOUT_BASKET" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<!--
===============================
CUSTOMER COMMENTS BOX
frontend.checkout.comments.enabled
===============================
-->
<asp:PlaceHolder ID="phdCustomerComments" runat="server">
<h2>
<asp:Literal ID="litComments" runat="server" Text="<%$ Resources: Checkout, SubTitle_Comments %>"
EnableViewState="false" /></h2>
<div id="comments" style="margin-top: 10px;">
<asp:TextBox ID="txtComments" runat="server" TextMode="MultiLine"></asp:TextBox>
</div>
</asp:PlaceHolder>
<!--
===============================
ORDER EMAILS OPT-IN
backend.orders.emailupdates
===============================
-->
<asp:PlaceHolder ID="phdOrderEmails" runat="server">
<div class="section">
<h2>
<asp:Literal ID="litOrderEmails" runat="server" Text="<%$ Resources:Checkout,ContentText_OrderEmails%>"
EnableViewState="false" /></h2>
<p>
<asp:Literal ID="litOrderEmailsText" runat="server" Text="<%$ Resources:Checkout,ContentText_OrderEmailsText%>"
EnableViewState="false" />
</p>
<div class="inputform">
<span class="checkbox">
<asp:CheckBox ID="chkOrderEmails" runat="server" Checked="true" />
<asp:Label ID="litOrderEmailsYes" Text="<%$ Resources: Checkout, ContentText_OrderEmailsYes %>"
AssociatedControlID="chkOrderEmails" runat="server" EnableViewState="true" />
</span>
</div>
<div class="spacer">
</div>
</div>
</asp:PlaceHolder>
<!--
===============================
MAILING LIST OPT-IN
frontend.users.mailinglist.enabled
===============================
-->
<asp:PlaceHolder ID="phdMailingList" runat="server">
<div class="section">
<h2>
<asp:Literal ID="litMailingList" runat="server" Text="<%$ Resources: Kartris, PageTitle_MailingList%>" EnableViewState="false" /></h2>
<p>
<asp:Literal ID="litMailingListText" runat="server" Text="<%$ Resources: Checkout, ContentText_WantToMailingList%>"
EnableViewState="false" />
</p>
<div class="inputform">
<div>
<span class="checkbox">
<asp:CheckBox ID="chkMailingList" runat="server" Checked="false" />
<asp:Label ID="lblYesAddMe" Text="<%$ Resources: Checkout, ContentText_YesAddMe %>"
runat="server" AssociatedControlID="chkMailingList" EnableViewState="true" /></span>
</div>
</div>
<div class="spacer">
</div>
</div>
</asp:PlaceHolder>
<!--
===============================
SAVE BASKET
frontend.checkout.savebasket
===============================
-->
<asp:PlaceHolder ID="phdSaveBasket" runat="server">
<div class="section">
<h2>
<asp:Literal ID="litSaveBasket" runat="server" Text="<%$ Resources: Basket, ContentText_SaveBasket %>"
EnableViewState="false" /></h2>
<p>
<asp:Literal ID="litSaveBasketText" runat="server" Text="<%$ Resources: Checkout, ContentText_SaveBasketOnCheckout %>"
EnableViewState="false" />
</p>
<div class="inputform">
<span class="checkbox">
<asp:CheckBox ID="chkSaveBasket" runat="server" Checked="false" />
<asp:Label ID="lblSaveBasket" Text="<%$ Resources: Checkout, ContentText_SaveBasketYes %>"
runat="server" AssociatedControlID="chkSaveBasket" EnableViewState="true" /></span>
</div>
<div class="spacer">
</div>
</div>
</asp:PlaceHolder>
<!--
===============================
TERMS AND CONDITIONS AGREEMENT
frontend.checkout.termsandconditions
===============================
-->
<script type="text/javascript">
<!--
function toggle_visibility(id) {
var e = document.getElementById(id);
if (e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
//-->
</script>
<asp:PlaceHolder ID="phdTermsAndConditions" runat="server">
<div class="section">
<h2>
<asp:Literal ID="litContentTextTermsAndConditionsHeader" runat="server" Text="<%$ Resources: Checkout, ContentText_TermsAndConditionsHeader %>"
EnableViewState="false" /></h2>
<a href="javascript:toggle_visibility('terms');" class="link2 icon_new">
<asp:Literal ID="litContentTextTermsAndConditionsPopup" runat="server" Text="<%$ Resources: Checkout, ContentText_TermsAndConditionsPopup %>"
EnableViewState="false" /></a>
<div id="terms" style="display: none; margin-top: 10px;">
<div class="pad">
<asp:Literal ID="litContentTextTermsAndConditions" runat="server" Text="<%$ Resources: Checkout, ContentText_TermsAndConditions %>"
EnableViewState="false" />
</div>
</div>
<div class="spacer">
</div>
<div class="inputform">
<span class="checkbox">
<asp:CheckBox ID="chkTermsAndConditions" runat="server" />
<asp:Label ID="lblTermsAndConditions" Text="<%$ Resources: Checkout, ContentText_TermsAndConditionsCheck%>"
AssociatedControlID="chkTermsAndConditions" runat="server" EnableViewState="true" />
<!-- Just remove the AssociatedControlID property if we don't want to disable the proceed button if the Terms checkbox is unchecked -->
<user:CheckBoxValidator runat="server" ID="valTermsAndConditions" ControlToValidate="chkTermsAndConditions"
EnableClientScript="true" CssClass="error" ForeColor="" ValidationGroup="Checkout"
Display="Dynamic" Text="<%$ Resources: Kartris, ContentText_RequiredField %>" />
</span>
</div>
<div class="spacer">
</div>
</div>
</asp:PlaceHolder>
</asp:View>
<!--
===============================
ORDER CONFIRMATION PAGE
===============================
-->
<asp:View ID="viwCheckoutConfirm" runat="server">
<div id="confirmation">
<p>
<strong>
<asp:Literal ID="litReviewOrder" runat="server" Text="<%$ Resources: PageTitle_ReviewYourOrder %>"
EnableViewState="false" /></strong>
</p>
<div class="row collapse">
<!--
-------------------------------
BILLING ADDRESS
-------------------------------
-->
<div class="checkoutaddress small-12 large-6 columns">
<h2>
<asp:Literal ID="litBillingDetails" runat="server" Text="<%$ Resources: Address, ContentText_BillingAddress %>" EnableViewState="true" /></h2>
<user:AddressDetails ID="UC_Billing" runat="server" ShowLabel="false" ShowButtons="false" />
</div>
<!--
-------------------------------
SHIPPING ADDRESS
-------------------------------
-->
<div class="checkoutaddress small-12 large-6 columns">
<h2>
<asp:Literal ID="litShippingDetails" runat="server" Text="<%$ Resources: Address, ContentText_Shipping %>"
EnableViewState="true" /></h2>
<user:AddressDetails ID="UC_Shipping" runat="server" ShowLabel="false" ShowButtons="false" />
</div>
</div>
<div class="spacer">
</div>
<!--
-------------------------------
BASKET
-------------------------------
-->
<user:BasketView ID="UC_BasketSummary" runat="server" ViewType="CHECKOUT_BASKET"
ViewOnly="true" />
<!--
-------------------------------
ACTUAL AMOUNT
Converted to the process
currency of the payment gateway
if set
-------------------------------
-->
<asp:Panel ID="pnlProcessCurrency" runat="server" CssClass="section">
<h2>
<asp:Literal ID="litProcessCurrencyText" runat="server" Text="<%$ Resources: Email, EmailText_ProcessCurrencyExp1 %>"
EnableViewState="false" />
<asp:Label ID="lblProcessCurrency" runat="server"></asp:Label>
</h2>
</asp:Panel>
<!--
-------------------------------
COMMENTS
-------------------------------
-->
<asp:Panel ID="pnlComments" runat="server" CssClass="section">
<h2>
<asp:Literal ID="litComments2" runat="server" Text="<%$ Resources: Checkout, SubTitle_Comments %>"
EnableViewState="false" /></h2>
<asp:Label ID="lblComments" runat="server"></asp:Label>
</asp:Panel>
<!--
-------------------------------
CHECKED OPTIONS SUMMARY
-------------------------------
-->
<p>
<asp:Literal ID="litFormLabelSelectPayment" runat="server" Text="<%$ Resources: FormLabel_SelectPayment %>"
EnableViewState="false" />: <strong>
<asp:Literal ID="litPaymentMethod" runat="server" EnableViewState="true" /></strong>
</p>
<asp:Literal ID="litVATNumberText" runat="server"></asp:Literal>
<asp:Literal ID="litEORINumberText" runat="server"></asp:Literal>
<asp:Literal ID="litPONumberText" runat="server"></asp:Literal>
<br />
<div class="tick">
<asp:Literal ID="litOrderEmailsYes2" Text="<%$ Resources: Checkout, ContentText_OrderEmailsYes %>"
runat="server" EnableViewState="true" />
</div>
<div class="tick">
<asp:Literal ID="litMailingListYes" Text="<%$ Resources: Checkout, ContentText_YesAddMe %>"
runat="server" EnableViewState="true" />
</div>
<div class="tick">
<asp:Literal ID="litSaveBasketYes" Text="<%$ Resources: Checkout, ContentText_SaveBasketYes %>"
runat="server" EnableViewState="true" />
</div>
<asp:PlaceHolder ID="phdCreditCardInput" runat="server">
<div class="section">
<user:CreditCardInput runat="server" ID="UC_CreditCardInput" />
</div>
</asp:PlaceHolder>
<!--
-------------------------------
BrainTree Module Section
This field appears dynamically
if 'BrainTree' is
selected.
-------------------------------
-->
<asp:UpdatePanel ID="upBrainTree" runat="server">
<ContentTemplate>
<asp:PlaceHolder ID="phdBrainTree" runat="server" Visible="false">
<div class="section">
<asp:HiddenField ID="tbClientToken" runat="server" ClientIDMode="Static" />
<asp:HiddenField ID="tbPaymentMethodNonce" runat="server" ClientIDMode="Static" />
<asp:HiddenField ID="tbAmount" runat="server" ClientIDMode="Static" />
<div class="bt-drop-in-wrapper">
<div id="bt-dropin"></div>
</div>
</div>
</asp:PlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
<script type="text/javascript" src="https://js.braintreegateway.com/js/braintree-2.28.0.min.js"></script>
<script type="text/javascript">
var checkoutBT;
var active = false;
$(document).ready(function () {
$("#checkout .submitbuttons").on("click", "input[name*='btnBack']", function () {
console.log("btnback");
runTearDown();
__doPostBack('ctl00$cntMain$btnBack', 'OnClick');
});
});
function clientTokenChanged() {
var client_token = $("input[name*='tbClientToken']")[0].value;
braintree.setup(client_token, "dropin", {
container: "bt-dropin",
form: "frmMain",
onReady: function (integration) {
checkoutBT = integration;
},
onError: function (payload) {
console.log(payload);
},
paymentMethodNonceReceived: function (event, nonce) {
console.log(event);
$("input[name*='tbPaymentMethodNonce']")[0].value = nonce;
},
onPaymentMethodReceived: function (obj) {
//$("input[name*='tbClientToken']")[0].value = "Card finishing with: ";
__doPostBack('ctl00$cntMain$btnProceed', 'OnClick');
}
});
}
function runTearDown() {
if (typeof checkoutBT != 'undefined') {
if (checkoutBT !== null) {
// When you are ready to tear down your integration
checkoutBT.teardown(function () {
checkoutBT = null;
// braintree.setup can safely be run again!
});
}
}
}
</script>
</div>
</asp:View>
</asp:MultiView>
<!--
===============================
SUBMIT / BACK BUTTONS
Also validation summary
===============================
-->
<div class="submitbuttons">
<p>
<strong>
<asp:Literal ID="litFakeOrTest" runat="server" Text="<%$ Resources: Checkout, ContentText_FakeOrTestStatus %>"
EnableViewState="false" Visible="false" />
</strong>
</p>
<asp:Button ID="btnBack" CssClass="button" runat="server" Text="<%$ Resources: Checkout, FormButton_Back %>"
Visible="false" EnableViewState="true" />
<asp:Button ID="btnProceed" ValidationGroup="Checkout" CssClass="button" runat="server" Text="<%$ Resources: Checkout, ContentText_Proceed %>"
Visible="true" EnableViewState="true" CausesValidation="true" OnClientClick="Page_ClientValidate('Checkout');" />
<asp:ValidationSummary ID="valSummary" ValidationGroup="Checkout" runat="server"
CssClass="valsummary" DisplayMode="BulletList" ForeColor="" HeaderText="<%$ Resources: Kartris, ContentText_Errors %>" />
</div>
<!--
-------------------------------
POPUP ERRORS
General errors
-------------------------------
-->
<user:PopupMessage ID="UC_PopUpErrors" runat="server" />
<%
'This function below disables the scrolling function so
'when the page is submitted, we should see any errors in
'Validators
%>
<script type="text/javascript">
window.scrollTo = function () { }
</script>
</div>
</asp:Content>