-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgift_certificate.html
301 lines (276 loc) · 13.3 KB
/
gift_certificate.html
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
<script type="text/javascript" src="state_countryjs.asp"></script>
<script type="text/javascript">
var emailReq = 1;
</script>
<section id="update_account">
<!--START: upd_message-->
<div class="error">[update_message]</div>
<!--END: upd_message-->
<form action="myaccount.asp?action=updacc" method="post" name="form1" id="form1">
<input type="hidden" name="contactid" value="[contactid]" />
<input type="hidden" name="update" value="1" />
<h1 class="page_headers">[account_header-update-account]</h1>
<!--START: myAccount-->
<div class="button right"><a href="myaccount.asp" class="icon-btn icon-btn-prev">Back to My Account</a></div>
<!--END: myAccount-->
<div class="clear"></div>
<!--START: CATEGORY_HEADER-->
<div class="category-header" id="update_accountHeader">[CONTENT]</div>
<!--END: CATEGORY_HEADER-->
<div class="loginInfo">
<div class="titles">Login Information</div>
<div class="updaccField">
<label for="email">Email</label>
<input size="40" name="email" value="[email]" tabindex="1" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="pass_old">Old Password</label>
<input type="password" autocomplete="off" size="40" name="pass_old" value="" tabindex="2" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="pass">New Password</label>
<input type="password" autocomplete="off" size="40" name="pass" value="" tabindex="3" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="pass_new">Confirm New Password</label>
<input type="password" autocomplete="off" size="40" name="pass_new" value="" tabindex="4" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="billingInfo">
<div class="titles">Billing Information</div>
<div class="updaccField">
<label for="billing_company">Company</label>
<input size="40" name="billing_company" value="[billing_company]" tabindex="5" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_firstname">First Name</label>
<input size="40" name="billing_firstname" value="[billing_firstname]" tabindex="6" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_lastname">Last Name</label>
<input size="40" name="billing_lastname" value="[billing_lastname]" tabindex="7" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_address">Address</label>
<input size="40" name="billing_address" value="[billing_address]" tabindex="8" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_address2">Address 2</label>
<input size="40" name="billing_address2" value="[billing_address2]" tabindex="9" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_city">City</label>
<input size="40" name="billing_city" value="[billing_city]" tabindex="10" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_state">State</label>
<select id="billing_state" name="billing_state" tabindex="11" class="txtBoxStyle">
</select>
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_zip">Zip Code</label>
<input size="40" name="billing_zip" value="[billing_zip]" tabindex="12" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_country">Country</label>
<select id='billing_country' name='billing_country' onchange="populateState('billing_state','billing_country')" tabindex="13" class="txtBoxStyle">
</select>
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="billing_phone">Phone</label>
<input size="40" name="billing_phone" value="[billing_phone]" tabindex="14" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="shippingInfo">
<div class="titles">Shipping Information</div>
<div class="updaccField">
<label for="shipping_company">Company</label>
<input size="40" name="shipping_company" value="[shipping_company]" tabindex="15" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_firstname">First Name</label>
<input size="40" name="shipping_firstname" value="[shipping_firstname]" tabindex="16" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_lastname">Last Name</label>
<input size="40" name="shipping_lastname" value="[billing_lastname]" tabindex="17" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_address">Address</label>
<input size="40" name="shipping_address" value="[shipping_address]" tabindex="18" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_address2">Address 2</label>
<input size="40" name="shipping_address2" value="[shipping_address2]" tabindex="19" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_city">City</label>
<input size="40" name="shipping_city" value="[shipping_city]" tabindex="20" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_state">State</label>
<select id="shipping_state" name="shipping_state" tabindex="21" class="txtBoxStyle">
</select>
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_zip">Zip Code</label>
<input size="40" name="shipping_zip" value="[shipping_zip]" tabindex="22" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_country">Country</label>
<select id="shipping_country" name="shipping_country" onchange="populateState('shipping_state','shipping_country')" tabindex="23" class="txtBoxStyle">
</select>
<div class="clear"></div>
</div>
<div class="updaccField">
<label for="shipping_phone">Phone</label>
<input size="40" name="shipping_phone" value="[shipping_phone]" tabindex="24" class="txtBoxStyle" />
<div class="clear"></div>
</div>
<div class="clear"></div>
<!--START: addressType-->
<div class="updaccField">
<label for="shipping_addresstype">[CustomerInfo_address_type]</label>
<select name="shipping_addresstype" id="shipping_addresstype" tabindex="25" class="txtBoxStyle">
[addressTypeDropDown]
</select>
<div class="clear"></div>
</div>
<!--END: addressType-->
</div>
<div class="clear"></div>
<div class="otherInfo">
<div class="titles">Other Information</div>
<div class="updaccField">
<div class="mailist-chk"><input type="checkbox" name="maillist" value="1" tabindex="26" [maillist] /></div>
<div class="mailist-subscribe">I would like to receive updates and promotions by email</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="update-btn"><input type="button" onclick="doUpdate:doUpdate(this.form);" class="btn" onmouseover="this.className='btn_over'" onmouseout="this.className='btn'" value="Update My Information" /></div>
<div class="clear"></div>
<!--START: CATEGORY_FOOTER-->
<div class="category-footer" id="update_accountFooter">[CONTENT]</div>
<!--END: CATEGORY_FOOTER-->
</form>
</section>
<script type="text/javascript">
initCountry('[billing_country]', '[billing_state_script]', 'billing_state', 'billing_country');
initCountry('[shipping_country]', '[shipping_state_script]', 'shipping_state', 'shipping_country');
function doUpdate(objForm) {
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g, "");
}
function IsNumeric(strString) {
var strValidChars = "0123456789.-";
var strChar;
var blnResult = true;
if (strString.length == 0) return false;
// test strString consists of valid characters listed above
for (i = 0; i < strString.length && blnResult == true; i++) {
strChar = strString.charAt(i);
if (strValidChars.indexOf(strChar) == -1) {
blnResult = false;
}
}
return blnResult;
}
var strMsg = "";
if (emailReq == 1) {
if (objForm.email.value.trim() == "")
strMsg += " - Please enter a valid Email.\n";
if (objForm.email.value.length > 50)
strMsg += " - Maximum length for this field is 50.\n";
}
//BILLING INFO
if (objForm.billing_firstname.value.trim() == "")
strMsg += " - Please enter your Billing [CustomerInfo_firstname].\n";
if (objForm.billing_firstname.value.length > 20)
strMsg += " - Maximum length for this field is 20 characters.\n";
if (objForm.billing_lastname.value.trim() == "")
strMsg += " - Please enter your Billing [CustomerInfo_lastname].\n";
if (objForm.billing_lastname.value.length > 20)
strMsg += " - Maximum length for this field is 20 characters.\n";
if (objForm.billing_phone.value.trim() == "")
strMsg += " - Please enter your Billing [CustomerInfo_phone].\n";
if (objForm.billing_phone.value.length > 18)
strMsg += " - Maximum length for this field is 18 characters.\n";
if (objForm.billing_address.value.trim() == "")
strMsg += " - Please enter your Billing [CustomerInfo_address].\n";
if (objForm.billing_address.value.length > 50)
strMsg += " - Maximum length for this field is 50 characters.\n";
if (objForm.billing_city.value.trim() == "")
strMsg += " - Please enter your Billing [CustomerInfo_city].\n";
if (objForm.billing_city.value.length > 50)
strMsg += " - Maximum length for this field is 50 characters.\n";
if (objForm.billing_state.value.trim() == "")
strMsg += " - Please enter your Billing [CustomerInfo_state].\n";
if (objForm.billing_state.value.length > 50)
strMsg += " - Maximum length for this field is 50 characters.\n";
if (objForm.billing_zip.value.trim() == "")
strMsg += " - Please enter your Billing [CustomerInfo_zip].\n";
if (objForm.billing_zip.value.length > 20)
strMsg += " - Maximum length for this field is 20 characters.\n";
//SHIPPING INFO
if (objForm.shipping_firstname.value.trim() == "")
strMsg += " - Please enter your Shipping [CustomerInfo_firstname].\n";
if (objForm.shipping_firstname.value.length > 20)
strMsg += " - Maximum length for this field is 20 characters.\n";
if (objForm.shipping_lastname.value.trim() == "")
strMsg += " - Please enter your Shipping [CustomerInfo_lastname].\n";
if (objForm.shipping_lastname.value.length > 20)
strMsg += " - Maximum length for this field is 20 characters.\n";
if (objForm.shipping_phone.value.trim() == "")
strMsg += " - Please enter your Shipping [CustomerInfo_phone].\n";
if (objForm.shipping_phone.value.length > 18)
strMsg += " - Maximum length for this field is 18 characters.\n";
if (objForm.shipping_address.value.trim() == "")
strMsg += " - Please enter your Shipping [CustomerInfo_address].\n";
if (objForm.shipping_address.value.length > 50)
strMsg += " - Maximum length for this field is 50 characters.\n";
if (objForm.shipping_city.value.trim() == "")
strMsg += " - Please enter your Shipping [CustomerInfo_city].\n";
if (objForm.shipping_city.value.length > 50)
strMsg += " - Maximum length for this field is 50 characters.\n";
if (objForm.shipping_state.value.trim() == "")
strMsg += " - Please enter your Shipping [CustomerInfo_state].\n";
if (objForm.shipping_state.value.length > 50)
strMsg += " - Maximum length for this field is 50 characters.\n";
if (objForm.shipping_zip.value.trim() == "")
strMsg += " - Please enter your Shipping [CustomerInfo_zip].\n";
if (objForm.shipping_zip.value.length > 20)
strMsg += " - Maximum length for this field is 20 characters.\n";
if (strMsg != "") {
alert(strMsg);
return false;
}
objForm.submit();
}
</script>