amtrak 1.2.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/amtrak.gemspec +2 -1
  4. data/lib/amtrak.rb +6 -0
  5. data/lib/amtrak/train_fetcher.rb +21 -7
  6. data/lib/amtrak/train_fetcher/main_page.rb +28 -25
  7. data/lib/amtrak/train_fetcher/train_page.rb +17 -14
  8. data/lib/amtrak/version.rb +1 -1
  9. data/spec/amtrak/train_fetcher/main_page_spec.rb +5 -27
  10. data/spec/amtrak/train_fetcher/train_page_spec.rb +2 -21
  11. data/spec/amtrak/train_fetcher_spec.rb +3 -3
  12. data/spec/amtrak_spec.rb +2 -1
  13. data/spec/fixtures/json/_get.json +54 -1
  14. data/spec/fixtures/vcr/Amtrak/_get/returns_a_list_of_train_times.yml +1020 -1127
  15. data/spec/fixtures/vcr/Amtrak_TrainFetcher/_get/does_the_same_as_get.yml +1376 -930
  16. data/spec/fixtures/vcr/Amtrak_TrainFetcher/_get/given_a_valid_date_and_invalid_train_stations/does_not_include_various_classes_and_includes_an_error.yml +875 -659
  17. data/spec/fixtures/vcr/Amtrak_TrainFetcher/_get/given_a_valid_date_and_train_stations/includes_various_classes.yml +1376 -925
  18. data/spec/fixtures/vcr/Amtrak_TrainFetcher/_get/given_an_invalid_date_and_valid_train_stations/does_not_include_various_classes_and_includes_an_error.yml +878 -663
  19. data/spec/fixtures/vcr/Amtrak_TrainFetcher_MainPage/_session_id/pulls_the_session_id_from_the_cookies.yml +905 -845
  20. data/spec/fixtures/vcr/Amtrak_TrainFetcher_MainPage/_total_pages/when_more_than_one_page_exists_on_the_website/returns_2.yml +1033 -781
  21. data/spec/fixtures/vcr/Amtrak_TrainFetcher_MainPage/_total_pages/when_only_one_page_exists_on_the_website/returns_1.yml +936 -790
  22. data/spec/support/vcr.rb +2 -1
  23. metadata +22 -6
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://tickets.amtrak.com/itd/amtrak
5
+ uri: https://tickets.amtrak.com/itd/amtrak
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: _handler%3Damtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler%2F_xpath%3D%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D=&%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtripRequirements%2FjourneyRequirements%5B1%5D%2FdepartDate.date=Sun%2C+Dec+7%2C+2014&%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtripRequirements%2F%40trainStatusType=statusByCityPair&%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtripRequirements%2FjourneyRequirements%5B1%5D%2FdepartDate%2F%40radioSelect=arrivalTime&requestor=amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler&xwdf_origin=%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtravelSelection%2FjourneySelection%5B1%5D%2FdepartLocation%2Fsearch&wdf_origin=askdf&xwdf_destination=%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtravelSelection%2FjourneySelection%5B1%5D%2FarriveLocation%2Fsearch&wdf_destination=bby
8
+ string: _handler%3Damtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler%2F_xpath%3D%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D=SEARCH&%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtripRequirements%2FjourneyRequirements%5B1%5D%2FdepartDate.usdate=12%2F31%2F2015&%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtripRequirements%2F%40trainStatusType=statusByCityPair&%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtripRequirements%2FjourneyRequirements%5B1%5D%2FdepartDate%2F%40radioSelect=arrivalTime&requestor=amtrak.presentation.handler.page.AmtrakCMSNavigationTabPageHandler&xwdf_origin=%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtravelSelection%2FjourneySelection%5B1%5D%2FdepartLocation%2Fsearch&wdf_origin=askdf&xwdf_destination=%2FsessionWorkflow%2FproductWorkflow%5B%40product%3D%27Rail%27%5D%2FtravelSelection%2FjourneySelection%5B1%5D%2FarriveLocation%2Fsearch&wdf_destination=bby
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/x-www-form-urlencoded
@@ -14,15 +14,15 @@ http_interactions:
14
14
  code: 200
15
15
  message:
16
16
  headers:
17
+ Server:
18
+ - WebServer
17
19
  Content-Length:
18
- - '73675'
20
+ - '91268'
19
21
  Content-Type:
20
22
  - text/html;charset=UTF-8
21
23
  Set-Cookie:
22
- - JSESSIONID=0000PXgpKeMtQAvL8JwwS2RkIw4:186s77fmm; HTTPOnly; Path=/; Domain=.amtrak.com;
23
- HttpOnly, TS81804f=18dc9b3521439512d7197168cfb16db72f06ef673faf1bd95484ac3b60ac0ec53ccc9a77;
24
- path=/; domain=.amtrak.com, TS3f5eae=b855fed223954d7e8c5dfb291f4809bc2f06ef673faf1bd95484ac3b;
25
- Path=/
24
+ - JSESSIONID=0000g9IY2v-kV6xMXNL62ML8RmY:187j67cjs; HTTPOnly; Path=/; Domain=.amtrak.com;
25
+ HttpOnly
26
26
  X-powered-by:
27
27
  - Servlet/3.0
28
28
  Expires:
@@ -32,116 +32,133 @@ http_interactions:
32
32
  X-frame-options:
33
33
  - SAMEORIGIN
34
34
  Date:
35
- - Sun, 07 Dec 2014 19:36:28 GMT
35
+ - Mon, 04 Jan 2016 02:35:24 GMT
36
36
  Connection:
37
37
  - keep-alive
38
38
  body:
39
39
  encoding: UTF-8
40
- string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\r\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n\r\n\r\n<!--\r\n\"Amtrak
41
- Release 6.22.02a\"\r\n-->\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\r\n<meta
42
- content=\"IE=edge\" http-equiv=\"X-UA-Compatible\" />\r\n\r\n\r\n\r\n<head
43
- ><title>Amtrak - Train Status - Details</title>\n<meta http-equiv=\"content-type\"
40
+ string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\r\n\t\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n\r\n\r\n\r\n\r\n
41
+ <!--\r\n \t\"Amtrak Release 6.27.03a\"\r\n -->\r\n \r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n
42
+ \r\n<meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\" />\r\n\r\n \r\n\t\r\n\t
43
+ \ <head ><title>Amtrak - Train Status - Details</title>\n<meta http-equiv=\"content-type\"
44
44
  content=\"text/html; charset=UTF-8\" />\n<meta name=\"robots\" content=\"noindex,nofollow\"
45
45
  />\n<meta http-equiv=\"imagetoolbar\" content=\"no\" />\n<style type=\"text/css\">\n<!--\n@import
46
- url(/css/amtrak.css);\n-->\n</style>\n\r\n<!-- IE8 renders as IE7 to spare
47
- ourselves another column in the compatability matrix -->\r\n<style type=\"text/css\">\r\n<!--\r\n@import
48
- url(/css/base.css);\r\n@import url(/css/base_screen.css);\r\n@import url(/css/basic_booking.css);\r\n@import
49
- url(/css/special_booking.css);\r\n@import url(/css/basic_booking_screen.css);\r\n@import
50
- url(/css/ib_misc.css);\r\n@import url(/css/popup.css);\r\n@import url(/css/profile.css);\r\n@import
51
- url(/css/amtrak_autocomplete.css);\r\n-->\r\n</style>\r\n<!-- Diginet script(when
52
- USE_ESI=true) introduces 'c_root' form and this is causing orange bar to display
53
- on all pages.\r\nFollowing lines are added to get rid of the orange bar.-->\r\n<style
54
- type=\"text/css\">\r\nform#c_root {\r\ndisplay: none;\r\n}\r\n</style>\r\n<link
46
+ url(/css/amtrak.css);\n-->\n</style>\n\r\n\t\t <!-- IE8 renders as IE7
47
+ to spare ourselves another column in the compatability matrix -->\r\n\t \r\n\t
48
+ \ <style type=\"text/css\">\r\n\t <!--\r\n\t @import
49
+ url(/css/base.css?v=1.1);\r\n\t @import url(/css/base_screen.css);\r\n\t
50
+ \ @import url(/css/topnav.css?v=1.1);\r\n\t @import url(/css/basic_booking.css?v=1.3);\r\n\t
51
+ \ @import url(/css/special_booking.css);\r\n\t @import
52
+ url(/css/basic_booking_screen.css);\r\n\t @import url(/css/ib_misc.css);\r\n\t
53
+ \ @import url(/css/popup.css);\r\n\t @import url(/css/profile.css?v=1.2);\r\n\t
54
+ \ @import url(/css/amtrak_autocomplete.css);\r\n\t -->\r\n\t
55
+ \ </style>\r\n\t \r\n\t <!-- Diginet script(when USE_ESI=true)
56
+ introduces 'c_root' form and this is causing orange bar to display on all
57
+ pages. \r\n\t Following lines are added to get rid of the orange bar.-->\r\n\t
58
+ \ <style type=\"text/css\">\r\n\t form#c_root { \r\n\t display:
59
+ none; \r\n\t }\r\n\t </style>\r\n\t \r\n\t <link
55
60
  href=\"/css/basic_booking_print.css\" rel=\"stylesheet\" type=\"text/css\"
56
- media=\"print\" />\r\n<link href=\"/css/base_print.css\" rel=\"stylesheet\"
57
- type=\"text/css\" media=\"print\" />\r\n<script type=\"text/javascript\">\r\nvar
58
- _gaq = _gaq || [];\r\n_gaq.push(['_setAccount', 'UA-23218774-1']);\r\n_gaq.push(['_setDomainName',
59
- '.amtrak.com']);\r\n_gaq.push(['_trackPageview']);\r\n(function() {\r\nvar
60
- ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
61
- = true;\r\nga.src = ('https:' == document.location.protocol ? 'https://ssl'
62
- : 'http://www') + '.google-analytics.com/ga.js';\r\nvar s = document.getElementsByTagName('script')[0];
63
- s.parentNode.insertBefore(ga, s);\r\n})();\r\n</script>\r\n</head>\r\n\r\n\r\n<body
64
- class=\"site\">\r\n\r\n<link href=\"/css/header.css\" rel=\"stylesheet\" type=\"text/css\"
65
- />\r\n<script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/prototype.js\"></script>\r\n<div
66
- id=\"top_nav_wrapper\">\r\n<div id=\"top_nav_left_cover\">&nbsp;</div>\r\n<div
67
- id=\"top_navigation_body\"></div>\r\n</div>\r\n<script language=\"JavaScript\"
68
- type=\"text/javascript\">\r\n<!--\r\nvar url = \"/\" + \"itd/amtrak\" + \"/DisplayCmsContent\";\r\nvar
69
- functionName = 'topNavigation';\r\n\r\nnew Ajax.Request(url,\r\n{ method:
70
- 'post',\r\nparameters: {'functionName': functionName},\r\nonSuccess: function
71
- (transport) {\r\nif(transport.responseText!='') {\r\n$('top_navigation_body').update(transport.responseText);\r\n}
72
- else {\r\n$('top_nav_wrapper').hide();\r\n}\r\n},\r\nonFailure: function (transport)
73
- {\r\n$('top_nav_wrapper').hide();\r\n}\r\n}\r\n);\r\n//-->\r\n</script>\r\n\r\n<script
74
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/prototype.js\"></script>\r\n<script
75
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/scriptaculous.js\"></script>\r\n<script
76
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/effects.js\"></script>\r\n<script
77
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/controls.js\"></script>\r\n<script
78
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/formutils.js\"></script>\r\n<script
79
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/popups.js\"></script>\r\n<script
80
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/profile_rewrite.js\"></script>\r\n<script
81
- type=\"text/javascript\" src=\"/itd/project/scripts/en/external/yui/2.7.0/yahoo-dom-event.js\"></script>\r\n<script
82
- type=\"text/javascript\" src=\"/itd/project/scripts/en/external/yui/2.7.0/calendar-min.js\"></script>\r\n<script
83
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/yuicalendar.js\"></script>\r\n<script
84
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/calendar_farefinder.js\"></script>\r\n<script
85
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/farefinderrequest.js\"></script>\r\n<script
86
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/header.js\"></script>\r\n<script
87
- type=\"text/javascript\" src=\"/itd/project/scripts/en/motionpoint/motionpoint.js\"></script>\r\n<script
88
- type=\"text/javascript\">\r\n<!--\r\nvar pageName='amtrak/rail/trainstatus/trainstatusresponse.jsp';\r\n/*
89
- if the subPageName has been defined use it to prefix the page name */\r\nif
90
- (typeof subPageName != 'undefined'){\r\nvar path=pageName.substr(0,pageName.lastIndexOf(\"/\")+1);\r\nvar
91
- page=pageName.substr(pageName.lastIndexOf(\"/\")+1);\r\npageName=path+subPageName+page;\r\n}\r\n//-->\r\n</script>\r\n<script
92
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/jquery-1.4.2.min.js\"></script>\r\n<script
93
- type=\"text/javascript\">\r\njQuery.noConflict();\r\n</script>\r\n\r\n<div
94
- id=\"outer_wrapper_confirmation\">\r\n<div id=\"top_level_wrapper_confirmation\">\r\n<div
95
- id=\"lower_wrapper_confirmation\">\r\n<div style=\"position: relative;\"><div
96
- id=\"shoulder\">&nbsp;</div></div>\r\n<div id=\"top_bar\">&nbsp;</div>\r\n\r\n<div
97
- id=\"left_column_wrapper_confirmation\">\r\n\r\n\r\n<style type=\"text/css\">\r\n<!--\r\n@import
98
- url(/css/base.css);\r\n-->\r\n</style>\r\n<script language=\"JavaScript\"
99
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/base.js\"></script>\r\n<script
100
- language=\"JavaScript\" type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/basic_booking_left.js\"></script>\r\n<link
101
- rel=\"stylesheet\" type=\"text/css\" href=\"/css/external/yui/2.7.0/calendar.css?nocache=v3_50_000\"
102
- media=\"screen\" />\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/external/yui/2.7.0/container.css?nocache=v3_50_000\"
103
- media=\"screen\" />\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/amtrak-calendar.css\"
104
- media=\"screen\" />\r\n\r\n\r\n<div id=\"persistent_info_wrapper\">\r\n\r\n\r\n\r\n<ul
105
- id=\"pi_actions_list\">\r\n<li><a href=\"javascript:LoginPopout.show()\">Login</a></li>\r\n<li><a
106
- href=\"https://tickets.amtrak.com/itd/amtrak/Register\">Register</a></li>\r\n</ul>\r\n\r\n\r\n\r\n<script
61
+ media=\"print\" />\r\n\t <link href=\"/css/base_print.css\" rel=\"stylesheet\"
62
+ type=\"text/css\" media=\"print\" /> \r\n\t <script type=\"text/javascript\">\r\n\t
63
+ \ \r\n \t\t\t\tvar _gaq = _gaq || [];\r\n \t\t\t\t_gaq.push(['_setAccount',
64
+ 'UA-23218774-1']);\r\n \t\t\t\t_gaq.push(['_setDomainName', '.amtrak.com']);\r\n
65
+ \ \t\t\t\t\r\n \t\t\t\t_gaq.push(['_trackPageview']);\r\n\r\n \t\t\t\t(function()
66
+ {\r\n \t\t\t\tvar ga = document.createElement('script'); ga.type = 'text/javascript';
67
+ ga.async = true;\r\n \t\t\t\tga.src = ('https:' == document.location.protocol
68
+ ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\r\n \t\t\t\tvar
69
+ s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga,
70
+ s);\r\n \t\t\t\t})();\r\n\r\n\t\t\t</script>\r\n <script>\r\n
71
+ \ (function(d) {\r\n var config = {\r\n kitId:
72
+ 'ijm4cfl',\r\n scriptTimeout: 3000\r\n },\r\n
73
+ \ h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\\bwf-loading\\b/g,\"\")+\"
74
+ wf-inactive\";},config.scriptTimeout),tk=d.createElement(\"script\"),f=false,s=d.getElementsByTagName(\"script\")[0],a;h.className+=\"
75
+ wf-loading\";tk.src='//use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!=\"complete\"&&a!=\"loaded\")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)\r\n
76
+ \ })(document);\r\n </script>\r\n \r\n
77
+ \ \r\n <script type=\"text/javascript\" language=\"javascript\"
78
+ src='https://assets.adobedtm.com/b6ce373c321eacd4084683e01459ac4c347614f5/satelliteLib-073129b141b5f91c45cd8781dde0bb81599a5e0e.js'
79
+ ></script>\r\n \r\n\t </head>\r\n\t\r\n \t\r\n \t \t\r\n
80
+ \ \t\r\n \t<body class=\"site\">\r\n\r\n<link href=\"/css/header.css\" rel=\"stylesheet\"
81
+ type=\"text/css\" />\r\n<script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/prototype.js\"></script>\r\n<div
82
+ id=\"top_nav_wrapper\">\r\n<div id=\"top_navigation_body\"></div>\r\n\r\n\r\n\r\n<div
83
+ id=\"pi_actions_list\">\r\n<a href=\"javascript:LoginPopout.show()\">Log in</a>
84
+ &nbsp;or&nbsp;\r\n<a href=\"https://tickets.amtrak.com/itd/amtrak/Register\">Register</a>\r\n</div>\r\n\r\n\r\n\r\n<script
107
85
  type=\"text/javascript\">\r\ndocument.observe('dom:loaded', function() {\r\n$(\"login_popout\").hide();\r\n});\r\n</script>\r\n<div
108
- class=\"popout\" id=\"login_popout\" style=\"display: block\">\r\n\r\n\r\n\r\n<style
109
- type=\"text/css\">\r\n#loading {\r\nposition: fixed;\r\ntop: 30%;\r\nleft:
110
- 25%;\r\nbackground:url(/images/en/superpnr/image_loader_blue.gif) no-repeat
111
- center #fff;\r\npadding:7px;\r\n}\r\n#overlay {\r\nbackground-color:#EEE;\r\n}\r\n.link_item
86
+ class=\"popout\" id=\"login_popout\" >\r\n\r\n\r\n\r\n<style type=\"text/css\">\r\n#loading
87
+ {\r\nposition: fixed;\r\ntop: 30%;\r\nleft: 25%;\r\nbackground:url(/images/en/superpnr/image_loader_blue.gif)
88
+ no-repeat center #fff;\r\npadding:7px;\r\n}\r\n#overlay {\r\nbackground-color:#EEE;\r\n}\r\n.link_item
112
89
  {\r\nfloat:left;\r\nwidth:65%;\r\n}\r\n</style>\r\n<style type=\"text/css\">\r\n.submit_image
113
90
  {\r\nfloat:right;\r\nvertical-align:top;\r\nbackground-color: transparent;\r\nborder:
114
91
  none;\r\nfont-size:1px;\r\nwidth: 70px;\r\nheight: 24px;\r\nbackground-image:
115
- url(/images/en/btn_login.gif);\r\nbackground-repeat: no-repeat;\r\n}\r\n</style>\r\n<script>\r\nfunction
92
+ url(/images/en/btn_login.gif);\r\nbackground-repeat: no-repeat;\r\n}\r\n</style>\r\n\r\n<script>\r\nfunction
116
93
  enterKeyPress(event) {\r\nif (Event.KEY_RETURN == event.keyCode) {\r\n// do
117
94
  something usefull\r\nLoginPopout.doLogon();\r\nreturn false;\r\n}\r\nreturn
118
95
  true;\r\n}\r\n</script>\r\n\r\n\r\n<div id=\"loading\"></div>\r\n<script>\r\n$('loading').hide();\r\n</script>\r\n<div
119
96
  id=\"overlay\" style=\"background-color: white;\">\r\n<div class=\"popout_inner\"
120
97
  id=\"login_popout_inner\">\r\n<a href=\"javascript:LoginPopout.hide()\" class=\"close_btn
121
- button\"><img alt=\"X\" src=\"/images/en/btn_closeXorange.gif\" /></a>\r\n<div
122
- id=\"login_form_header\"><h3 style=\"margin-top:0px;\">Log In to Amtrak.com</h3></div>\r\n\r\n<div
123
- class=\"form_holder\" id=\"login_form_holder\">\r\n<form class=\"std_form
124
- clearfix\" onsubmit=\"doRegularLogon(); return true;\" id=\"login_ajax_form\"
98
+ button\" style=\"margin-bottom:0px;\"><img alt=\"X\" src=\"/images/en/btn_closeXorange.gif\"
99
+ /></a>\r\n<div id=\"login_form_header\"><h3 style=\"margin-top:0px;\">Log
100
+ In to Amtrak.com</h3></div>\r\n\r\n<div class=\"form_holder\" id=\"login_form_holder\">\r\n<form
101
+ class=\"std_form clearfix\" onsubmit=\"doRegularLogon(); return true;\" id=\"login_ajax_form\"
125
102
  action=\"https://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input type=\"hidden\"
126
103
  name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
127
- />\r\n<div class=\"form_line\">\r\n<div class=\"form_label\"><label for=\"login_email_address\">E-Mail
128
- Address</label></div>\r\n<div class=\"form_item\"><input type=\"hidden\" name=\"xwdf_username\"
129
- value=\"/sessionWorkflow/userWorkflow/profileAccountRequirements/userName\"
104
+ />\r\n<div class=\"form_line\">\r\n\r\n<div class=\"form_label\"><label for=\"login_email_address\">E-Mail
105
+ Address or Member Number</label></div>\r\n\r\n\r\n<div class=\"form_item\"><input
106
+ type=\"hidden\" name=\"xwdf_username\" value=\"/sessionWorkflow/userWorkflow/profileAccountRequirements/userName\"
130
107
  /><input class=\"text\" autocomplete=\"off\" type=\"text\" id=\"login_email_address\"
131
108
  maxlength=\"64\" name=\"wdf_username\" /></div>\r\n</div>\r\n<div class=\"form_line\">\r\n<div
132
109
  class=\"form_label\"><label for=\"login_password\">Password</label></div>\r\n<div
133
110
  class=\"form_item\"><input type=\"hidden\" name=\"xwdf_password\" value=\"/sessionWorkflow/userWorkflow/profileAccountRequirements/password\"
134
- /><input class=\"text password\" type=\"password\" id=\"login_password\" maxlength=\"20\"
135
- name=\"wdf_password\" /></div>\r\n</div>\r\n<div class=\"form_line\" id=\"login_go\">\r\n<div
136
- class=\"link_item submit_item\">\r\n<a class=\"forgot_pass\" title=\"Click
137
- here to request your Password\" href=\"javascript:fieldName='wdf_RequestUserID';
138
- openRequestUserID();\">Forgot password?</a>\r\n</div>\r\n\r\n<input class=\"submit_image\"
139
- type=\"submit\" name=\"_handler=amtrak.presentation.handler.request.profile.AmtrakProfileLogonRequestHandler/_xpath=/sessionWorkflow/userWorkflow/profileAccountRequirements\"
140
- value=\"\" />\r\n</div>\r\n</form>\r\n</div>\r\n</div>\r\n<hr/>\r\n<div class=\"popout_inner\">\r\n<div><img
141
- src=\"/images/en/linkaccounts_Popup.gif\" /></div>\r\n\r\n<h4 style=\"color:#1375B3\">Link
142
- your Amtrak.com and Amtrak Guest Rewards accounts</h4>\r\n<p> Make your booking
143
- experience even easier by linking your accounts - you&#39;ll be able to navigate
144
- between both sites without having to log in twice.</p>\r\n</div>\r\n</div>\r\n\r\n\r\n\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<script
111
+ /><input class=\"text password\" autocomplete=\"off\" type=\"password\" id=\"login_password\"
112
+ maxlength=\"20\" name=\"wdf_password\" /></div>\r\n</div>\r\n<div class=\"form_line\"
113
+ id=\"login_go\">\r\n<div class=\"link_item submit_item\">\r\n\r\n<a class=\"forgot_pass\"
114
+ title=\"Click here to request your Password\" href=\"javascript:openForgotPwdBox();\">Forgot
115
+ password?</a>\r\n\r\n\r\n</div>\r\n\r\n<input class=\"submit_image\" type=\"submit\"
116
+ name=\"_handler=amtrak.presentation.handler.request.profile.AmtrakProfileLogonRequestHandler/_xpath=/sessionWorkflow/userWorkflow/profileAccountRequirements\"
117
+ value=\"\" />\r\n</div>\r\n</form>\r\n</div>\r\n</div>\r\n<hr/>\r\n<div class=\"agrmerge_popout_inner\">\r\n\r\n<h4>Amtrak.com
118
+ and Amtrak Guest Rewards Accounts are Merging</h4><p>Combine your accounts
119
+ and enjoy the ease and convenience of a single Amtrak account. All of your
120
+ information will be available with a single log-in &mdash; eliminating the
121
+ need for you to keep two profiles.</p>\n\r\n\r\n\r\n</div>\r\n</div>\r\n\r\n\r\n\r\n\r\n</div>\r\n\r\n\r\n</div>\r\n<script
122
+ language=\"JavaScript\" type=\"text/javascript\">\r\n<!--\r\nvar url = \"/\"
123
+ + \"itd/amtrak\" + \"/DisplayCmsContent\";\r\nvar functionName = 'topNavigation';\r\n\r\nnew
124
+ Ajax.Request(url,\r\n{ method: 'post',\r\nparameters: {'functionName': functionName},\r\nonSuccess:
125
+ function (transport) {\r\nif(transport.responseText!='') {\r\n$('top_navigation_body').update(transport.responseText);\r\n}
126
+ else {\r\n$('top_nav_wrapper').hide();\r\n}\r\n},\r\nonFailure: function (transport)
127
+ {\r\n$('top_nav_wrapper').hide();\r\n}\r\n}\r\n);\r\n//-->\r\n</script>\r\n\r\n
128
+ \ \t \r\n\t <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/prototype.js\"></script>\r\n\t
129
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/scriptaculous.js\"></script>\r\n\t
130
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/effects.js\"></script>\r\n\t
131
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/controls.js\"></script>\r\n\t
132
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/formutils.js\"></script>\r\n\t
133
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/popups.js\"></script>\r\n\t
134
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/profile_rewrite.js\"></script>\r\n\t
135
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/farefinderrequest.js\"></script>\r\n
136
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/header.js\"></script>\r\n
137
+ \ <script type=\"text/javascript\" src=\"/itd/project/scripts/en/motionpoint/motionpoint.js\"></script>\r\n\t
138
+ \ <script type=\"text/javascript\">\r\n <!-- \r\n var
139
+ pageName='amtrak/rail/trainstatus/trainstatusresponse.jsp';\r\n\r\n /*
140
+ if the subPageName has been defined use it to prefix the page name */\r\n
141
+ \ if (typeof subPageName != 'undefined'){\r\n var
142
+ path=pageName.substr(0,pageName.lastIndexOf(\"/\")+1);\r\n var
143
+ page=pageName.substr(pageName.lastIndexOf(\"/\")+1);\r\n pageName=path+subPageName+page;\r\n
144
+ \ }\r\n //-->\r\n </script>\r\n <script
145
+ type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/jquery-1.11.2.min.js\"></script>\r\n
146
+ \ <script type=\"text/javascript\">\r\n jQuery.noConflict();\r\n
147
+ \ </script>\r\n \t\r\n\t \t\r\n<div id=\"outer_wrapper_confirmation\">\r\n<div
148
+ id=\"top_level_wrapper_confirmation\">\r\n<div id=\"lower_wrapper_confirmation\">\r\n\r\n<div
149
+ id=\"left_column_wrapper_confirmation\">\r\n\r\n\r\n<style type=\"text/css\">\r\n<!--\r\n@import
150
+ url(/css/base.css?v=1.1);\r\n-->\r\n</style>\r\n<script language=\"JavaScript\"
151
+ type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/base.js\"></script>\r\n<script
152
+ language=\"JavaScript\" type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/basic_booking_left.js\"></script>\r\n<link
153
+ rel=\"stylesheet\" type=\"text/css\" href=\"/css/amtrak-calendar.css\" media=\"screen\"
154
+ />\r\n\r\n\r\n<div id=\"persistent_info_wrapper\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<script
155
+ src=\"/itd/project/scripts/en/amtrak/jquery-ui.min.js\"></script>\r\n<script
156
+ src=\"/itd/project/scripts/en/amtrak/moment.js\"></script>\r\n<script src=\"/itd/project/scripts/en/amtrak/jquery.comiseo.daterangepicker.js\"></script>\r\n<script
157
+ src=\"/itd/project/scripts/en/amtrak/datepicker.js?v=1.1\"></script>\r\n<link
158
+ type=\"text/css\" rel=\"stylesheet\" href=\"/css/jquery-ui.css\" />\r\n<link
159
+ type=\"text/css\" rel=\"stylesheet\" href=\"/css/jquery.comiseo.daterangepicker.css\"
160
+ />\r\n<link type=\"text/css\" rel=\"stylesheet\" href=\"/css/datepicker.css\"
161
+ />\r\n<input name=\"daterangepicker\" class=\"daterangepicker\">\r\n\r\n\r\n\r\n\r\n<script
145
162
  type=\"text/javascript\">\r\nareCookiesEnabled();\r\nfunction createCookie(name,
146
163
  value, days) {\r\nvar expires;\r\nif (days) {\r\nvar date = new Date();\r\ndate.setTime(date.getTime()
147
164
  + (days * 24 * 60 * 60 * 1000));\r\nexpires = \"; expires=\" + date.toGMTString();\r\n}\r\nelse
@@ -162,633 +179,792 @@ http_interactions:
162
179
  must be capable of accepting session cookies. Please <a href=\"javascript:var
163
180
  child=window.open(\\'http://www.amtrak.com/servlet/ContentServer?pagename=am/AM_Snippet_C/IBLegacy&help=cookies\\',\\'help\\',\\'directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1\\');child.focus();\">click
164
181
  here</a> to learn more about how to accept cookies.'\r\n+ '</span></td></tr>'\r\n+
165
- '</table>'\r\n+ '</td></tr>'\r\n+ '<tr><td>&nbsp;</td></tr>';\r\ndocument.write(output);\r\n}\r\neraseCookie(\"test\");\r\n}\r\n</script>\r\n\r\n\r\n\r\n\r\n\r\n\r\n<!--[if
166
- IE]>\r\n<script type=\"text/javascript\">\r\nfunction isCalendarEvent(e) {\r\nvar
167
- element = Event.element(e);\r\nvar names = element.classNames();\r\nif (names.include('selector'))
168
- {\r\nreturn true;\r\n}\r\nif (names.include('calnavright')) {\r\nreturn true;\r\n}\r\nif
169
- (names.include('calnavleft')) {\r\nreturn true;\r\n}\r\nif (names.include('link-close'))
170
- {\r\nreturn true;\r\n}\r\nreturn false;\r\n}\r\nfunction addFormSubmitEvent(form)
171
- {\r\nform.onkeydown = function(e) {\r\ne = e || window.event;\r\nif (e.keyCode
172
- == 13) {\r\n// If this is a Calendar return key entry then do not\r\n// call
173
- form.submit()\r\nif (isCalendarEvent(e)) {\r\nreturn;\r\n}\r\nif (form.name
174
- == 'ff_status_form') {\r\nif(CheckMandatoryTrainStatusFields(form)) {\r\nform.submit();\r\nreturn
175
- true;\r\n}\r\nreturn false;\r\n}\r\nif (form.name == 'mytrip_acct') {\r\nif
176
- (CheckMandatoryLoginFields(form)) {\r\nform.submit();\r\nreturn false;\r\n}\r\nreturn
177
- true;\r\n}\r\nif (form.name == 'mytrip_res') {\r\nif (CheckMandatoryMyTripFields(form))
178
- {\r\nform.submit();\r\nreturn false;\r\n}\r\nreturn true;\r\n}\r\nif (form.name
179
- == 'ff_schedules_form') {\r\nif (CheckMandatoryScheduleFields(form)) {\r\nform.submit();\r\nreturn
180
- false;\r\n}\r\nreturn true;\r\n}\r\n}\r\n};\r\n}\r\ndocument.observe('dom:loaded',
181
- function() {\r\nvar forms = document.getElementsByTagName('form');\r\nfor
182
- (var i=0;i < forms.length;i++) {\r\nif (forms[i].name == 'mytrip_res' || forms[i].name
183
- == 'mytrip_acct' || forms[i].name == 'ff_schedules_form' || forms[i].name
184
- == 'ff_status_form') {\r\naddFormSubmitEvent(forms[i]);\r\n}\r\n}\r\n});\r\n</script>\r\n<![endif]-->\r\n<!--
185
- Begin HTML for Fare Finder -->\r\n<div id=\"farefinder\">\r\n<div id=\"ff_tabbar\">\r\n<div
182
+ '</table>'\r\n+ '</td></tr>'\r\n+ '<tr><td>&nbsp;</td></tr>';\r\ndocument.write(output);\r\n}\r\neraseCookie(\"test\");\r\n}\r\n</script>\r\n\r\n\r\n\n\n\n\n\n
183
+ \ \n<!--[if IE]>\n<script type=\"text/javascript\">\t \nfunction isCalendarEvent(e)
184
+ {\n\n var element = Event.element(e); \n var names = element.classNames();
185
+ \n if (names.include('selector')) {\n return true;\n }\n if
186
+ (names.include('calnavright')) {\n return true;\n }\n if (names.include('calnavleft'))
187
+ {\n return true;\n }\n if (names.include('link-close')) {\n
188
+ \ return true;\n }\n return false;\n} \n\nfunction addFormSubmitEvent(form)
189
+ {\n form.onkeydown = function(e) {\n e = e || window.event;\n \n
190
+ \ if (e.keyCode == 13) {\n \n \t// If this is a Calendar
191
+ return key entry then do not\n \t// call form.submit() \n \tif
192
+ (isCalendarEvent(e)) {\n\t\t\t return;\n\t\t\t}\t\t\n \n if
193
+ (form.name == 'ff_status_form') {\n if(CheckMandatoryTrainStatusFields(form))
194
+ {\n \t form.submit();\n \t return true;\n }\n
195
+ \ return false;\n }\n if (form.name == 'mytrip_acct')
196
+ {\n if (CheckMandatoryLoginFields(form)) {\n \tform.submit();\n
197
+ \ \treturn false;\n }\n return true;\n }\n
198
+ \ if (form.name == 'mytrip_res') {\n if (CheckMandatoryMyTripFields(form))
199
+ {\n \tform.submit();\n \treturn false;\n }\n
200
+ \ return true;\n }\n if (form.name == 'ff_schedules_form')
201
+ {\n if (CheckMandatoryScheduleFields(form)) {\n \tform.submit();\n
202
+ \ \treturn false;\n }\n return true;\n }\n
203
+ \ }\n };\n}\n\ndocument.observe('dom:loaded', function() {\n var
204
+ forms = document.getElementsByTagName('form');\n for (var i=0;i < forms.length;i++)
205
+ {\n if (forms[i].name == 'mytrip_res' || forms[i].name == 'mytrip_acct'
206
+ || forms[i].name == 'ff_schedules_form' || forms[i].name == 'ff_status_form')
207
+ {\n \t addFormSubmitEvent(forms[i]);\n \t}\n }\n});\n\n</script>
208
+ \ \t\n<![endif]-->\n\n<!-- Begin HTML for Fare Finder --> \n <div
209
+ id=\"farefinder\">\n <div id=\"ff_tabbar\">\n <div
186
210
  class=\"active\" id=\"ff_tabbar_tickets\">Tickets<span onclick=\"compare_dates('wdfdate1');show_ff_tab('tickets');showHideRedeemTabBarSection('ff_sub_tabbar',
187
- true);\"></span></div>\r\n<div id=\"ff_tabbar_status\">Status<span onclick=\"set_status_date('wdfdate10');set_status_date('wdfdate11');show_ff_tab('status');setDepartOrArrivalFieldVisibility();switchToStatusByTrain();\"></span></div>\r\n<div
188
- id=\"ff_tabbar_schedules\">Schedules<span onclick=\"compare_dates('wdfdate5');show_ff_tab('schedules');\"></span></div>\r\n<div
189
- id=\"ff_tabbar_mytrip\">My Trip<span onclick=\"show_ff_tab('mytrip');\"></span></div>\r\n</div>\r\n\r\n\r\n\r\n\r\n<div
190
- id=\"ff_sub_tabbar\" class=\"show_section\">\r\n<div class=\"active\" id=\"ff_sub_tabbar_bookatrip\">Book<span
191
- onclick=\"show_ff_sub_tab('bookatrip');\"></span></div>\r\n<div id=\"ff_sub_tabbar_redeem\">Redeem<span
192
- onclick=\"show_ff_sub_tab('redeem');\"></span></div>\r\n<div id=\"ff_sub_tabbar_traveloptions\">Travel
193
- Options<span onclick=\"show_ff_sub_tab('traveloptions');\"></span></div>\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<div
194
- id=\"farefinder_tabbody_tickets\" class=\"farefinder_tabbody ff_active\">\r\n<form
195
- name=\"form\" action=\"http://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input
196
- type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailFareFinderPageHandler\"
197
- />\r\n<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@bookpath\"
198
- value=\"farefamilies\" />\r\n<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/@ff_tab_selected\"
199
- value=\"bookatrip\" />\r\n<h2>Tickets</h2>\r\n\r\n<div id=\"ff_tickets_tt_cities_subdiv\"
200
- class=\"subdiv level6\">\r\n<div id=\"tickets_trip_type\"><p>\r\n<input type=\"hidden\"
201
- name=\"xwdf_TripType\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/tripType\"
211
+ true);\"></span></div>\n <div id=\"ff_tabbar_status\">Status<span
212
+ onclick=\"set_status_date('wdfdate10');set_status_date('wdfdate11');show_ff_tab('status');setDepartOrArrivalFieldVisibility();switchToStatusByTrain();\"></span></div>\n
213
+ \ <div id=\"ff_tabbar_mytrip\">My Trip<span onclick=\"show_ff_tab('mytrip');\"></span></div>\n
214
+ \ </div>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t \n\t \t<div
215
+ id=\"ff_sub_tabbar\" class=\"show_section\">\n\t \t<div class=\"active\"
216
+ id=\"ff_sub_tabbar_bookatrip\">Book<span onclick=\"show_ff_sub_tab('bookatrip');\"></span></div>\n\t
217
+ \ \t<div id=\"ff_sub_tabbar_redeem\">Redeem<span onclick=\"show_ff_sub_tab('redeem');\"></span></div>\n\t
218
+ \ \t<div id=\"ff_sub_tabbar_traveloptions\">Travel Options<span
219
+ onclick=\"show_ff_sub_tab('traveloptions');\"></span></div>\n\t \t</div>\n\t
220
+ \ \n\t\t\t\n\n \n \r\n\r\n\r\n\r\n \r\n \r\n <div
221
+ id=\"farefinder_tabbody_tickets\" class=\"farefinder_tabbody ff_active\">\r\n
222
+ \ \r\n <form name=\"form\" action=\"https://tickets.amtrak.com/itd/amtrak\"
223
+ method=\"post\"><input type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailFareFinderPageHandler\"
224
+ />\r\n <input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@bookpath\"
225
+ value=\"farefamilies\" />\r\n <input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/@ff_tab_selected\"
226
+ value=\"bookatrip\" />\r\n <h2>Tickets</h2>\r\n \r\n
227
+ \ <div id=\"ff_tickets_tt_cities_subdiv\" class=\"subdiv level6\">\r\n
228
+ \ <div id=\"tickets_trip_type\"><p> \r\n
229
+ \ <input type=\"hidden\" name=\"xwdf_TripType\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/tripType\"
202
230
  /><input type=\"radio\" id=\"oneway\" name=\"wdf_TripType\" value=\"OneWay\"
203
- onclick=\"javascript:blankReturnDate(false)\" />&nbsp;<label for=\"oneway\">One-Way</label>\r\n<input
204
- type=\"hidden\" name=\"xwdf_TripType\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/tripType\"
231
+ onclick=\"javascript:blankReturnDate(false)\" />&nbsp;<label for=\"oneway\">One-Way</label>
232
+ \ \r\n <input type=\"hidden\"
233
+ name=\"xwdf_TripType\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/tripType\"
205
234
  /><input type=\"radio\" id=\"return\" name=\"wdf_TripType\" value=\"Return\"
206
- onclick=\"javascript:setReturnDate(false)\" />&nbsp;<label for=\"return\">Round-Trip</label>\r\n<a
207
- href=\"/itd/amtrak/ComplexRail\">Multi-City</a> &gt;</p>\r\n</div>\r\n<div
208
- id=\"tickets_dep_city\" class=\"ff_city_wrapper\">\r\n<label for=\"departs\">From</label>\r\n<input
209
- type=\"hidden\" name=\"xwdf_origin\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
235
+ onclick=\"javascript:setReturnDate(false)\" />&nbsp;<label for=\"return\">Round-Trip</label>\r\n
236
+ \ <a href=\"/itd/amtrak/ComplexRail\">Multi-City</a> &gt;</p>\r\n
237
+ \ </div>\r\n \r\n
238
+ \ <div id=\"tickets_dep_city\" class=\"ff_city_wrapper\">\r\n
239
+ \ <label for=\"departs\">From</label> \r\n
240
+ \ <input type=\"hidden\" name=\"xwdf_origin\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
210
241
  /><input type=\"text\" autocomplete=\"off\" id=\"departs\" maxlength=\"150\"
211
- name=\"wdf_origin\" value=\"askdf\" />\r\n<p><span class=\"find_a_station\"><a
242
+ name=\"wdf_origin\" value=\"askdf\" />\r\n <p><span class=\"find_a_station\"><a
212
243
  title=\"Click for a list of stations.\" href=\"javascript:fieldName='departs';
213
- openStationList();\">Find a Station</a></span></p>\r\n</div>\r\n<div id=\"tickets_arr_city\"
214
- class=\"ff_city_wrapper level3\">\r\n<label for=\"arrives\">To</label>\r\n<input
215
- type=\"hidden\" name=\"xwdf_destination\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/arriveLocation/search\"
244
+ openStationList();\">Find a Station</a></span></p> \r\n
245
+ \ </div>\r\n \r\n <div
246
+ id=\"tickets_arr_city\" class=\"ff_city_wrapper level3\">\r\n <label
247
+ for=\"arrives\">To</label>\r\n <input type=\"hidden\" name=\"xwdf_destination\"
248
+ value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/arriveLocation/search\"
216
249
  /><input type=\"text\" autocomplete=\"off\" id=\"arrives\" maxlength=\"150\"
217
- name=\"wdf_destination\" value=\"Boston - Back Bay, MA (BBY)\" />\r\n<p><span
218
- class=\"find_a_station\"><a title=\"Click for a list of stations.\" href=\"javascript:fieldName='arrives';
219
- openStationList();\">Find a Station</a></span></p>\r\n</div>\r\n<div id=\"autocomplete_availability_from\"
220
- class=\"autocomplete level5\" style=\"display:none\"></div>\r\n<div id=\"autocomplete_availability_to\"
221
- class=\"autocomplete level5\" style=\"display:none\"></div>\r\n</div>\r\n<div
222
- id=\"ff_tickets_dep_ret_date_subdiv\" class=\"subdiv level3\" style=\"position:static;\">\r\n<div
223
- id=\"tickets_dep_date_time\" class=\"level5\">\r\n<div class=\"ff_date_wrapper\">\r\n<label
224
- for=\"tickets_dep_date\">Departs</label>\r\n\r\n\r\n<input class=\"wdfDate\"
225
- type=\"text\" size=\"22\" id=\"wdfdate1\" maxlength=\"22\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.date\"
226
- value=\"Sun, Dec 7, 2014\" readonly=\"readonly\" /></div><div class=\"ff_time_wrapper\"><label
227
- for=\"wdftime1\"><b>Time</b></label><select onfocus=\"updateTimeState()\"
228
- onchange=\"timeChanged(1);updateDayDropDownListTrainStatusWithOffsets()\"
250
+ name=\"wdf_destination\" value=\"Boston - Back Bay, MA (BBY)\" /> \r\n
251
+ \ <p><span class=\"find_a_station\"><a title=\"Click for
252
+ a list of stations.\" href=\"javascript:fieldName='arrives'; openStationList();\">Find
253
+ a Station</a></span></p>\r\n </div>\r\n <div
254
+ id=\"autocomplete_availability_from\" class=\"autocomplete level5\" style=\"display:none\"></div>\r\n
255
+ \ <div id=\"autocomplete_availability_to\" class=\"autocomplete
256
+ level5\" style=\"display:none\"></div> \r\n
257
+ \ </div> \r\n \r\n <div
258
+ id=\"ff_tickets_dep_ret_date_subdiv\" class=\"subdiv level3\" style=\"position:static;\">\r\n
259
+ \ <div id=\"tickets_dep_date_time\" class=\"level5\">\r\n <div
260
+ class=\"ff_date_wrapper\"> \r\n <label
261
+ for=\"tickets_dep_date\">Departs</label> \r\n
262
+ \ <input class=\"wdfDate\" type=\"text\" size=\"22\"
263
+ id=\"wdfdate1\" maxlength=\"22\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.usdate\"
264
+ value=\"12/31/2015\" /><a class=\"calLink noloading\" id=\"calLink1\">&nbsp;</a><br
265
+ /><div id=\"calContainer1\" class=\"calContainer\" bookingpath=\"regularBooking\"
266
+ calwrapper=\"farefinder\" caloffsetx=\"50\" calpickerxpos=\"50\" maxdate=\"+335d\"></div></div><div
267
+ class=\"ff_time_wrapper\"><label for=\"wdftime1\"><b>Time</b></label><select
229
268
  id=\"wdftime1\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departTime.hourmin\"><option
230
- value=\"\">Anytime</option><option value=\"07:00\">Morning</option><option
231
- value=\"14:00\">Afternoon</option><option value=\"19:00\">Evening</option><option
232
- value=\"23:59\">Midnight</option><option value=\"01:00\">1 AM</option><option
233
- value=\"02:00\">2 AM</option><option value=\"03:00\">3 AM</option><option
234
- value=\"04:00\">4 AM</option><option value=\"05:00\">5 AM</option><option
235
- value=\"06:00\">6 AM</option><option value=\"07:00\">7 AM</option><option
236
- value=\"08:00\">8 AM</option><option value=\"09:00\">9 AM</option><option
237
- value=\"10:00\">10 AM</option><option value=\"11:00\">11 AM</option><option
238
- value=\"12:00\">Noon</option><option value=\"13:00\">1 PM</option><option
239
- value=\"14:00\">2 PM</option><option value=\"15:00\">3 PM</option><option
240
- value=\"16:00\">4 PM</option><option value=\"17:00\">5 PM</option><option
241
- value=\"18:00\">6 PM</option><option value=\"19:00\">7 PM</option><option
242
- value=\"20:00\">8 PM</option><option value=\"21:00\">9 PM</option><option
243
- value=\"22:00\">10 PM</option><option value=\"23:00\">11 PM</option></select>\r\n\r\n</div>\r\n</div>\r\n\r\n\r\n<div
244
- id=\"tickets_ret_date_time\" class=\"hide_section level4\">\r\n<div class=\"ff_date_wrapper\">\r\n\r\n<label
245
- for=\"tickets_ret_date\">Returns</label>\r\n\r\n\r\n<input class=\"wdfDate\"
246
- type=\"text\" size=\"22\" id=\"wdfdate2\" maxlength=\"22\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[2]/departDate.date\"
247
- readonly=\"readonly\" /></div><div class=\"ff_time_wrapper\"><label for=\"wdftime2\"><b>Time</b></label><select
248
- onfocus=\"updateTimeState()\" onchange=\"timeChanged(2);updateDayDropDownListTrainStatusWithOffsets()\"
269
+ value=\"\">Anytime</option><option value=\"01:00\">Morning</option><option
270
+ value=\"13:00\">Afternoon</option><option value=\"19:00\">Evening</option></select>
271
+ \ \r\n
272
+ \ </div>\r\n </div>\r\n \r\n
273
+ \ \r\n <div id=\"tickets_ret_date_time\"
274
+ class=\"hide_section level4\"> \r\n <div
275
+ class=\"ff_date_wrapper\">\r\n \r\n
276
+ \ <label for=\"tickets_ret_date\">Returns</label>\r\n
277
+ \ <input class=\"wdfDate\" type=\"text\" size=\"22\"
278
+ id=\"wdfdate2\" maxlength=\"22\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[2]/departDate.usdate\"
279
+ /><a class=\"calLink noloading\" id=\"calLink2\">&nbsp;</a><br /><div id=\"calContainer2\"
280
+ \ class=\"calContainer\" bookingpath=\"regularBooking\" calwrapper=\"farefinder\"
281
+ caloffsetx=\"50\" calpickerxpos=\"50\" maxdate=\"+335d\"></div></div><div
282
+ class=\"ff_time_wrapper\"><label for=\"wdftime2\"><b>Time</b></label><select
249
283
  id=\"wdftime2\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[2]/departTime.hourmin\"><option
250
- value=\"\">Anytime</option><option value=\"07:00\">Morning</option><option
251
- value=\"14:00\">Afternoon</option><option value=\"19:00\">Evening</option><option
252
- value=\"23:59\">Midnight</option><option value=\"01:00\">1 AM</option><option
253
- value=\"02:00\">2 AM</option><option value=\"03:00\">3 AM</option><option
254
- value=\"04:00\">4 AM</option><option value=\"05:00\">5 AM</option><option
255
- value=\"06:00\">6 AM</option><option value=\"07:00\">7 AM</option><option
256
- value=\"08:00\">8 AM</option><option value=\"09:00\">9 AM</option><option
257
- value=\"10:00\">10 AM</option><option value=\"11:00\">11 AM</option><option
258
- value=\"12:00\">Noon</option><option value=\"13:00\">1 PM</option><option
259
- value=\"14:00\">2 PM</option><option value=\"15:00\">3 PM</option><option
260
- value=\"16:00\">4 PM</option><option value=\"17:00\">5 PM</option><option
261
- value=\"18:00\">6 PM</option><option value=\"19:00\">7 PM</option><option
262
- value=\"20:00\">8 PM</option><option value=\"21:00\">9 PM</option><option
263
- value=\"22:00\">10 PM</option><option value=\"23:00\">11 PM</option></select>\r\n\r\n</div>\r\n</div>\r\n\r\n</div>\r\n<div
264
- id=\"ff_tickets_passengers_subdiv\" class=\"subdiv level1\">\r\n<div id=\"tickets_passengers\">\r\n\r\n\r\n\r\n<div
265
- id=\"ff_adults_wrapper\">\r\n<label style=\"line-height:1.1;\" for=\"ff_adults\"><a
266
- href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&pass=Adult','pass','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
267
- CLASS=\"smallblue\">Adults</a><br /> (13-61)</label>\r\n<select onchange=\"javascript:discounttype('adult')\"
268
- id=\"oth_adults\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/numberOfTravellers[@key='Adult']\"><option
284
+ value=\"\">Anytime</option><option value=\"01:00\">Morning</option><option
285
+ value=\"13:00\">Afternoon</option><option value=\"19:00\">Evening</option></select>\r\n
286
+ \ </div>\r\n </div> \r\n \r\n
287
+ \ </div>\r\n <div id=\"ff_tickets_passengers_subdiv\"
288
+ class=\"subdiv level1\">\r\n <div id=\"tickets_passengers\">
289
+ \ \r\n \t\r\n
290
+ \ \t\r\n\t \r\n\t \t<div
291
+ id=\"ff_adults_wrapper\">\r\n\t\t <label style=\"line-height:1.1;\"
292
+ for=\"ff_adults\"><a href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&pass=Adult','pass','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
293
+ CLASS=\"smallblue\">Adults</a><br /> (13-61)</label>\r\n\t\t <select
294
+ onchange=\"javascript:discounttype('adult')\" id=\"oth_adults\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/numberOfTravellers[@key='Adult']\"><option
269
295
  value=\"0\">0</option><option value=\"1\" selected=\"selected\">1</option><option
270
296
  value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option
271
297
  value=\"5\">5</option><option value=\"6\">6</option><option value=\"7\">7</option><option
272
- value=\"8\">8</option></select>\r\n</div>\r\n<div id=\"ff_seniors_wrapper\">\r\n<label
298
+ value=\"8\">8</option></select>\r\n\t\t </div>\r\n\t\t
299
+ \ <div id=\"ff_seniors_wrapper\">\r\n\t\t <label
273
300
  style=\"line-height:1.1;\" for=\"ff_seniors\"><a href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&pass=Senior','pass','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
274
- CLASS=\"smallblue\">Seniors</a><br /> (62+)</label>\r\n<select onchange=\"javascript:discounttype('senior')\"
275
- id=\"oth_seniors\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/numberOfTravellers[@key='Senior']\"><option
301
+ CLASS=\"smallblue\">Seniors</a><br /> (62+)</label>\r\n\t\t <select
302
+ onchange=\"javascript:discounttype('senior')\" id=\"oth_seniors\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/numberOfTravellers[@key='Senior']\"><option
276
303
  value=\"0\" selected=\"selected\">0</option><option value=\"1\">1</option><option
277
304
  value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option
278
305
  value=\"5\">5</option><option value=\"6\">6</option><option value=\"7\">7</option><option
279
- value=\"8\">8</option></select>\r\n</div>\r\n\r\n\r\n\r\n<div id=\"ff_kids_wrapper\">\r\n<label
280
- style=\"line-height:1.1;\" for=\"ff_kids\"><a href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&pass=Child','pass','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
281
- CLASS=\"smallblue\">Children</a><br /> (2-12)</label>\r\n<select onchange=\"showChildPopup(this.options[this.selectedIndex].value,
306
+ value=\"8\">8</option></select>\r\n\t\t </div>\r\n\t \r\n
307
+ \ \r\n \r\n <div id=\"ff_kids_wrapper\">\r\n
308
+ \ <label style=\"line-height:1.1;\" for=\"ff_kids\"><a
309
+ href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&pass=Child','pass','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
310
+ CLASS=\"smallblue\">Children</a><br /> (2-12)</label> \r\n
311
+ \ <select onchange=\"showChildPopup(this.options[this.selectedIndex].value,
282
312
  document.getElementById('oth_infants').options[document.getElementById('oth_infants').selectedIndex].value,
283
313
  'oth_child_popup'),discounttype('child')\" id=\"oth_children\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/numberOfTravellers[@key='Child']\"><option
284
314
  value=\"0\" selected=\"selected\">0</option><option value=\"1\">1</option><option
285
315
  value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option
286
- value=\"5\">5</option></select>\r\n</div>\r\n<div id=\"ff_infants_wrapper\">\r\n<label
287
- style=\"line-height:1.1;\" for=\"ff_infants\"><a href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&pass=Infant','pass','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
288
- CLASS=\"smallblue\">Infants</a><br /> (under 2)</label>\r\n<select onchange=\"showChildPopup(this.options[this.selectedIndex].value,
316
+ value=\"5\">5</option></select>\r\n </div>\r\n <div
317
+ id=\"ff_infants_wrapper\">\r\n <label style=\"line-height:1.1;\"
318
+ for=\"ff_infants\"><a href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&pass=Infant','pass','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
319
+ CLASS=\"smallblue\">Infants</a><br /> (under 2)</label> \r\n
320
+ \ <select onchange=\"showChildPopup(this.options[this.selectedIndex].value,
289
321
  document.getElementById('oth_children').options[document.getElementById('oth_children').selectedIndex].value,
290
322
  'oth_child_popup'),discounttype('infant')\" id=\"oth_infants\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/numberOfTravellers[@key='Infant']\"><option
291
323
  value=\"0\" selected=\"selected\">0</option><option value=\"1\">1</option><option
292
- value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option></select>\r\n</div>\r\n</div>\r\n<br>\r\n\r\n\r\n\r\n<div
324
+ value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option></select>\r\n
325
+ \ </div>\r\n </div>\r\n <br>\r\n
326
+ \ \r\n \r\n \r\n <div
293
327
  id=\"oth_child_popup\" class=\"info_childpopup_ff hide_section\">Children
294
- and infants must travel with an adult who is at least 18 years or older.</div>\r\n\r\n\r\n\r\n<div
328
+ and infants must travel with an adult who is at least 18 years or older.</div>\r\n
329
+ \ \r\n \r\n \r\n <div
295
330
  class=\"subdiv unaccompaniedminor_link\"><a href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&ibsref=unaccompaniedMinor_FareFinder','ibsref','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
296
331
  CLASS=\"smallblue\">Children 13-15 traveling alone</a></div>\r\n<style>\r\n.info_childpopup_ff
297
- {\r\nmargin-bottom: 10px;\r\n}\r\n.unaccompaniedminor_link{\r\nfont-size:11px;\r\npadding-bottom:5px;\r\n}\r\n</style>\r\n\r\n</div>\r\n\r\n<div
298
- id=\"ff_submit_button\" class=\"subdiv\">\r\n\r\n\r\n<input type=\"image\"
299
- alt=\"Click to Find Tickets\" name=\"_handler=amtrak.presentation.handler.request.rail.farefamilies.AmtrakRailFareFamiliesSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
332
+ {\r\n margin-bottom: 10px;\r\n }\r\n .unaccompaniedminor_link{\r\n font-size:11px;\r\n
333
+ padding-bottom:5px;\r\n }\r\n</style> \r\n \r\n \r\n \r\n
334
+ \ </div>\r\n \r\n <div id=\"ff_submit_button\"
335
+ class=\"subdiv\"> \r\n \r\n \r\n
336
+ \ \r\n <input type=\"image\" alt=\"Click
337
+ to Find Tickets\" name=\"_handler=amtrak.presentation.handler.request.rail.farefamilies.AmtrakRailFareFamiliesSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
300
338
  onclick=\"javascript:return ( preFareFinderSubmitActions('The following information
301
339
  is needed to process your request:', 'Problem Pricing the Itinerary: Atlantic
302
340
  City Express Service offers adult fares only for all passengers. Please modify
303
- your selection to continue. \\n[Error ID: 1121S]'))\" src=\"/images/en/btn_ff_findTrains.gif\"
304
- border=\"0\" />\r\n\r\n</div>\r\n\r\n<div id=\"ff_promocode\" class=\"subdiv
305
- oth_promocode\">\r\n<input type=\"hidden\" name=\"xwdf_promoCode\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/couponRequirements/coupon/code\"
341
+ your selection to continue. \\n[Error ID: 1121S]') && ValidateBookingDate())\"
342
+ src=\"/images/en/btn_ff_findTrains.gif\" border=\"0\" /> \r\n \r\n
343
+ \ \r\n </div> \r\n \r\n
344
+ \ <div id=\"ff_promocode\" class=\"subdiv oth_promocode\">\r\n
345
+ \ <input type=\"hidden\" name=\"xwdf_promoCode\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/couponRequirements/coupon/code\"
306
346
  /><input onfocus=\"focuspromotext();\" type=\"text\" size=\"15\" id=\"ff_disc_promoCode\"
307
- maxlength=\"10\" name=\"wdf_promoCode\" onblur=\"blurpromotext();\" />\r\n</div>\r\n<script>\r\nvar
308
- promocode = 'Promo Code';\r\nfunction blurpromotext(){\r\nif(document.getElementById('ff_disc_promoCode').value
309
- == '') {\r\ndocument.getElementById('ff_disc_promoCode').value = promocode;\r\n}\r\n}\r\nfunction
310
- focuspromotext(){\r\nif(document.getElementById('ff_disc_promoCode').value
311
- == promocode) {\r\ndocument.getElementById('ff_disc_promoCode').value = \"\";\r\n}\r\n}\r\n</script>\r\n<script
312
- type=\"text/javascript\">\r\n//<![CDATA[\r\nElement.observe(window, 'load',
313
- function(){\r\nif(document.getElementById('ff_disc_promoCode').value == '')
314
- {\r\ndocument.getElementById('ff_disc_promoCode').value = promocode;\r\n}\r\n});\r\n//]]>\r\n</script>\r\n\r\n<div
315
- class=\"clear_both\"></div>\r\n\r\n\r\n<div id=\"ff_disctype\" class=\"subdiv\"
316
- >\r\n\r\n</div>\r\n<div id=\"discountsrules\" class=\"subdiv\"><a href=\"javascript:var
317
- child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&ibsref=preffare','ibsref','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
318
- CLASS=\"smallblue\">Passenger type/discount rules</a></div>\r\n\r\n\r\n<script
319
- type=\"text/javascript\">\r\n//<![CDATA[\r\nElement.observe(window, 'load',
320
- function(){\r\ndiscounttype(\"adult\");\r\njQuery(\"#adult_select0 option[value='Adult']\").attr(\"selected\",
321
- \"selected\");\r\n});\r\n//]]>\r\n</script>\r\n\r\n\r\n\r\n\r\n\r\n</form>\r\n</div>\r\n<script>\r\nif(
322
- $('ff_sub_tabbar_bookatrip').hasClassName(\"active\") ){\r\nshow_ff_sub_tab('bookatrip');\r\n}
323
- else if( $('ff_sub_tabbar_redeem').hasClassName(\"active\") ){\r\nshow_ff_sub_tab('redeem');\r\n}\r\nfunction
324
- discounttype(passtype) {\r\nvar totaladults = jQuery('#oth_adults').val();\r\nvar
325
- totalseniors = jQuery('#oth_seniors').val();\r\nvar totalchilds = jQuery('#oth_children').val();\r\nvar
326
- totalinfants = jQuery('#oth_infants').val();\r\nvar totaladperson = parseInt(totaladults)
327
- + parseInt(totalseniors) ;\r\nvar dischtml='';\r\nvar count=0;\r\nvar sencount
328
- =0;\r\nvar adtcount= 0;\r\nvar j=0;\r\nvar k=0;\r\nif ( totaladperson != 0
329
- ){\r\nfor ( var i=0; i<totaladperson; i++) {\r\ncount++;\r\nvar adultopts=
330
- \"<option value='Default'>Select</option><option value='Adult'>Adult</option><option
347
+ maxlength=\"10\" name=\"wdf_promoCode\" onblur=\"blurpromotext();\" />\r\n
348
+ \ </div>\r\n <script>\r\n var
349
+ promocode = 'Promo Code';\r\n function blurpromotext(){\r\n
350
+ \ \tif(document.getElementById('ff_disc_promoCode').value ==
351
+ '') {\r\n document.getElementById('ff_disc_promoCode').value
352
+ = promocode;\r\n } \r\n }\r\n function
353
+ focuspromotext(){\r\n if(document.getElementById('ff_disc_promoCode').value
354
+ == promocode) {\r\n document.getElementById('ff_disc_promoCode').value
355
+ = \"\";\r\n } \r\n \r\n }\r\n </script>\r\n
356
+ \ <script type=\"text/javascript\"> \r\n //<![CDATA[
357
+ \r\n Element.observe(window, 'load', function(){\r\n \t
358
+ \ if(document.getElementById('ff_disc_promoCode').value == '') {\r\n document.getElementById('ff_disc_promoCode').value
359
+ = promocode;\r\n } \r\n \r\n }); \r\n //]]>
360
+ \r\n </script>\r\n \r\n <div class=\"clear_both\"></div>\r\n
361
+ \ \r\n \r\n \r\n \r\n
362
+ \ <div id=\"ff_disctype\" class=\"subdiv\" > \r\n \t\t\t\t\t
363
+ \ \r\n </div>\r\n <div id=\"discountsrules\" class=\"subdiv\"><a
364
+ href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&ibsref=preffare','ibsref','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
365
+ CLASS=\"smallblue\">Passenger type/discount rules</a></div>\r\n \r\n
366
+ \ \r\n \r\n\t <script
367
+ type=\"text/javascript\">\r\n\t\t //<![CDATA[\r\n\t\t Element.observe(window,
368
+ 'load', function(){\r\n\t\t \tdiscounttype(\"adult\");\r\n\t\t
369
+ \ \tjQuery(\"#adult_select0 option[value='Adult']\").attr(\"selected\",
370
+ \"selected\");\r\n\t\t }); \r\n\t\t //]]>\r\n\t
371
+ \ </script> \r\n\t \r\n\t \r\n
372
+ \ \r\n \r\n \r\n
373
+ \ </form> \r\n </div>\r\n\r\n<script>\r\nif( $('ff_sub_tabbar_bookatrip').hasClassName(\"active\")
374
+ ){\r\n\tshow_ff_sub_tab('bookatrip');\r\n } else if( $('ff_sub_tabbar_redeem').hasClassName(\"active\")
375
+ ){\t \r\n\tshow_ff_sub_tab('redeem');\r\n }\r\n\r\n function discounttype(passtype)
376
+ {\t \r\n var totaladults = jQuery('#oth_adults').val();\r\n var totalseniors
377
+ = jQuery('#oth_seniors').val();\r\n var totalchilds = jQuery('#oth_children').val();\r\n
378
+ \ var totalinfants = jQuery('#oth_infants').val();\r\n var totaladperson
379
+ = parseInt(totaladults) + parseInt(totalseniors) ;\r\n var dischtml='';\r\n
380
+ \ var count=0;\r\n var sencount =0;\r\n var adtcount= 0;\r\n var
381
+ j=0;\r\n var k=0;\r\n\r\n if ( totaladperson != 0 ){\r\n for
382
+ ( var i=0; i<totaladperson; i++) {\r\n count++;\r\n var
383
+ adultopts= \"<option value='Default'>Select</option><option value='Adult'>Adult</option><option
331
384
  value='Senior'>Senior</option><option value='ADAPaxType_Adult'>Passenger with
332
385
  Disability (PWD)</option><option value='ADAPaxType_Companion'>Companion (Book
333
386
  with PWD)</option><option value='AAA Adult'>AAA Adult</option><option value='NARP'>NARP</option><option
334
387
  value='Military'>Military Adult (Active)</option><option value='Veterans Advantage'>Veterans
335
388
  Advantage</option><option value='Student Advantage'>Student Advantage</option><option
336
- value='ISIC'>ISIC</option>\";\r\nvar senopts= \"<option value='Default'>Select</option><option
389
+ value='ISIC'>ISIC</option>\";\r\n var senopts= \"<option value='Default'>Select</option><option
337
390
  value='Adult'>Adult</option><option value='Senior' selected='selected'>Senior</option><option
338
391
  value='ADAPaxType_Adult'>Passenger with Disability (PWD)</option><option value='ADAPaxType_Companion'>Companion
339
392
  (Book with PWD)</option><option value='AAA Adult'>AAA Adult</option><option
340
393
  value='NARP'>NARP</option><option value='Military'>Military Adult (Active)</option><option
341
394
  value='Veterans Advantage'>Veterans Advantage</option><option value='Student
342
- Advantage'>Student Advantage</option><option value='ISIC'>ISIC</option>\";\r\nvar
343
- adtlabel=\"Adult\";\r\nif (jQuery('#adult_select'+i).val()) {\r\nvar curadtval
344
- = \"value='\"+jQuery('#adult_select'+i).val()+\"'\";\r\nvar newadtval = \"value='\"+jQuery('#adult_select'+i).val()+\"'
345
- selected='selected'\";\r\nif (curadtval == \"value='Senior'\" && sencount<totalseniors
346
- ){\r\nadtlabel = \"Senior\";\r\nsencount++;\r\nadultopts = adultopts.replace(curadtval,
347
- newadtval);\r\n} else {\r\nif (curadtval == \"value='Senior'\" && sencount>=totalseniors
348
- ){\r\nif (j==0) {\r\nj=i;\r\n} else {\r\nj=j+1;\r\n}\r\nwhile (j<=totaladperson)
349
- \ {\r\nif (jQuery('#adult_select'+(j+1)).val() != 'Senior') {\r\nvar ncuradtval
350
- = \"value='\"+jQuery('#adult_select'+(j+1)).val()+\"'\";\r\nvar nnewadtval
351
- = \"value='\"+jQuery('#adult_select'+(j+1)).val()+\"' selected='selected'\";\r\nadultopts
352
- = adultopts.replace(ncuradtval, nnewadtval);\r\nbreak;\r\n}\r\nj++;\r\n}\r\n}
353
- else {\r\nif (curadtval != \"value='Senior'\" && adtcount<totaladults ){\r\nadtcount++;\r\nadultopts
354
- = adultopts.replace(curadtval, newadtval);\r\n} else {\r\nif (curadtval !=
355
- \"value='Senior'\" && adtcount>=totaladults ){\r\nif (k==0) {\r\nk=i;\r\n}
356
- else {\r\nk=k+1;\r\n}\r\nwhile (k<=totaladperson) {\r\nif (jQuery('#adult_select'+(k+1)).val()
357
- == 'Senior') {\r\nvar ncuradtval = \"value='\"+jQuery('#adult_select'+(k+1)).val()+\"'\";\r\nvar
358
- nnewadtval = \"value='\"+jQuery('#adult_select'+(k+1)).val()+\"' selected='selected'\";\r\nadultopts
359
- = adultopts.replace(ncuradtval, nnewadtval);\r\nadtlabel = \"Senior\";\r\nbreak;\r\n}\r\nk++;\r\n}\r\n}
360
- else {\r\nadultopts = adultopts.replace(curadtval, newadtval);\r\n}\r\n}\r\n}\r\n}\r\n}
361
- else {\r\nif (passtype== 'senior' || passtype== 'Senior') {\r\nadultopts=senopts;\r\nadtlabel
362
- =\"Senior\";\r\n}\r\n}\r\ndischtml += '<div id =\"pass'+count+'\" class=\"'+adtlabel+'\"><div
395
+ Advantage'>Student Advantage</option><option value='ISIC'>ISIC</option>\";\r\n
396
+ \ var adtlabel=\"Adult\";\r\n if (jQuery('#adult_select'+i).val())
397
+ {\r\n var curadtval = \"value='\"+jQuery('#adult_select'+i).val()+\"'\";\r\n
398
+ \ var newadtval = \"value='\"+jQuery('#adult_select'+i).val()+\"'
399
+ selected='selected'\";\r\n \r\n if
400
+ (curadtval == \"value='Senior'\" && sencount<totalseniors ){\r\n adtlabel
401
+ = \"Senior\";\r\n \tsencount++;\r\n \tadultopts
402
+ = adultopts.replace(curadtval, newadtval); \r\n } else {\r\n
403
+ \ \tif (curadtval == \"value='Senior'\" && sencount>=totalseniors
404
+ ){\r\n \tif (j==0) {\r\n \tj=i;\r\n
405
+ \ \t} else {\r\n \t\tj=j+1;\r\n \t}\r\n
406
+ \ \twhile (j<=totaladperson) {\r\n \t\t
407
+ if (jQuery('#adult_select'+(j+1)).val() != 'Senior') {\r\n var
408
+ ncuradtval = \"value='\"+jQuery('#adult_select'+(j+1)).val()+\"'\";\r\n var
409
+ nnewadtval = \"value='\"+jQuery('#adult_select'+(j+1)).val()+\"' selected='selected'\";\r\n
410
+ \ adultopts = adultopts.replace(ncuradtval,
411
+ nnewadtval); \r\n break;\r\n }\r\n
412
+ \ \t j++; \t\r\n \t }\r\n \t}
413
+ else {\r\n \t\tif (curadtval != \"value='Senior'\" && adtcount<totaladults
414
+ ){\r\n adtcount++;\r\n adultopts
415
+ = adultopts.replace(curadtval, newadtval); \r\n }
416
+ else {\r\n if (curadtval != \"value='Senior'\"
417
+ && adtcount>=totaladults ){\r\n if (k==0) {\r\n
418
+ \ k=i;\r\n }
419
+ else {\r\n k=k+1;\r\n }\r\n
420
+ \ while (k<=totaladperson) {\r\n if
421
+ (jQuery('#adult_select'+(k+1)).val() == 'Senior') {\r\n var
422
+ ncuradtval = \"value='\"+jQuery('#adult_select'+(k+1)).val()+\"'\";\r\n var
423
+ nnewadtval = \"value='\"+jQuery('#adult_select'+(k+1)).val()+\"' selected='selected'\";\r\n
424
+ \ adultopts = adultopts.replace(ncuradtval,
425
+ nnewadtval); \r\n adtlabel = \"Senior\";\r\n
426
+ \ break;\r\n }\r\n
427
+ \ k++; \r\n }\r\n
428
+ \ } else {\r\n \tadultopts
429
+ = adultopts.replace(curadtval, newadtval);\r\n }\r\n
430
+ \ }\r\n\r\n \t}\r\n }\r\n
431
+ \ \r\n } else {\r\n\r\n if (passtype==
432
+ 'senior' || passtype== 'Senior') {\r\n \t adultopts=senopts;\r\n
433
+ \ \t adtlabel =\"Senior\";\r\n }\r\n }\r\n
434
+ \ \r\n dischtml += '<div id =\"pass'+count+'\" class=\"'+adtlabel+'\"><div
363
435
  class=\"ff_disc_passenger\"><label id=\"label'+count+'\" for=\"disc_passenger'+count+'\">Passenger
364
436
  #'+count+' ('+adtlabel+')</label><br/><input type=\"hidden\" value=\"/sessionWorkflow/productWorkflow[@product=\\'Rail\\']/tripRequirements/allJourneyRequirements/person['+count+']/personType\"
365
437
  name=\"xwdf_person_type'+count+'\"><select onfocus=\"this.oldvalue = this.value;\"
366
438
  \ onchange=\"totalpass(this,'+count+');this.oldvalue = this.value;\" name=\"wdf_person_type'+count+'\"
367
- id=\"adult_select'+i+'\" class=\"disc_passenger_select\">'+adultopts+'</select></div></div>';\r\n}\r\n}\r\nif
368
- ( totalchilds != 0) {\r\nfor ( var i=0; i<totalchilds; i++) {\r\ncount++;\r\nvar
369
- childopts= \"<option value='Default'>Select</option><option value='Child'>Child
370
- (Ages 2-12)</option><option value='ADAPaxType_Child'>Passenger with Disability
371
- (PWD)</option><option value='AAA Child'>AAA Child (Ages 2-12)</option><option
372
- value='Military Child'>Military Child (Ages 2-12)</option>\";\r\nif (jQuery('#child_select'+i).val())
373
- {\r\nvar curchival = \"value='\"+jQuery('#child_select'+i).val()+\"'\";\r\nvar
374
- newchival = \"value='\"+jQuery('#child_select'+i).val()+\"' selected='selected'\";\r\nchildopts
375
- = childopts.replace(curchival, newchival);\r\n}\r\ndischtml += '<div id =\"pass'+count+'\"
439
+ id=\"adult_select'+i+'\" class=\"disc_passenger_select\">'+adultopts+'</select></div></div>';\r\n
440
+ \r\n }\r\n } \r\n \r\n\r\n if ( totalchilds != 0) {\r\n
441
+ \ for ( var i=0; i<totalchilds; i++) {\r\n count++;\r\n
442
+ \ var childopts= \"<option value='Default'>Select</option><option
443
+ value='Child'>Child (Ages 2-12)</option><option value='ADAPaxType_Child'>Passenger
444
+ with Disability (PWD)</option><option value='AAA Child'>AAA Child (Ages 2-12)</option><option
445
+ value='Military Child'>Military Child (Ages 2-12)</option>\";\r\n if
446
+ (jQuery('#child_select'+i).val()) {\r\n var curchival = \"value='\"+jQuery('#child_select'+i).val()+\"'\";\r\n
447
+ \ var newchival = \"value='\"+jQuery('#child_select'+i).val()+\"'
448
+ selected='selected'\";\r\n childopts = childopts.replace(curchival,
449
+ newchival); \r\n }\r\n dischtml += '<div id =\"pass'+count+'\"
376
450
  class=\"ff_disc_passenger\"><label for=\"disc_passenger'+count+'\">Passenger
377
451
  #'+count+' (Child)</label><br/><input type=\"hidden\" value=\"/sessionWorkflow/productWorkflow[@product=\\'Rail\\']/tripRequirements/allJourneyRequirements/person['+count+']/personType\"
378
452
  name=\"xwdf_person_type'+count+'\"><select name=\"wdf_person_type'+count+'\"
379
- id=\"child_select'+i+'\" class=\"disc_passenger_select\">'+childopts+'</select></div>';\r\n}\r\n}\r\nif
380
- ( totalinfants != 0 ) {\r\nfor ( var i=0; i<totalinfants; i++) {\r\ncount++;\r\ndischtml
453
+ id=\"child_select'+i+'\" class=\"disc_passenger_select\">'+childopts+'</select></div>';
454
+ \ \r\n }\r\n }\r\n if ( totalinfants != 0 ) {\r\n for
455
+ ( var i=0; i<totalinfants; i++) {\r\n count++;\r\n dischtml
381
456
  += '<div id =\"pass'+count+'\" class=\"ff_disc_passenger\"><label for=\"disc_passenger'+count+'\">Passenger
382
457
  #'+count+' (Infant)</label><br/><p>Infant (Under age 2)</p><input type=\"hidden\"
383
- value=\"Infant\" name=\"/sessionWorkflow/productWorkflow[@product=\\'Rail\\']/tripRequirements/allJourneyRequirements/person['+count+']/personType\"></div>';\r\n}\r\n}\r\ndocument.getElementById('ff_disctype').innerHTML
384
- = dischtml;\r\nif ( count != 0) {\r\ndocument.getElementById(\"ff_disctype\"
385
- ).style.display = 'block';\r\n} else {\r\ndocument.getElementById(\"ff_disctype\"
386
- ).style.display = 'none';\r\n}\r\n}\r\nfunction validatePassDiscountSelect(){\r\nvar
387
- totaladults = jQuery('#oth_adults').val();\r\nvar totalseniors = jQuery('#oth_seniors').val();\r\nvar
388
- totaladperson = parseInt(totaladults) + parseInt(totalseniors) ;\r\nvar totalchilds
389
- = jQuery('#oth_children').val();\r\nvar errorMsg = \"\";\r\nif ( totaladperson
390
- != 0 ){\r\nfor (i = 0; i < totaladperson; i++) {\r\nif (jQuery('#adult_select'+i).val()
391
- == 'Default') {\r\nerrorMsg = 'Please make sure you have selected a passenger
392
- type for all of the members in your traveling party.';\r\n}\r\n}\r\n}\r\nif
393
- ( totalchilds != 0 ){\r\nfor (i = 0; i < totalchilds; i++) {\r\nif (jQuery('#child_select'+i).val()
394
- == 'Default') {\r\nerrorMsg = 'Please make sure you have selected a passenger
395
- type for all of the members in your traveling party.';\r\n}\r\n}\r\n}\r\nif
396
- (errorMsg!=\"\"){\r\nalert(errorMsg);\r\nreturn false;\r\n} else {\r\nreturn
397
- true;\r\n}\r\n}\r\nfunction totalpass(id, ct) {\r\nvar oldvalue = id.oldvalue;\r\nvar
398
- newvalue = id.value;\r\nvar newlabel = \"label\"+ct;\r\nif (oldvalue == 'Senior'
399
- || newvalue == 'Senior') {\r\nif (oldvalue == 'Senior' && newvalue != 'Senior')
400
- {\r\nvar tadt = parseInt(document.getElementById(\"oth_adults\").value);\r\nvar
401
- tsen = parseInt(document.getElementById(\"oth_seniors\").value);\r\ntadt +=
402
- 1;\r\ntsen -= 1;\r\ndocument.getElementById(\"oth_adults\").value = tadt;\r\ndocument.getElementById(\"oth_seniors\").value
403
- = tsen;\r\nvar res = document.getElementById(newlabel).innerHTML.replace(\"Senior\",\"Adult\");\r\ndocument.getElementById(newlabel).innerHTML
404
- =res;\r\n} else {\r\nif (newvalue == 'Senior' && oldvalue != 'Senior') {\r\nvar
405
- tadt = parseInt(document.getElementById(\"oth_adults\").value);\r\nvar tsen
406
- = parseInt(document.getElementById(\"oth_seniors\").value);\r\ntadt -= 1;\r\ntsen
407
- += 1;\r\ndocument.getElementById(\"oth_adults\").value = tadt;\r\ndocument.getElementById(\"oth_seniors\").value
408
- = tsen;\r\nvar res = document.getElementById(newlabel).innerHTML.replace(\"Adult\",\"Senior\");\r\ndocument.getElementById(newlabel).innerHTML
409
- =res;\r\n}\r\n}\r\n}\r\n}\r\nfunction closeAlertBox() {\r\nvar $j = jQuery.noConflict();\r\n$j(\".ui-dialog-content\").dialog(\"close\");\r\n}\r\n</script>\r\n<style>\r\n.disc_passenger_select
410
- {\r\nmargin-top:2px;\r\nmargin-left:0px;\r\n}\r\n</style>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<div
411
- id=\"farefinder_tabbody_redeem\" class=\"farefinder_tabbody\">\r\n<h2>Redeem
412
- Points</h2>\r\n<form name=\"ff_redeem_form\" action=\"https://tickets.amtrak.com/itd/amtrak\"
413
- method=\"post\"><input type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.redeem.PresAmtrakRailRedeemFindATicketReqsPageHandler\"
414
- />\r\n<div id=\"ff_redeem_step_1\" class=\"subdiv\">\r\n<div id=\"ff_member_wrapper\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<div
415
- class=\"form_line_wrapper first\">\r\n<label for=\"ff_membernumber\">Member
416
- Number</label>\r\n<span class=\"form_entry\">\r\n<input type=\"text\" id=\"ff_membernumber\"
417
- maxlength=\"10\" name=\"/sessionWorkflow/profileWorkflow/schemeAccount/membershipNumber\"
418
- />\r\n</span>\r\n</div>\r\n<div class=\"form_line_wrapper\">\r\n<label for=\"ff_memberpassword\">Member
419
- Password</label>\r\n<span class=\"form_entry\">\r\n<input type=\"password\"
420
- id=\"ff_memberpassword\" maxlength=\"29\" name=\"/sessionWorkflow/profileWorkflow/schemeAccount/@password\"
421
- />\r\n</span>\r\n</div>\r\n<br class=\"clear_both\" />\r\n\r\n\r\n\r\n</div>\r\n</div>\r\n<div
422
- id=\"ff_tickets_redeem_cities_subdiv\" class=\"subdiv\">\r\n\r\n<div id=\"tickets_dep_city\"
423
- class=\"ff_city_wrapper\">\r\n<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect\"
424
- value=\"arrivalTime\" />\r\n<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@bookpath\"
425
- value=\"redeem\" />\r\n<label for=\"agrdeparts\">From</label>\r\n<input type=\"hidden\"
426
- name=\"xwdf_origin\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
458
+ value=\"Infant\" name=\"/sessionWorkflow/productWorkflow[@product=\\'Rail\\']/tripRequirements/allJourneyRequirements/person['+count+']/personType\"></div>';
459
+ \ \r\n }\r\n }\r\n \r\n document.getElementById('ff_disctype').innerHTML
460
+ = dischtml;\r\n if ( count != 0) {\r\n document.getElementById(\"ff_disctype\"
461
+ ).style.display = 'block';\r\n } else {\r\n document.getElementById(\"ff_disctype\"
462
+ ).style.display = 'none';\r\n }\r\n}\r\n\r\nfunction validatePassDiscountSelect(){\r\n\tvar
463
+ totaladults = jQuery('#oth_adults').val();\r\n\tvar totalseniors = jQuery('#oth_seniors').val();\r\n
464
+ \ var totaladperson = parseInt(totaladults) + parseInt(totalseniors) ;\r\n
465
+ \ var totalchilds = jQuery('#oth_children').val();\r\n var errorMsg =
466
+ \"\";\r\n if ( totaladperson != 0 ){\r\n \t for (i = 0; i < totaladperson;
467
+ i++) {\r\n \t\t if (jQuery('#adult_select'+i).val() == 'Default') {\r\n
468
+ \ \t\t \t errorMsg = 'Please make sure you have selected a passenger
469
+ type for all of the members in your traveling party.';\r\n \t\t }\r\n
470
+ \ \t}\r\n }\r\n if ( totalchilds != 0 ){\r\n for (i =
471
+ 0; i < totalchilds; i++) {\r\n if (jQuery('#child_select'+i).val()
472
+ == 'Default') {\r\n errorMsg = 'Please make sure you
473
+ have selected a passenger type for all of the members in your traveling party.';\r\n
474
+ \ }\r\n }\r\n }\r\n\r\n if (errorMsg!=\"\"){\r\n
475
+ \ alert(errorMsg);\r\n return false;\r\n } else {\r\n return
476
+ true;\r\n }\r\n \r\n}\r\n\r\nfunction totalpass(id, ct) {\r\n\r\n\tvar
477
+ oldvalue = id.oldvalue;\r\n\tvar newvalue = id.value;\r\n\tvar newlabel =
478
+ \"label\"+ct;\r\n\r\n\tif (oldvalue == 'Senior' || newvalue == 'Senior') {\r\n\r\n\t\tif
479
+ (oldvalue == 'Senior' && newvalue != 'Senior') {\r\n\t\t\tvar tadt = parseInt(document.getElementById(\"oth_adults\").value);\r\n\t\t\tvar
480
+ tsen = parseInt(document.getElementById(\"oth_seniors\").value);\r\n\t\t\ttadt
481
+ += 1;\r\n\t\t\ttsen -= 1;\r\n\t\t\tdocument.getElementById(\"oth_adults\").value
482
+ = tadt;\r\n\t\t\tdocument.getElementById(\"oth_seniors\").value = tsen;\r\n\t\t\tvar
483
+ res = document.getElementById(newlabel).innerHTML.replace(\"Senior\",\"Adult\");
484
+ \r\n\t\t\tdocument.getElementById(newlabel).innerHTML =res; \r\n\t\t} else
485
+ {\r\n\r\n\t\t\tif (newvalue == 'Senior' && oldvalue != 'Senior') {\r\n\t var
486
+ tadt = parseInt(document.getElementById(\"oth_adults\").value);\r\n\t var
487
+ tsen = parseInt(document.getElementById(\"oth_seniors\").value);\r\n\t tadt
488
+ -= 1;\r\n\t tsen += 1;\r\n\t document.getElementById(\"oth_adults\").value
489
+ = tadt;\r\n\t document.getElementById(\"oth_seniors\").value =
490
+ tsen;\r\n\t var res = document.getElementById(newlabel).innerHTML.replace(\"Adult\",\"Senior\");
491
+ \r\n\t document.getElementById(newlabel).innerHTML =res; \r\n\t\t
492
+ \ \r\n\t } \r\n\t\t} \r\n\t}\r\n\t \r\n\t \r\n}\r\n\r\n\r\nfunction
493
+ closeAlertBox() { \r\n var $j = jQuery.noConflict();\r\n $j(\".ui-dialog-content\").dialog(\"close\");
494
+ \r\n}\r\n\r\nfunction ValidateBookingDate(){\r\n\tvar errMinMsg=\"\";\r\n\tvar
495
+ errMaxMsg=\"\";\r\n\tvar errMsg=\"\";\r\n\tvar newdate = new Date();\r\n\tvar
496
+ numberOfDaysToAdd = '+335d';\r\n\tnumberOfDaysToAdd = parseInt(numberOfDaysToAdd.replace(/\\D/g,''));\r\n\tvar
497
+ mindate= $j.datepicker.formatDate('mm/dd/yy', newdate);\r\n\tnewdate.setDate(newdate.getDate()
498
+ + numberOfDaysToAdd); \r\n\tvar maxdate= $j.datepicker.formatDate('mm/dd/yy',
499
+ newdate);\r\n\tvar depdate=document.getElementById(\"wdfdate1\").value;\r\n\t\r\n\tif
500
+ (depdate != \"\" && validMinDateRange(mindate,depdate) == false ){\r\n \terrMinMsg
501
+ = 'Problem with Travel Date: Our system cannot make reservations for dates
502
+ in the past. Check your date(s) and try again. [Error ID: 532S]\\n\\n' ;\r\n
503
+ \t}\r\n if(document.getElementById('return').checked) {\r\n var
504
+ retdate=document.getElementById(\"wdfdate2\").value;\r\n if (retdate
505
+ != \"\" && validMinDateRange(mindate,retdate) == false ){\r\n errMinMsg
506
+ = 'Problem with Travel Date: Our system cannot make reservations for dates
507
+ in the past. Check your date(s) and try again. [Error ID: 532S]\\n\\n' ;\r\n
508
+ \ } \r\n \r\n }\r\n if (depdate != \"\" && validMaxDateRange(maxdate,depdate)
509
+ == false ){\r\n \terrMaxMsg = 'Problem with Travel Date: Our system cannot
510
+ make reservations for dates more than 11 months in the future. Check your
511
+ date(s) and try again. [Error ID: 533S]' ;\r\n }\r\n if(document.getElementById('return').checked)
512
+ {\r\n var retdate=document.getElementById(\"wdfdate2\").value;\r\n
513
+ \ if (retdate != \"\" && validMaxDateRange(maxdate,retdate) == false
514
+ ){\r\n errMaxMsg = 'Problem with Travel Date: Our system cannot
515
+ make reservations for dates more than 11 months in the future. Check your
516
+ date(s) and try again. [Error ID: 533S]' ;\r\n } \r\n \r\n
517
+ \ }\r\n \r\n errMsg += errMinMsg+errMaxMsg;\r\n\r\n if (null !=
518
+ errMsg && errMsg != \"\" ) {\r\n alert(errMsg);\r\n return
519
+ false;\r\n } else {\r\n return true;\r\n }\r\n \r\n\r\n}\r\n\r\n</script>\r\n<style>\r\n
520
+ .disc_passenger_select {\r\n margin-top:2px;\r\n margin-left:0px;\r\n }\r\n
521
+ </style>\r\n\r\n \r\n \r\n \r\n \r\n
522
+ \ \r\n\t \r\n \r\n \r\n
523
+ \ \r\n \r\n <script type=\"text/javascript\">\r\n //<![CDATA[\r\n
524
+ \ var $j = jQuery.noConflict();\r\n $j( document ).ready(function()
525
+ {\r\n \t document.getElementById(\"wdfdate1\").value = ''; \r\n \t
526
+ \ document.getElementById(\"wdfdate15\").value = 'Select a date'; \r\n
527
+ \ }); \r\n //]]>\r\n </script>\r\n\t <script type=\"text/javascript\">\r\n\t
528
+ \ if (document.getElementById(\"wdfdate15\") != null && \r\n\t \t document.getElementById(\"wdfdate15\").value
529
+ == '') {\r\n\t document.getElementById(\"wdfdate15\").value = 'Select
530
+ a date'; \r\n\t } \r\n\t </script>\r\n \r\n\n \n \n
531
+ \ \r\n\r\n\r\n\r\n\r\n <div id=\"farefinder_tabbody_redeem\"
532
+ class=\"farefinder_tabbody\">\r\n \t<h2>Redeem Points</h2>\r\n \t\r\n
533
+ \ \t<form onsubmit=\"javascript: return ValidateRedeemDate()\" name=\"ff_redeem_form\"
534
+ action=\"https://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input type=\"hidden\"
535
+ name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.redeem.PresAmtrakRailRedeemFindATicketReqsPageHandler\"
536
+ />\r\n \t\t<div id=\"ff_redeem_step_1\" class=\"subdiv\"> \t\t\r\n\t
537
+ \ \t<div id=\"ff_member_wrapper\">\r\n\t \t\t\r\n\t \t\t\r\n\t
538
+ \ \t\t\r\n\t \t\t\r\n\t\t\t \r\n\t\t\t \t\r\n\t\t\t
539
+ \ \t\r\n\t\t\t \t<div class=\"form_line_wrapper first\">\r\n\t\t\t
540
+ \ \t<label for=\"ff_membernumber\">Member Number</label>\r\n\t\t\t
541
+ \ \t<span class=\"form_entry\">\r\n\t\t\t \t<input
542
+ type=\"text\" autocomplete=\"off\" id=\"ff_membernumber\" maxlength=\"10\"
543
+ name=\"/sessionWorkflow/profileWorkflow/schemeAccount/membershipNumber\" />\r\n\t\t\t
544
+ \ </span>\r\n\t\t\t </div>\r\n\t\t\t <div
545
+ class=\"form_line_wrapper\">\r\n\t\t\t \t<label for=\"ff_memberpassword\">Member
546
+ Password</label>\r\n\t\t\t <span class=\"form_entry\">\t\r\n\t\t\t
547
+ \ \t<input type=\"password\" autocomplete=\"off\" id=\"ff_memberpassword\"
548
+ maxlength=\"29\" name=\"/sessionWorkflow/profileWorkflow/schemeAccount/@password\"
549
+ />\r\n\t\t\t </span>\t \r\n\t\t\t </div>\r\n\t\t\t
550
+ \ <br class=\"clear_both\" />\t\t\t \r\n\t\t\t
551
+ \ \r\n\t \t\t\r\n\t \t\t \r\n\t \t</div>\r\n \t</div>\r\n\t
552
+ \ \r\n\t <div id=\"ff_tickets_redeem_cities_subdiv\" class=\"subdiv\">\r\n\t\t\t\r\n\t\t
553
+ \ \t<div id=\"tickets_dep_city\" class=\"ff_city_wrapper\">\t\t\t \t\t\t\t\t\t
554
+ \ \r\n\t\t \t<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect\"
555
+ value=\"arrivalTime\" />\r\n\t\t \t<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@bookpath\"
556
+ value=\"redeem\" />\t\t\t \t\t\t\r\n\t\t \t\t<label for=\"agrdeparts\">From</label>\t\t\t\t
557
+ \ \r\n\t\t \t<input type=\"hidden\" name=\"xwdf_origin\"
558
+ value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
427
559
  /><input class=\"text\" type=\"text\" id=\"agrdeparts\" name=\"wdf_origin\"
428
- value=\"askdf\" />\r\n<p><span class=\"find_a_station\"><a title=\"Click for
429
- a list of stations.\" href=\"javascript:fieldName='agrdeparts'; openStationList();\">Find
430
- a Station</a></span></p>\r\n</div>\r\n<div id=\"tickets_arr_city\" class=\"ff_city_wrapper
431
- level3\">\r\n<label for=\"agrarrives\">To</label>\r\n<input type=\"hidden\"
432
- name=\"xwdf_destination\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/arriveLocation/search\"
560
+ value=\"askdf\" />\r\n\t\t \t<p><span class=\"find_a_station\"><a title=\"Click
561
+ for a list of stations.\" href=\"javascript:fieldName='agrdeparts'; openStationList();\">Find
562
+ a Station</a></span></p> \t\t\t\t \r\n\t
563
+ \ \t</div>\r\n\t \r\n\t \t<div id=\"tickets_arr_city\"
564
+ class=\"ff_city_wrapper level3\">\r\n\t \t\t<label for=\"agrarrives\">To</label>\r\n\t
565
+ \ \t\t<input type=\"hidden\" name=\"xwdf_destination\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/arriveLocation/search\"
433
566
  /><input class=\"text\" type=\"text\" id=\"agrarrives\" name=\"wdf_destination\"
434
- value=\"Boston - Back Bay, MA (BBY)\" />\r\n<p><span class=\"find_a_station\"><a
567
+ value=\"Boston - Back Bay, MA (BBY)\" />\r\n\t \t\t<p><span class=\"find_a_station\"><a
435
568
  title=\"Click for a list of stations.\" href=\"javascript:fieldName='agrarrives';
436
- openStationList();\">Find a Station</a></span></p>\r\n</div>\r\n<div id=\"redeem_from_auto\"
437
- class=\"autocomplete level5\" style=\"display:none\"></div>\r\n<div id=\"redeem_to_auto\"
438
- class=\"autocomplete level5\" style=\"display:none\"></div>\r\n\r\n</div>\r\n<div
439
- id=\"ff_redeem_dep_date_subdiv\" class=\"subdiv\">\r\n<div id=\"redeem_dep_date_time\">\r\n<div
440
- class=\"ff_date_wrapper\">\r\n<label for=\"wdfdate15\">Departs</label>\r\n\r\n\r\n<input
441
- class=\"wdfDate\" type=\"text\" size=\"22\" id=\"wdfdate15\" maxlength=\"22\"
442
- name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.date\"
443
- value=\"Sun, Dec 7, 2014\" readonly=\"readonly\" /></div><div class=\"ff_time_wrapper\"><label
444
- for=\"wdftimenull\"><b>Time</b></label><select onfocus=\"updateTimeState()\"
445
- onchange=\"timeChanged(15);updateDayDropDownListTrainStatusWithOffsets()\"
569
+ openStationList();\">Find a Station</a></span></p>\t\t\r\n\t \t</div>\t\r\n\t
570
+ \ \t \t<div id=\"redeem_from_auto\" class=\"autocomplete level5\" style=\"display:none\"></div>\r\n
571
+ \ \t<div id=\"redeem_to_auto\" class=\"autocomplete level5\"
572
+ style=\"display:none\"></div>\t\t\r\n\t \t\r\n\t </div>\r\n \r\n
573
+ \ <div id=\"ff_redeem_dep_date_subdiv\" class=\"subdiv\">\r\n \t<div
574
+ id=\"redeem_dep_date_time\">\r\n \t<div class=\"ff_date_wrapper\">
575
+ \ \r\n \t<label for=\"wdfdate15\">Departs</label>\r\n
576
+ \ <input class=\"wdfDate\" type=\"text\" size=\"22\" id=\"wdfdate15\"
577
+ maxlength=\"22\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.usdate\"
578
+ value=\"12/31/2015\" /><a class=\"calLink noloading\" id=\"calLink15\">&nbsp;</a><br
579
+ /><div id=\"calContainer15\" class=\"calContainer\" bookingpath=\"redeemff\"
580
+ calwrapper=\"farefinder\" caloffsetx=\"50\" calpickerxpos=\"50\" maxdate=\"+335d\"></div></div><div
581
+ class=\"ff_time_wrapper\"><label for=\"wdftimenull\"><b>Time</b></label><select
446
582
  id=\"wdftime15\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departTime.hourmin\"><option
447
- value=\"\">Anytime</option><option value=\"07:00\">Morning</option><option
448
- value=\"14:00\">Afternoon</option><option value=\"19:00\">Evening</option><option
449
- value=\"23:59\">Midnight</option><option value=\"01:00\">1 AM</option><option
450
- value=\"02:00\">2 AM</option><option value=\"03:00\">3 AM</option><option
451
- value=\"04:00\">4 AM</option><option value=\"05:00\">5 AM</option><option
452
- value=\"06:00\">6 AM</option><option value=\"07:00\">7 AM</option><option
453
- value=\"08:00\">8 AM</option><option value=\"09:00\">9 AM</option><option
454
- value=\"10:00\">10 AM</option><option value=\"11:00\">11 AM</option><option
455
- value=\"12:00\">Noon</option><option value=\"13:00\">1 PM</option><option
456
- value=\"14:00\">2 PM</option><option value=\"15:00\">3 PM</option><option
457
- value=\"16:00\">4 PM</option><option value=\"17:00\">5 PM</option><option
458
- value=\"18:00\">6 PM</option><option value=\"19:00\">7 PM</option><option
459
- value=\"20:00\">8 PM</option><option value=\"21:00\">9 PM</option><option
460
- value=\"22:00\">10 PM</option><option value=\"23:00\">11 PM</option></select>\r\n\r\n</div>\r\n</div>\r\n</div>\r\n<div
461
- id=\"ff_redeem_passengers_subdiv\" class=\"subdiv\">\r\n<div id=\"redeem_passengers\">\r\n<div
462
- id=\"ff_submit_button\">\r\n<input type=\"image\" alt=\"Click to Find Tickets\"
463
- name=\"_handler=amtrak.presentation.handler.request.rail.redeem.PresAmtrakRailRedeemSearchRequestHandler\"
583
+ value=\"\">Anytime</option><option value=\"01:00\">Morning</option><option
584
+ value=\"13:00\">Afternoon</option><option value=\"19:00\">Evening</option></select>\r\n
585
+ \ </div> \r\n\t </div>\r\n
586
+ \ </div>\r\n \r\n <div id=\"ff_redeem_passengers_subdiv\"
587
+ class=\"subdiv\">\r\n \t<div id=\"redeem_passengers\">\r\n \t<div
588
+ id=\"ff_submit_button\"> \r\n <input
589
+ type=\"image\" alt=\"Click to Find Tickets\" name=\"_handler=amtrak.presentation.handler.request.rail.redeem.PresAmtrakRailRedeemSearchRequestHandler\"
464
590
  onclick=\"javascript:return preRedeemSubmitActions('The following information
465
- is needed to process your request:')\" src=\"/images/en/btn_ff_findTrains.gif\"
466
- border=\"0\" />\r\n</div>\r\n<div id=\"passenger_wrapper\">\r\n<label for=\"redeemadults\">Passengers</label><br>
467
- (Max. of 8)\r\n</div>\r\n<div id=\"ff_redeem_passenger_select_wrapper\">\r\n<select
468
- id=\"redeemadults\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/numberOfTravellers[@key='Adult']\"><option
591
+ is needed to process your request:') \" src=\"/images/en/btn_ff_findTrains.gif\"
592
+ border=\"0\" /> \r\n </div>\r\n
593
+ \ \t<div id=\"passenger_wrapper\">\r\n \t<label
594
+ for=\"redeemadults\">Passengers</label><br> (Max. of 8)\t \t
595
+ \ \r\n </div>\t \r\n <div
596
+ id=\"ff_redeem_passenger_select_wrapper\">\r\n \t<select id=\"redeemadults\"
597
+ name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/allJourneyRequirements/numberOfTravellers[@key='Adult']\"><option
469
598
  value=\"1\" selected=\"selected\">1</option><option value=\"2\">2</option><option
470
599
  value=\"3\">3</option><option value=\"4\">4</option><option value=\"5\">5</option><option
471
- value=\"6\">6</option><option value=\"7\">7</option><option value=\"8\">8</option></select>\r\n</div>\r\n</div>\r\n<br/>\r\n<p><a
472
- href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&help=agrFindTicket','help','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
600
+ value=\"6\">6</option><option value=\"7\">7</option><option value=\"8\">8</option></select>\r\n
601
+ \ </div>\r\n \r\n </div> \r\n <br/>\r\n
602
+ \ <p><a href=\"javascript:var child=window.open('http://www.amtrak.com/servlet/Satellite?SnippetName=IBLegacy&pagename=am/AM_Snippet_C/SnippetWrapper&help=agrFindTicket','help','directories=0,dependent=1,menubar=0,top=20,left=20,width=680,height=600,scrollbars=1');child.focus();\"
473
603
  \ CLASS=\"smallblue\">Learn more</a> about redeeming points online for Amtrak
474
- travel.</p>\r\n</div>\r\n<br class=\"clear_both\" />\r\n</form>\r\n</div>\r\n<script
475
- language=\"JavaScript\" type=\"text/javascript\">\r\n<!--\r\nif( $('ff_sub_tabbar_bookatrip').hasClassName(\"active\")
476
- ){\r\nshow_ff_sub_tab('bookatrip');\r\n} else if( $('ff_sub_tabbar_redeem').hasClassName(\"active\")
477
- ){\r\nshow_ff_sub_tab('redeem');\r\n}\r\n//-->\r\n</script>\r\n\r\n\r\n\r\n<div
478
- id=\"farefinder_tabbody_traveloptions\" class=\"farefinder_tabbody\">\r\n<div
479
- class=\"cmstraveloptions\" id=\"cmstraveloptions\">\r\n<p><a class=\"button\"
480
- href=\"/rail-deals-every-week-25-off-amtrak-fares-across-the-us\"> \r\n\r\n<img
481
- src='http://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fgif&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288596252&ssbinary=true'
482
- alt='Start Saving with SmartFares - New Deals Every Week'></img>\r\n\r\n</a><br
483
- />\r\n<a class=\"button\" href=\"http://tickets.amtrak.com/itd/amtrak/autotrain\">
484
- \r\n\r\n<img src='http://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fgif&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288596551&ssbinary=true'
485
- alt='Make a Reservation on the Auto Train'></img>\r\n\r\n</a><br />\r\n<a
486
- class=\"button\" href=\"http://tickets.amtrak.com/itd/amtrak/multiride\">
487
- \r\n\r\n<img src='http://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fgif&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288591884&ssbinary=true'
488
- alt='Buy Multi-Ride Tickets'></img>\r\n\r\n</a><br />\r\n<a class=\"button\"
489
- href=\"http://tickets.amtrak.com/itd/amtrak/selectpass\"> \r\n\r\n<img src='http://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fgif&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288591915&ssbinary=true'
490
- alt='Buy a USA Rail Pass'></img>\r\n\r\n</a><br />\r\n<a class=\"button\"
491
- href=\"/hotels-cars-travel-insurance-and-more\"> \r\n\r\n<img src='http://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fgif&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288591946&ssbinary=true'
492
- alt='Complete Your Trip with Hotels, Cars, Travel Insurance and More'></img>\r\n\r\n</a><br
493
- />\r\n<a class=\"button\" href=\"http://tickets.amtrak.com/itd/amtrak/grouptravel\">
494
- \r\n\r\n<img src='http://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fgif&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288591983&ssbinary=true'
495
- alt='Make a Group Travel Request'></img>\r\n\r\n</a></p>\r\n</div>\r\n</div>\r\n\r\n<div
496
- id=\"farefinder_tabbody_status\" class=\"farefinder_tabbody\">\r\n\r\n\r\n<div
497
- id=\"status_by_train_number\">\r\n<form onsubmit=\"javascript:return CheckMandatoryTrainStatusFieldsForStatusByTrainNumber();\"
498
- name=\"ff_status_form1\" action=\"http://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input
499
- type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
500
- />\r\n<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@trainStatusType\"
501
- value=\"statusByTrainNumber\" />\r\n<h2>Status</h2>\r\n<div id=\"ff_status_step_1\"
502
- class=\"subdiv1\">\r\n<div id=\"status_arr_or_dep_wrapper\">\r\n\r\n\r\n<p>\r\n<input
503
- type=\"hidden\" name=\"xwdf_SortBy\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect\"
604
+ travel.</p> \r\n </div>\r\n \t<br class=\"clear_both\"
605
+ /> \r\n\t</form>\r\n </div> \r\n\t\t <script language=\"JavaScript\"
606
+ type=\"text/javascript\"> \r\n\t\t <!--\r\n\t\t\t if( $('ff_sub_tabbar_bookatrip').hasClassName(\"active\")
607
+ ){\r\n\t\t\t\tshow_ff_sub_tab('bookatrip');\r\n\t \t\t } else if( $('ff_sub_tabbar_redeem').hasClassName(\"active\")
608
+ ){\r\n\t\t \t\tshow_ff_sub_tab('redeem');\r\n\t \t\t }\r\n\t\t //-->\r\n\t\t
609
+ </script>\r\n\t\t \n \n \n <div id=\"farefinder_tabbody_traveloptions\"
610
+ class=\"farefinder_tabbody\">\n <div class=\"cmstraveloptions\"
611
+ id=\"cmstraveloptions\">\n <p><a class=\"button\" href=\"/rail-deals-every-week-25-off-amtrak-fares-across-the-us\"><img
612
+ src='https://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fpng&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288596252&ssbinary=true&eHA_media_type=.png'/></a><br
613
+ />\r\n<a class=\"button\" href=\"http://tickets.amtrak.com/itd/amtrak/autotrain\"><img
614
+ src='https://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fpng&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288596551&ssbinary=true&eHA_media_type=.png'/></a><br
615
+ />\r\n<a class=\"button\" href=\"http://tickets.amtrak.com/itd/amtrak/multiride\"><img
616
+ src='https://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fpng&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288591884&ssbinary=true&eHA_media_type=.png'/></a><br
617
+ />\r\n<a class=\"button\" href=\"http://tickets.amtrak.com/itd/amtrak/selectpass\"><img
618
+ src='https://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fpng&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288591915&ssbinary=true&eHA_media_type=.png'/></a><br
619
+ />\r\n<a class=\"button\" href=\"/hotels-cars-travel-insurance-and-more\"><img
620
+ src='https://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fpng&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288591946&ssbinary=true&eHA_media_type=.png'/></a><br
621
+ />\r\n<a class=\"button\" href=\"http://tickets.amtrak.com/itd/amtrak/grouptravel\"><img
622
+ src='https://www.amtrak.com/servlet/Satellite?blobcol=urldata&blobheader=image%2Fpng&blobkey=id&blobtable=MungoBlobs&blobwhere=1249288591983&ssbinary=true&eHA_media_type=.png'/></a></p>\n\n
623
+ \ </div>\n </div>\n \n \n <div id=\"farefinder_tabbody_status\"
624
+ class=\"farefinder_tabbody\">\n \n \n <div id=\"status_by_train_number\">\n
625
+ \ <form onsubmit=\"javascript:return CheckMandatoryTrainStatusFieldsForStatusByTrainNumber();\"
626
+ name=\"ff_status_form1\" action=\"https://tickets.amtrak.com/itd/amtrak\"
627
+ method=\"post\"><input type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
628
+ /> \n <input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@trainStatusType\"
629
+ value=\"statusByTrainNumber\" />\n <h2>Status</h2>\n\n <div
630
+ id=\"ff_status_step_1\" class=\"subdiv1\"> \n <div id=\"status_arr_or_dep_wrapper\">
631
+ \n \n \n <p>\n
632
+ \ <input type=\"hidden\" name=\"xwdf_SortBy\"
633
+ value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect\"
504
634
  /><input type=\"radio\" id=\"status_arr\" name=\"wdf_SortBy\" value=\"arrivalTime\"
505
635
  onclick=\"javascript:return setDepartOrArrivalFieldVisibility();\" checked=\"checked\"
506
- />\r\n<label for=\"status_arr\">\r\nArrival Status\r\n</label>\r\n</p>\r\n<p>\r\n<input
507
- type=\"hidden\" name=\"xwdf_SortBy\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect\"
636
+ />\n <label for=\"status_arr\">\n Arrival
637
+ Status\n </label> \n
638
+ \ </p>\n <p>\n
639
+ \ <input type=\"hidden\" name=\"xwdf_SortBy\"
640
+ value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect\"
508
641
  /><input type=\"radio\" id=\"status_dep\" name=\"wdf_SortBy\" value=\"departTime\"
509
- onclick=\"javascript:return setDepartOrArrivalFieldVisibility();\" />\r\n<label
510
- for=\"status_dep\">\r\nDeparture Status\r\n</label>\r\n</p>\r\n\r\n\r\n\r\n\r\n</div>\r\n<div
511
- id=\"status_dep_city\" class=\"ff_status_city_wrapper\">\r\n<label for=\"status_from\">\r\nStation\r\n</label>\r\n<!--
512
- itd:locationinput id=\"status_dep\" wdfxpath=\"travelSelection/journeySelection[1]/departLocation\"
642
+ onclick=\"javascript:return setDepartOrArrivalFieldVisibility();\" />\n <label
643
+ for=\"status_dep\">\n Departure Status\n
644
+ \ </label>\n </p>\n
645
+ \ \n \n \n
646
+ \ \n </div>\n \n
647
+ \ <div id=\"status_dep_city\" class=\"ff_status_city_wrapper\">
648
+ \ \n <label for=\"status_from\">\n
649
+ \ Station\n </label> \n \n
650
+ \ <!-- itd:locationinput id=\"status_dep\" wdfxpath=\"travelSelection/journeySelection[1]/departLocation\"
513
651
  wdfhtmlname=\"wdf_origin\" wdflimitedlocations=\"resource:TRAVEL_USE_LIMITED_LOCATIONS\"
514
- size=\"25\" / -->\r\n<div id=\"div_depart_station\">\r\n<input type=\"hidden\"
515
- name=\"xwdf_origin\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
652
+ size=\"25\" / -->\n <div id=\"div_depart_station\">\n\t
653
+ \ <input type=\"hidden\" name=\"xwdf_origin\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
516
654
  /><input type=\"text\" autocomplete=\"off\" id=\"status_from\" maxlength=\"150\"
517
- name=\"wdf_origin\" value=\"askdf\" />\r\n<p><span class=\"find_a_station\">\r\n<a
518
- title=\"Click for a list of stations.\" href=\"javascript:fieldName='status_from';
519
- openStationList();\">Find a Station</a>\r\n</span></p>\r\n</div>\r\n<div id=\"div_arrive_station\">\r\n<input
655
+ name=\"wdf_origin\" value=\"askdf\" />\n\t <p><span
656
+ class=\"find_a_station\">\n\t <a title=\"Click for
657
+ a list of stations.\" href=\"javascript:fieldName='status_from'; openStationList();\">Find
658
+ a Station</a>\n\t </span></p>\n </div>\n
659
+ \ <div id=\"div_arrive_station\">\n <input
520
660
  type=\"hidden\" name=\"xwdf_destination\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/arriveLocation/search\"
521
661
  /><input type=\"text\" autocomplete=\"off\" id=\"status_to\" maxlength=\"150\"
522
- name=\"wdf_destination\" value=\"Boston - Back Bay, MA (BBY)\" />\r\n<p><span
523
- class=\"find_a_station\">\r\n<a title=\"Click for a list of stations.\" href=\"javascript:fieldName='status_to';
524
- openStationList();\">Find a Station</a>\r\n</span></p>\r\n</div>\r\n</div>\r\n<div
525
- id=\"status_from_auto\" class=\"autocomplete\" style=\"display:none\"></div>\r\n<div
526
- id=\"status_to_auto\" class=\"autocomplete\" style=\"display:none\"></div>\r\n<div
527
- class=\"form_line_wrapper1\">\r\n<label for=\"status_train_num\">\r\nTrain/Bus
528
- No.\r\n</label>\r\n<span class=\"form_entry\">\r\n<input type=\"hidden\" name=\"xwdf_trainNumber\"
529
- value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/segmentRequirements[1]/serviceCode\"
662
+ name=\"wdf_destination\" value=\"Boston - Back Bay, MA (BBY)\" />\n <p><span
663
+ class=\"find_a_station\">\n <a title=\"Click
664
+ for a list of stations.\" href=\"javascript:fieldName='status_to'; openStationList();\">Find
665
+ a Station</a>\n </span></p>\n </div>\n
666
+ \ </div>\n <div id=\"status_from_auto\"
667
+ class=\"autocomplete\" style=\"display:none\"></div>\n <div
668
+ id=\"status_to_auto\" class=\"autocomplete\" style=\"display:none\"></div>\n
669
+ \ \n \n <div class=\"form_line_wrapper1\">
670
+ \ \n <label for=\"status_train_num\">\n
671
+ \ Train/Bus No.\n </label>\n
672
+ \ <span class=\"form_entry\">\n <input
673
+ type=\"hidden\" name=\"xwdf_trainNumber\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/segmentRequirements[1]/serviceCode\"
530
674
  /><input onfocus=\"if (this.value=='optional') { this.value=''; updateMaxLength();
531
675
  };\" type=\"text\" size=\"4\" id=\"status_train_num\" maxlength=\"8\" name=\"wdf_trainNumber\"
532
- />\r\n</span>\r\n</div>\r\n<div class=\"form_line_wrapper\">\r\n<div id=\"div_depart_date_label\">\r\n<label
533
- for=\"status_date\">\r\nDepart Date\r\n</label>\r\n</div>\r\n<div id=\"div_arrival_date_label\">\r\n<label
534
- for=\"status_date\">\r\nArrival Date\r\n</label>\r\n</div>\r\n<span class=\"form_entry\">\r\n\r\n\r\n<input
676
+ />\n </span>\n </div>\n \n
677
+ \ <div class=\"form_line_wrapper\">\n <div
678
+ id=\"div_depart_date_label\">\n <label for=\"status_date\">\n
679
+ \ Depart Date\n </label>\n
680
+ \ </div>\n <div id=\"div_arrival_date_label\">\n
681
+ \ <label for=\"status_date\">\n Arrival
682
+ Date\n </label>\n </div>\n \n
683
+ \ <span class=\"form_entry\">\n <input
535
684
  class=\"wdfDate\" type=\"text\" size=\"22\" id=\"wdfdate10\" maxlength=\"22\"
536
- name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.date\"
537
- value=\"Sun, Dec 7, 2014\" readonly=\"readonly\" />\r\n\r\n</span>\r\n</div>\r\n<br
538
- class=\"clear_both\" />\r\n</div>\r\n<div id=\"ff_status_submit_wrapper\"
539
- class=\"subdiv\">\r\n<input type=\"hidden\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
540
- />\r\n<input type=\"image\" alt=\"Check Status\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
541
- src=\"/images/en/btn_checkStatus.gif\" border=\"0\" />\r\n</div>\r\n<div class=\"form_line_wrapper
542
- subdiv2\">\r\nLate trains often make up time en route and may arrive earlier
543
- than expected. When trains are late, we suggest you arrive at your departure
544
- station prior to the estimated arrival or departure time.\r\n</div>\r\n<div
545
- class=\"form_line_wrapper subdiv\">\r\n<h3 style=\"margin-bottom:2px;\">Don't
546
- know your train number?</h3>\r\n<a href=\"javascript:switchToStatusByCity();\">Check
547
- status by city</a>\r\n</div>\r\n</form>\r\n</div>\r\n\r\n\r\n<div id=\"status_by_city_pair\">\r\n<form
548
- onsubmit=\"javascript:return CheckMandatoryTrainStatusFieldsForStatusByCityPair();\"
549
- name=\"ff_status_form2\" action=\"http://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input
550
- type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
551
- />\r\n<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@trainStatusType\"
552
- value=\"statusByCityPair\" />\r\n<input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect\"
553
- value=\"arrivalTime\" />\r\n<div id=\"ff_status_step_1\" class=\"subdiv\">\r\n<div
554
- id=\"status_dep_city\" class=\"ff_status_city_wrapper citypair_from\">\r\n<label
555
- for=\"status_from\">\r\nFrom\r\n</label>\r\n<!-- itd:locationinput id=\"status_dep\"
556
- wdfxpath=\"travelSelection/journeySelection[1]/departLocation\" wdfhtmlname=\"wdf_origin\"
557
- wdflimitedlocations=\"resource:TRAVEL_USE_LIMITED_LOCATIONS\" size=\"25\"
558
- / -->\r\n<input type=\"hidden\" name=\"xwdf_origin\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
685
+ name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.usdate\"
686
+ value=\"12/31/2015\" /><a class=\"calLink noloading\" id=\"calLink10\">&nbsp;</a><br
687
+ /><div id=\"calContainer10\" class=\"calContainer\" bookingpath=\"checkStatus\"
688
+ calwrapper=\"status_by_train_number\" caloffsetx=\"53\" calpickerxpos=\"50\"
689
+ mindate=\"-5d\" maxdate=\"+5d\"></div> \n
690
+ \ </span>\n </div> \n
691
+ \ <br class=\"clear_both\" /> \n </div>\n
692
+ \ <div id=\"ff_status_submit_wrapper\" class=\"subdiv\">\n <input
693
+ type=\"hidden\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
694
+ />\n <input type=\"image\" alt=\"Check Status\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
695
+ onclick=\" javascript:return (ValidateStatusDate('wdfdate10') )\" src=\"/images/en/btn_checkStatus.gif\"
696
+ border=\"0\" />\n </div>\n \n <div
697
+ class=\"form_line_wrapper subdiv2\">\n Late trains often
698
+ make up time en route and may arrive earlier than expected. When trains are
699
+ late, we suggest you arrive at your departure station prior to the estimated
700
+ arrival or departure time.\n </div>\n <div class=\"form_line_wrapper
701
+ subdiv\">\n <h3 style=\"margin-bottom:2px;\">Don't know
702
+ your train number?</h3>\n <a href=\"javascript:switchToStatusByCity();\">Check
703
+ status by city</a>\n </div>\n </form> \n </div>
704
+ \ \n \n \n \n
705
+ \ <div id=\"status_by_city_pair\">\n <form onsubmit=\"javascript:return
706
+ CheckMandatoryTrainStatusFieldsForStatusByCityPair();\" name=\"ff_status_form2\"
707
+ action=\"https://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input type=\"hidden\"
708
+ name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
709
+ />\n <input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@trainStatusType\"
710
+ value=\"statusByCityPair\" />\n <input type=\"hidden\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect\"
711
+ value=\"arrivalTime\" />\n \n <div id=\"ff_status_step_1\"
712
+ class=\"subdiv\">\n <div id=\"status_dep_city\" class=\"ff_status_city_wrapper
713
+ citypair_from\">\n <label for=\"status_from\">\n From\n
714
+ \ </label> \n \n <!--
715
+ itd:locationinput id=\"status_dep\" wdfxpath=\"travelSelection/journeySelection[1]/departLocation\"
716
+ wdfhtmlname=\"wdf_origin\" wdflimitedlocations=\"resource:TRAVEL_USE_LIMITED_LOCATIONS\"
717
+ size=\"25\" / -->\n <input type=\"hidden\" name=\"xwdf_origin\"
718
+ value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
559
719
  /><input type=\"text\" autocomplete=\"off\" id=\"status_from1\" maxlength=\"150\"
560
- name=\"wdf_origin\" value=\"askdf\" />\r\n<p><span class=\"find_a_station\">\r\n<a
561
- title=\"Click for a list of stations.\" href=\"javascript:fieldName='status_from1';
562
- openStationList();\">Find a Station</a>\r\n</span></p>\r\n</div>\r\n<div id=\"status_arr_city\"
563
- class=\"ff_status_city_wrapper\">\r\n<label for=\"status_to\">\r\nTo\r\n</label>\r\n<!--
720
+ name=\"wdf_origin\" value=\"askdf\" />\n <p><span class=\"find_a_station\">\n
721
+ \ <a title=\"Click for a list of stations.\" href=\"javascript:fieldName='status_from1';
722
+ openStationList();\">Find a Station</a>\n </span></p>\n
723
+ \ </div>\n\n <div id=\"status_arr_city\"
724
+ class=\"ff_status_city_wrapper\">\n <label for=\"status_to\">\n
725
+ \ To\n </label> \n <!--
564
726
  itd:locationinput id=\"status_to\" wdfxpath=\"travelSelection/journeySelection[1]/arriveLocation\"
565
727
  wdfhtmlname=\"wdf_destination\" wdflimitedlocations=\"resource:TRAVEL_USE_LIMITED_LOCATIONS\"
566
- size=\"25\" / -->\r\n<input type=\"hidden\" name=\"xwdf_destination\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/arriveLocation/search\"
728
+ size=\"25\" / -->\n <input type=\"hidden\" name=\"xwdf_destination\"
729
+ value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/arriveLocation/search\"
567
730
  /><input type=\"text\" autocomplete=\"off\" id=\"status_to1\" maxlength=\"150\"
568
- name=\"wdf_destination\" value=\"Boston - Back Bay, MA (BBY)\" />\r\n<p><span
569
- class=\"find_a_station\">\r\n<a title=\"Click for a list of stations.\" href=\"javascript:fieldName='status_to1';
570
- openStationList();\">Find a Station</a>\r\n</span></p>\r\n</div>\r\n<div id=\"status_from_auto1\"
571
- class=\"autocomplete\" style=\"display:none\"></div>\r\n<div id=\"status_to_auto1\"
572
- class=\"autocomplete\" style=\"display:none\"></div>\r\n<div class=\"form_line_wrapper\">\r\n<div
573
- id=\"div_depart_date_label\">\r\n<label for=\"status_date\">\r\nArrival Date\r\n</label>\r\n</div>\r\n<span
574
- class=\"form_entry\">\r\n\r\n\r\n<input class=\"wdfDate\" type=\"text\" size=\"22\"
575
- id=\"wdfdate11\" maxlength=\"22\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.date\"
576
- value=\"Sun, Dec 7, 2014\" readonly=\"readonly\" />\r\n\r\n</span>\r\n</div>\r\n<br
577
- class=\"clear_both\" />\r\n</div>\r\n<div id=\"ff_status_submit_wrapper\"
578
- class=\"subdiv\">\r\n<input type=\"hidden\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
579
- />\r\n<input type=\"image\" alt=\"Check Status\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
580
- src=\"/images/en/btn_checkStatus.gif\" border=\"0\" />\r\n</div>\r\n<div class=\"form_line_wrapper
581
- subdiv2\">\r\nLate trains often make up time en route and may arrive earlier
582
- than expected. When trains are late, we suggest you arrive at your departure
583
- station prior to the estimated arrival or departure time.\r\n</div>\r\n<div
584
- class=\"form_line_wrapper subdiv\">\r\n<h3 style=\"margin-bottom:45px;\"><a
585
- href=\"javascript:switchToStatusByTrain();\">Check status by train number</a></h3>\r\n</div>\r\n</form>\r\n</div>\r\n\r\n\r\n</div>\r\n<div
586
- id=\"farefinder_tabbody_schedules\" class=\"farefinder_tabbody\">\r\n\r\n<form
587
- onsubmit=\"javascript:return CheckMandatoryScheduleFields(this);\" name=\"ff_schedules_form\"
588
- action=\"http://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input type=\"hidden\"
589
- name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
590
- />\r\n<h2>Schedules</h2>\r\n<div id=\"ff_schedules_tt_cities_subdiv\" class=\"subdiv\">\r\n<div
591
- id=\"schedules_dep_city\" class=\"ff_city_wrapper\">\r\n<label for=\"schedules_from\">From</label>\r\n<input
592
- type=\"hidden\" name=\"xwdf_origin\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/departLocation/search\"
593
- /><input type=\"text\" autocomplete=\"off\" id=\"schedules_from\" maxlength=\"150\"
594
- name=\"wdf_origin\" value=\"askdf\" />\r\n<p><span class=\"find_a_station\"><a
595
- title=\"Click for a list of stations.\" href=\"javascript:fieldName='schedules_from';
596
- openStationList();\">Find a Station</a></span></p>\r\n<!-- itd:locationinput
597
- id=\"schedules_from\" wdfxpath=\"travelSelection/journeySelection[1]/departLocation\"
598
- wdfhtmlname=\"wdf_origin\" wdflimitedlocations=\"resource:TRAVEL_USE_LIMITED_LOCATIONS\"
599
- size=\"40\" / -->\r\n\r\n</div>\r\n<div id=\"schedules_arr_city\" class=\"ff_city_wrapper\">\r\n<label
600
- for=\"schedules_to\">To</label>\r\n<!-- itd:locationinput id=\"schedules_to\"
601
- wdfxpath=\"travelSelection/journeySelection[1]/arriveLocation\" wdfhtmlname=\"wdf_destination\"
602
- wdflimitedlocations=\"resource:TRAVEL_USE_LIMITED_LOCATIONS\" size=\"40\"
603
- / -->\r\n<input type=\"hidden\" name=\"xwdf_destination\" value=\"/sessionWorkflow/productWorkflow[@product='Rail']/travelSelection/journeySelection[1]/arriveLocation/search\"
604
- /><input type=\"text\" autocomplete=\"off\" id=\"schedules_to\" maxlength=\"150\"
605
- name=\"wdf_destination\" value=\"Boston - Back Bay, MA (BBY)\" />\r\n<p><span
606
- class=\"find_a_station\"><a title=\"Click for a list of stations.\" href=\"javascript:fieldName='schedules_to';
607
- openStationList();\">Find a Station</a></span></p>\r\n\r\n</div>\r\n</div>\r\n<div
608
- id=\"ff_schedules_dep_ret_date_subdiv\" class=\"subdiv\">\r\n<div id=\"schedule_from_auto\"
609
- class=\"autocomplete\" style=\"display:none\"></div>\r\n<div id=\"schedule_to_auto\"
610
- class=\"autocomplete\" style=\"display:none\"></div>\r\n<div id=\"schedules_dep_date_time\">\r\n<div
611
- class=\"ff_date_wrapper\">\r\n<label for=\"schedules_dep_date\">Depart</label>\r\n\r\n\r\n<input
612
- class=\"wdfDate\" type=\"text\" size=\"22\" id=\"wdfdate5\" maxlength=\"22\"
613
- name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.date\"
614
- value=\"Sun, Dec 7, 2014\" readonly=\"readonly\" /></div><div class=\"ff_time_wrapper\"><label
615
- for=\"wdftimenull\"><b>Time</b></label><select onfocus=\"updateTimeState()\"
616
- onchange=\"timeChanged(5);updateDayDropDownListTrainStatusWithOffsets()\"
617
- id=\"wdftime5\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departTime.hourmin\"><option
618
- value=\"\">Anytime</option><option value=\"07:00\">Morning</option><option
619
- value=\"14:00\">Afternoon</option><option value=\"19:00\">Evening</option><option
620
- value=\"23:59\">Midnight</option><option value=\"01:00\">1 AM</option><option
621
- value=\"02:00\">2 AM</option><option value=\"03:00\">3 AM</option><option
622
- value=\"04:00\">4 AM</option><option value=\"05:00\">5 AM</option><option
623
- value=\"06:00\">6 AM</option><option value=\"07:00\">7 AM</option><option
624
- value=\"08:00\">8 AM</option><option value=\"09:00\">9 AM</option><option
625
- value=\"10:00\">10 AM</option><option value=\"11:00\">11 AM</option><option
626
- value=\"12:00\">Noon</option><option value=\"13:00\">1 PM</option><option
627
- value=\"14:00\">2 PM</option><option value=\"15:00\">3 PM</option><option
628
- value=\"16:00\">4 PM</option><option value=\"17:00\">5 PM</option><option
629
- value=\"18:00\">6 PM</option><option value=\"19:00\">7 PM</option><option
630
- value=\"20:00\">8 PM</option><option value=\"21:00\">9 PM</option><option
631
- value=\"22:00\">10 PM</option><option value=\"23:00\">11 PM</option></select>\r\n\r\n</div>\r\n</div>\r\n</div>\r\n<div
632
- id=\"ff_schedules_timetables_submit_wrapper\" class=\"subdiv\">\r\n<input
633
- type=\"hidden\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakCMSRailSchedulesSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
634
- />\r\n<input type=\"image\" alt=\"Find Schedules\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakCMSRailSchedulesSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
635
- src=\"/images/en/btn_findSchedules.gif\" border=\"0\" />\r\n</div>\r\n<div
636
- id=\"ff_schedules_timetables_footer_wrapper\">\r\n<p><a href=\"http://www.amtrak.com/servlet/Satellite/Page/1237405732505/1237405732505\">Download
637
- printable timetables</a></p>\r\n</div>\r\n</form>\r\n\r\n</div>\r\n<div id=\"farefinder_tabbody_mytrip\"
638
- class=\"farefinder_tabbody\">\r\n<h2>My Trip</h2>\r\n<div id=\"ff_mytrip_step_1\"
639
- class=\"subdiv\">\r\n<form onsubmit=\"javascript:return CheckMandatoryMyTripFields(this)\"
640
- name=\"mytrip_res\" action=\"http://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input
641
- type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
642
- />\r\n<h3>Find a Reservation</h3>\r\n<div class=\"form_line_wrapper first\">\r\n<label
643
- for=\"mytrip_res_num\">Reservation Number</label><span class=\"form_entry\">\r\n<input
731
+ name=\"wdf_destination\" value=\"Boston - Back Bay, MA (BBY)\" /> \n
732
+ \ <p><span class=\"find_a_station\">\n <a
733
+ title=\"Click for a list of stations.\" href=\"javascript:fieldName='status_to1';
734
+ openStationList();\">Find a Station</a>\n </span></p>\n
735
+ \ </div>\n \n <div id=\"status_from_auto1\"
736
+ class=\"autocomplete\" style=\"display:none\"></div>\n <div
737
+ id=\"status_to_auto1\" class=\"autocomplete\" style=\"display:none\"></div>
738
+ \ \n \n <div class=\"form_line_wrapper\">
739
+ \ \n <div id=\"div_depart_date_label\">\n
740
+ \ <label for=\"status_date\">\n Arrival
741
+ Date\n </label>\n </div>\n <span
742
+ class=\"form_entry\">\n <input class=\"wdfDate\" type=\"text\"
743
+ size=\"22\" id=\"wdfdate11\" maxlength=\"22\" name=\"/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.usdate\"
744
+ value=\"12/31/2015\" /><a class=\"calLink noloading\" id=\"calLink11\">&nbsp;</a><br
745
+ /><div id=\"calContainer11\" class=\"calContainer\" bookingpath=\"checkStatus\"
746
+ calwrapper=\"status_by_train_number\" caloffsetx=\"53\" calpickerxpos=\"50\"
747
+ mindate=\"-5d\" maxdate=\"+5d\"></div> \n
748
+ \ </span> \n </div> \n
749
+ \ <br class=\"clear_both\" /> \n </div>\n \n
750
+ \ <div id=\"ff_status_submit_wrapper\" class=\"subdiv\">\n <input
751
+ type=\"hidden\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
752
+ />\n <input type=\"image\" alt=\"Check Status\" name=\"_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']\"
753
+ onclick=\" javascript:return (ValidateStatusDate('wdfdate11') )\" src=\"/images/en/btn_checkStatus.gif\"
754
+ border=\"0\" />\n </div>\n \n\t <div
755
+ class=\"form_line_wrapper subdiv2\">\n\t Late trains often make
756
+ up time en route and may arrive earlier than expected. When trains are late,
757
+ we suggest you arrive at your departure station prior to the estimated arrival
758
+ or departure time.\n\t </div>\n\t <div class=\"form_line_wrapper
759
+ subdiv\">\n\t <h3 style=\"margin-bottom:45px;\"><a href=\"javascript:switchToStatusByTrain();\">Check
760
+ status by train number</a></h3>\t \n </div>\n
761
+ \ </form>\n </div>\n \n \n </div>\n
762
+ \ \n <div id=\"farefinder_tabbody_mytrip\" class=\"farefinder_tabbody\">\n
763
+ \ <h2>My Trip</h2>\n <div id=\"ff_mytrip_step_1\"
764
+ class=\"subdiv\">\n <form onsubmit=\"javascript:return
765
+ CheckMandatoryMyTripFields(this)\" name=\"mytrip_res\" action=\"https://tickets.amtrak.com/itd/amtrak\"
766
+ method=\"post\"><input type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
767
+ />\n <h3>Find a Reservation</h3>\n <div
768
+ class=\"form_line_wrapper first\">\n <label for=\"mytrip_res_num\">Reservation
769
+ Number</label><span class=\"form_entry\">\n <input
644
770
  type=\"text\" id=\"mytrip_res_num\" name=\"/sessionWorkflow/itineraryWorkflow/basket/booking/reference\"
645
- value=\"\" />\r\n</span>\r\n</div>\r\n<div class=\"form_line_wrapper\">\r\n<strong>and</strong>\r\n</div>\r\n<div
646
- class=\"form_line_wrapper\">\r\n<label for=\"mytrip_res_email\">E-mail Address</label><span
647
- class=\"form_entry\">\r\n<input type=\"text\" id=\"mytrip_res_email\" name=\"/sessionWorkflow/itineraryWorkflow/basket/booking/bookingOptions/bookingFulfilment/contact/contactEmailAddress/emailAddress\"
648
- value=\"\" />\r\n</span>\r\n</div>\r\n<div class=\"form_line_wrapper\">\r\n<div
649
- class=\"separator\">-or-</div>\r\n</div>\r\n<div class=\"form_line_wrapper\">\r\n<label
650
- for=\"mytrip_res_zip\">Telephone Number</label><span class=\"form_entry\">\r\n<input
771
+ value=\"\" />\n </span>\n </div>\n
772
+ \ <div class=\"form_line_wrapper\">\n <strong>and</strong>\n
773
+ \ </div>\n <div class=\"form_line_wrapper\">\n
774
+ \ <label for=\"mytrip_res_email\">E-mail Address</label><span
775
+ class=\"form_entry\">\n <input type=\"text\" autocomplete=\"off\"
776
+ id=\"mytrip_res_email\" name=\"/sessionWorkflow/itineraryWorkflow/basket/booking/bookingOptions/bookingFulfilment/contact/contactEmailAddress/emailAddress\"
777
+ value=\"\" />\n </span>\n </div>\n
778
+ \ <div class=\"form_line_wrapper\">\n <div
779
+ class=\"separator\">-or-</div>\n </div>\n <div
780
+ class=\"form_line_wrapper\">\n <label for=\"mytrip_res_zip\">Telephone
781
+ Number</label><span class=\"form_entry\">\n <input
651
782
  type=\"text\" id=\"mytrip_res_zip\" name=\"/sessionWorkflow/itineraryWorkflow/basket/booking/bookingOptions/bookingFulfilment/contact/contactTelephone/number\"
652
- value=\"\" />\r\n</span>\r\n</div>\r\n<div id=\"ff_mytrip_res_submit\">\r\n<input
783
+ value=\"\" />\n </span>\n </div>\n
784
+ \ <div id=\"ff_mytrip_res_submit\">\n <input
653
785
  type=\"hidden\" name=\"_handler=com.sita.ats.amtrak.presentation.handler.request.itinerary.AmtrakLoggedOutTripDetailsRequestHandler\"
654
- />\r\n<input class=\"image\" type=\"image\" alt=\"Find Reservation\" name=\"_handler=com.sita.ats.amtrak.presentation.handler.request.itinerary.AmtrakLoggedOutTripDetailsRequestHandler\"
655
- src=\"/images/en/btn_find.gif\" />\r\n</div>\r\n</form>\r\n</div>\r\n\r\n<div
656
- id=\"ff_mytrip_step_2\" class=\"subdiv\">\r\n<div id=\"mytrip_or\"><span>Or</span></div>\r\n\r\n<form
657
- onsubmit=\"javascript:return CheckMandatoryLoginFields(this)\" name=\"mytrip_acct\"
658
- action=\"https://tickets.amtrak.com/itd/amtrak\" method=\"post\"><input type=\"hidden\"
659
- name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
660
- />\r\n<input type=\"hidden\" name=\"/sessionWorkflow/userWorkflow/profileAccountRequirements/@logontype\"
661
- value=\"mytrip\" />\r\n<h3>Log in to your Amtrak.com Account</h3>\r\n<div
662
- class=\"form_line_wrapper\">\r\n<label for=\"mytrip_acct_email\">E-mail Address</label><span
663
- class=\"form_entry\">\r\n<input type=\"hidden\" name=\"xwdf_username\" value=\"/sessionWorkflow/userWorkflow/profileAccountRequirements/userName\"
786
+ />\n <input class=\"image\" type=\"image\" alt=\"Find
787
+ Reservation\" name=\"_handler=com.sita.ats.amtrak.presentation.handler.request.itinerary.AmtrakLoggedOutTripDetailsRequestHandler\"
788
+ src=\"/images/en/btn_find.gif\" />\n </div>\n </form>\n
789
+ \ </div>\n\n \n <div
790
+ id=\"ff_mytrip_step_2\" class=\"subdiv\">\n <div id=\"mytrip_or\"><span>Or</span></div>\n
791
+ \ \n <form onsubmit=\"javascript:return
792
+ CheckMandatoryLoginFields(this)\" name=\"mytrip_acct\" action=\"https://tickets.amtrak.com/itd/amtrak\"
793
+ method=\"post\"><input type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
794
+ />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"/sessionWorkflow/userWorkflow/profileAccountRequirements/@logontype\"
795
+ value=\"mytrip\" /> \n <h3>Log in to your Amtrak.com
796
+ Account</h3>\n <div class=\"form_line_wrapper\">\n
797
+ \ <label for=\"mytrip_acct_email\">E-mail Address</label><span
798
+ class=\"form_entry\">\n <input type=\"hidden\"
799
+ name=\"xwdf_username\" value=\"/sessionWorkflow/userWorkflow/profileAccountRequirements/userName\"
664
800
  /><input autocomplete=\"off\" type=\"text\" id=\"mytrip_acct_email\" maxlength=\"64\"
665
- name=\"wdf_username\" />\r\n</span>\r\n</div>\r\n<div class=\"form_line_wrapper\">\r\n<label
666
- for=\"mytrip_acct_pwd\">Password</label><span class=\"form_entry\">\r\n<input
801
+ name=\"wdf_username\" />\n </span>\n </div>\n
802
+ \ <div class=\"form_line_wrapper\">\n <label
803
+ for=\"mytrip_acct_pwd\">Password</label><span class=\"form_entry\">\n <input
667
804
  type=\"hidden\" name=\"xwdf_password\" value=\"/sessionWorkflow/userWorkflow/profileAccountRequirements/password\"
668
- /><input type=\"password\" id=\"mytrip_acct_pwd\" maxlength=\"20\" name=\"wdf_password\"
669
- />\r\n</span>\r\n</div>\r\n<div id=\"ff_mytrip_acct_submit\">\r\n<a class=\"forgot_pass\"
670
- title=\"Click here to request your Password\" href=\"javascript:fieldName='wdf_RequestUserID';
671
- openRequestUserID();\">Forgot password?</a>\r\n<input type=\"hidden\" name=\"_handler=com.sita.ats.amtrak.presentation.handler.request.profile.AmtrakProfileLogonRequestHandler/_xpath=/sessionWorkflow/userWorkflow/profileAccountRequirements\"
672
- />\r\n<input type=\"image\" alt=\"Log In\" name=\"_handler=com.sita.ats.amtrak.presentation.handler.request.profile.AmtrakProfileLogonRequestHandler/_xpath=/sessionWorkflow/userWorkflow/profileAccountRequirements\"
673
- onclick=\"\" src=\"/images/en/btn_login.gif\" />\r\n</div>\r\n</form>\r\n\r\n</div>\r\n\r\n</div>\r\n</div>\r\n\r\n\r\n<script
674
- type=\"text/javascript\" language=\"javascript\" charset=\"utf-8\">\r\n//
675
- <![CDATA[\r\nnew Ajax.Autocompleter('departs','autocomplete_availability_from',
676
- '/itd/amtrak/AutoComplete', {\r\nparamName: \"_origin\",\r\nminChars: 2,\r\nfrequency:
677
- 0.5\r\n}\r\n);\r\nnew Ajax.Autocompleter('arrives','autocomplete_availability_to','/itd/amtrak/AutoComplete',
678
- {\r\nparamName: \"_destination\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\nnew
679
- Ajax.Autocompleter('agrdeparts','redeem_from_auto', '/itd/amtrak/AutoComplete',
680
- {\r\nparamName: \"_origin\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\nnew
681
- Ajax.Autocompleter('agrarrives','redeem_to_auto','/itd/amtrak/AutoComplete',
682
- {\r\nparamName: \"_destination\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\nnew
683
- Ajax.Autocompleter('schedules_from','schedule_from_auto','/itd/amtrak/AutoComplete',
684
- {\r\nparamName: \"_origin\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\nnew
685
- Ajax.Autocompleter('schedules_to','schedule_to_auto','/itd/amtrak/AutoComplete',
686
- {\r\nparamName: \"_destination\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\nnew
805
+ /><input type=\"password\" autocomplete=\"off\" id=\"mytrip_acct_pwd\" maxlength=\"20\"
806
+ name=\"wdf_password\" />\n </span>\n </div>\n
807
+ \ <div id=\"ff_mytrip_acct_submit\">\n \n
808
+ \ <a class=\"forgot_pass\" title=\"Click here
809
+ to request your Password\" href=\"javascript:openForgotPwdBox();\">Forgot
810
+ password?</a>\n \n \n
811
+ \ <input type=\"hidden\" name=\"_handler=com.sita.ats.amtrak.presentation.handler.request.profile.AmtrakProfileLogonRequestHandler/_xpath=/sessionWorkflow/userWorkflow/profileAccountRequirements\"
812
+ />\n <input type=\"image\" alt=\"Log In\" name=\"_handler=com.sita.ats.amtrak.presentation.handler.request.profile.AmtrakProfileLogonRequestHandler/_xpath=/sessionWorkflow/userWorkflow/profileAccountRequirements\"
813
+ onclick=\"\" src=\"/images/en/btn_login.gif\" />\n </div>\n
814
+ \ </form>\n\t\t\t\t\t\n </div>\n\t\t\t\t\t\n
815
+ \ </div>\t\t\n </div>\n \n \n \n\t \n\t \n\t
816
+ \ <script type=\"text/javascript\" language=\"javascript\" charset=\"utf-8\">\n
817
+ \ // <![CDATA[\n\n new Ajax.Autocompleter('departs','autocomplete_availability_from',
818
+ '/itd/amtrak/AutoComplete', {\n paramName: \"_origin\",\n minChars:
819
+ 2,\n frequency: 0.5\n }\n ); \n \n
820
+ \ new Ajax.Autocompleter('arrives','autocomplete_availability_to','/itd/amtrak/AutoComplete',
821
+ {\n paramName: \"_destination\",\n minChars: 2,\n frequency:
822
+ 0.5\n }\n );\n\n new Ajax.Autocompleter('agrdeparts','redeem_from_auto',
823
+ '/itd/amtrak/AutoComplete', {\n paramName: \"_origin\",\n minChars:
824
+ 2,\n frequency: 0.5\n }\n ); \n
825
+ \ \n new Ajax.Autocompleter('agrarrives','redeem_to_auto','/itd/amtrak/AutoComplete',
826
+ {\n paramName: \"_destination\",\n minChars: 2,\n
827
+ \ frequency: 0.5\n }\n );\n\n\n\t\tnew
687
828
  Ajax.Autocompleter('status_from','status_from_auto','/itd/amtrak/AutoComplete',
688
- {\r\nparamName: \"_origin\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\nnew
829
+ {\n\t\t\tparamName: \"_origin\",\n\t\t\tminChars: 2,\n\t\t\tfrequency: 0.5\n\t\t\t}\n\t\t);\n\t\t\n\t\tnew
689
830
  Ajax.Autocompleter('status_to','status_to_auto','/itd/amtrak/AutoComplete',
690
- {\r\nparamName: \"_destination\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\nnew
691
- Ajax.Autocompleter('status_from1','status_from_auto1','/itd/amtrak/AutoComplete',
692
- {\r\nparamName: \"_origin\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\nnew
693
- Ajax.Autocompleter('status_to1','status_to_auto1','/itd/amtrak/AutoComplete',
694
- {\r\nparamName: \"_destination\",\r\nminChars: 2,\r\nfrequency: 0.5\r\n}\r\n);\r\n//
695
- ]]>\r\n</script>\r\n\r\n<!-- End HTML for Fare Finder -->\r\n<script language=\"JavaScript\"
696
- type=\"text/javascript\">\r\n<!--\r\nfunction CheckMandatoryTrainStatusFieldsForStatusByTrainNumber()
697
- {\r\nvar errorMsg = \"\";\r\nvar fieldList = \"\";\r\nvar arrivalStatus_checked
698
- = document.ff_status_form1.status_arr.checked;\r\nvar departureStatus_checked
699
- = document.ff_status_form1.status_dep.checked;\r\nvar origin = document.ff_status_form1.wdf_origin.value;\r\nvar
700
- destination = document.ff_status_form1.wdf_destination.value;\r\nvar trainNumber
701
- = document.ff_status_form1.wdf_trainNumber.value;\r\nif(trainNumber == \"\")
702
- {\r\ntrainNumber = \"\";\r\n}\r\nif (departureStatus_checked && origin ==
703
- \"\")\r\nfieldList = fieldList + \" -- Departure Station\" + \"\\n\";\r\nif
704
- (arrivalStatus_checked && destination == \"\")\r\nfieldList = fieldList +
705
- \" -- Arrival Station\" + \"\\n\";\r\nif (trainNumber == \"\" || ((trainNumber
706
- != \"\") && (!IsNumber(trainNumber))))\r\nfieldList = fieldList + \" -- Valid
707
- Train or Bus Number\" + \"\\n\";\r\nif (fieldList != \"\")\r\nerrorMsg = \"The
708
- following information is needed to process your request:\" + \"\\n\" + fieldList;\r\nif
709
- (errorMsg != \"\"){\r\nalert(errorMsg);\r\nreturn false;\r\n}\r\nif(arrivalStatus_checked)
710
- {\r\ndocument.ff_status_form1.wdf_origin.value = '';\r\n} else if(departureStatus_checked)
711
- {\r\ndocument.ff_status_form1.wdf_destination.value = '';\r\n}\r\nreturn true;\r\n}\r\nfunction
712
- CheckMandatoryTrainStatusFieldsForStatusByCityPair() {\r\nvar errorMsg =\"\";\r\nvar
713
- fieldList = \"\";\r\nvar origin = document.ff_status_form2.wdf_origin.value;\r\nvar
714
- destination = document.ff_status_form2.wdf_destination.value;\r\nif (origin
715
- == \"\")\r\nfieldList = fieldList + \" -- From\" + \"\\n\";\r\nif (destination
716
- == \"\")\r\nfieldList = fieldList + \" -- To\" + \"\\n\";\r\nif (fieldList
717
- != \"\")\r\nerrorMsg = \"The following information is needed to process your
718
- request:\" + \"\\n\" + fieldList;\r\nif (errorMsg != \"\") {\r\nalert(errorMsg);\r\nreturn
719
- false;\r\n}\r\nreturn true;\r\n}\r\nfunction CheckMandatoryScheduleFields(statusForm)
720
- {\r\nvar errorMsg =\"\";\r\nvar fieldList = \"\";\r\nvar origin = statusForm.wdf_origin.value;\r\nvar
721
- destination = statusForm.wdf_destination.value;\r\nif (origin == \"\" && destination
722
- == \"\")\r\nfieldList = \"Problem with Departure and Arrival Station/City:
831
+ {\n\t\t\tparamName: \"_destination\",\n\t\t\tminChars: 2,\n\t\t\tfrequency:
832
+ 0.5\n\t\t\t}\n\t\t);\n\t\t\n\t\tnew Ajax.Autocompleter('status_from1','status_from_auto1','/itd/amtrak/AutoComplete',
833
+ {\n paramName: \"_origin\",\n minChars: 2,\n frequency:
834
+ 0.5\n }\n );\n \n new Ajax.Autocompleter('status_to1','status_to_auto1','/itd/amtrak/AutoComplete',
835
+ {\n paramName: \"_destination\",\n minChars: 2,\n frequency:
836
+ 0.5\n }\n\t\t);\n\n // ]]>\n </script>\n\t \n
837
+ \ <!-- End HTML for Fare Finder -->\n \n \n<script language=\"JavaScript\"
838
+ type=\"text/javascript\"> \n<!--\n\nfunction CheckMandatoryTrainStatusFieldsForStatusByTrainNumber()
839
+ {\n\tvar errorMsg = \"\";\n\tvar fieldList = \"\";\t \n\n var arrivalStatus_checked
840
+ = document.ff_status_form1.status_arr.checked;\n var departureStatus_checked
841
+ = document.ff_status_form1.status_dep.checked; \n var origin = document.ff_status_form1.wdf_origin.value;\n
842
+ \ var destination = document.ff_status_form1.wdf_destination.value;\n var
843
+ trainNumber = document.ff_status_form1.wdf_trainNumber.value;\n\n if(trainNumber
844
+ == \"\") {\n trainNumber = \"\";\n } \n\n if (departureStatus_checked
845
+ && origin == \"\") \n fieldList = fieldList + \" -- Departure Station\"
846
+ + \"\\n\";\n \t\n if (arrivalStatus_checked && destination == \"\")\n
847
+ \ fieldList = fieldList + \" -- Arrival Station\" + \"\\n\";\n \n
848
+ \ if (trainNumber == \"\" || ((trainNumber != \"\") && (!IsNumber(trainNumber))))\n
849
+ \ fieldList = fieldList + \" -- Valid Train or Bus Number\" + \"\\n\";\n\n
850
+ \ if (fieldList != \"\") \n errorMsg = \"The following information
851
+ is needed to process your request:\" + \"\\n\" + fieldList;\n \n \n
852
+ \ if (errorMsg != \"\"){\n alert(errorMsg);\n return false;\n
853
+ \ }\n\n if(arrivalStatus_checked) {\n \tdocument.ff_status_form1.wdf_origin.value
854
+ = '';\n } else if(departureStatus_checked) {\n \tdocument.ff_status_form1.wdf_destination.value
855
+ = '';\n }\n return true; \n}\n\n\nfunction CheckMandatoryTrainStatusFieldsForStatusByCityPair()
856
+ {\n var errorMsg =\"\";\n var fieldList = \"\";\n \n var origin
857
+ = document.ff_status_form2.wdf_origin.value;\n var destination = document.ff_status_form2.wdf_destination.value;\n\n
858
+ \ if (origin == \"\") \n fieldList = fieldList + \" -- From\" + \"\\n\";\n
859
+ \ \n if (destination == \"\") \n fieldList =
860
+ fieldList + \" -- To\" + \"\\n\";\n \n if (fieldList != \"\")\n errorMsg
861
+ = \"The following information is needed to process your request:\" + \"\\n\"
862
+ + fieldList;\n \n if (errorMsg != \"\") {\n alert(errorMsg);\n
863
+ \ return false;\n }\n \n return true; \n}\n\nfunction
864
+ CheckMandatoryScheduleFields(statusForm) {\n var errorMsg =\"\";\n var fieldList
865
+ = \"\";\n\t\n var origin = statusForm.wdf_origin.value;\n var destination
866
+ = statusForm.wdf_destination.value;\n \n if (origin == \"\" && destination
867
+ == \"\") \n fieldList = \"Problem with Departure and Arrival Station/City:
868
+ Please provide a valid departure and arrival station or city name and resubmit.
869
+ \\n[Error ID: 573S]\" + \"\\n\"; \n\n if (origin != \"\" && destination ==
870
+ \"\") \n fieldList = fieldList + \"Problem with Departure and Arrival Station/City:
723
871
  Please provide a valid departure and arrival station or city name and resubmit.
724
- \\n[Error ID: 573S]\" + \"\\n\";\r\nif (origin != \"\" && destination == \"\")\r\nfieldList
725
- = fieldList + \"Problem with Departure and Arrival Station/City: Please provide
726
- a valid departure and arrival station or city name and resubmit. \\n[Error
727
- ID: 573S]\" + \"\\n\";\r\nif (origin == \"\" && destination != \"\")\r\nfieldList
728
- = fieldList + \"Problem with Departure and Arrival Station/City: Please provide
729
- a valid departure and arrival station or city name and resubmit. \\n[Error
730
- ID: 573S]\" + \"\\n\";\r\nif (fieldList != \"\") {\r\nerrorMsg = \"The following
731
- information is needed to process your request:\" + \"\\n\\n\" + fieldList;\r\n}\r\nif
732
- (errorMsg != \"\") {\r\nalert(errorMsg);\r\nreturn false;\r\n}\r\nreturn true;\r\n}\r\nfunction
733
- CheckMandatoryMyTripFields(theForm) {\r\nvar errorMsg =\"\";\r\nvar fieldList
734
- = \"\";\r\nif ($('mytrip_res_num').value.empty()) {\r\nfieldList += \" --
735
- reservation number\\n\";\r\n}\r\nif ($('mytrip_res_email').value.empty() &&
736
- $('mytrip_res_zip').value.empty()) {\r\nfieldList += \" -- email address or
737
- telephone number\\n\";\r\n}\r\nif (fieldList != \"\") {\r\nerrorMsg=\"The
872
+ \\n[Error ID: 573S]\" + \"\\n\"; \n \n if (origin == \"\" && destination
873
+ != \"\") \n fieldList = fieldList + \"Problem with Departure and Arrival
874
+ Station/City: Please provide a valid departure and arrival station or city
875
+ name and resubmit. \\n[Error ID: 573S]\" + \"\\n\"; \n\n if (fieldList !=
876
+ \"\") { \n errorMsg = \"The following information is needed to process
877
+ your request:\" + \"\\n\\n\" + fieldList;\n }\n if (errorMsg != \"\") {\n
878
+ \ alert(errorMsg);\n return false;\n }\n return true;\n}\n\nfunction
879
+ CheckMandatoryMyTripFields(theForm) {\n var errorMsg =\"\";\n var fieldList
880
+ = \"\";\n \n if ($('mytrip_res_num').value.empty()) {\n fieldList +=
881
+ \" -- reservation number\\n\";\n }\n if ($('mytrip_res_email').value.empty()
882
+ && $('mytrip_res_zip').value.empty()) {\n fieldList += \" -- email address
883
+ or telephone number\\n\";\n }\n \n if (fieldList != \"\") {\n errorMsg=\"The
738
884
  following information is needed to process your request:\" + \"\\n\" + fieldList+
739
- \"\\n\\n\";\r\nalert(errorMsg);\r\nreturn false;\r\n}\r\nreturn true;\r\n}\r\nfunction
740
- CheckMandatoryMyTripFields(theForm) {\r\nvar errorMsg =\"\";\r\nvar fieldList
741
- = \"\";\r\nif ($('mytrip_res_num').value.empty()) {\r\nfieldList += \" --
742
- reservation number\\n\";\r\n}\r\nif ($('mytrip_res_email').value.empty() &&
743
- $('mytrip_res_zip').value.empty()) {\r\nfieldList += \" -- email address or
744
- telephone number\\n\";\r\n}\r\nif (fieldList != \"\") {\r\nerrorMsg=\"The
885
+ \"\\n\\n\";\n alert(errorMsg);\n return false;\n }\n return true;\n}\n\nfunction
886
+ CheckMandatoryMyTripFields(theForm) {\n var errorMsg =\"\";\n var fieldList
887
+ = \"\";\n \n if ($('mytrip_res_num').value.empty()) {\n fieldList +=
888
+ \" -- reservation number\\n\";\n }\n if ($('mytrip_res_email').value.empty()
889
+ && $('mytrip_res_zip').value.empty()) {\n fieldList += \" -- email address
890
+ or telephone number\\n\";\n }\n \n if (fieldList != \"\") {\n errorMsg=\"The
745
891
  following information is needed to process your request:\" + \"\\n\" + fieldList+
746
- \"\\n\\n\";\r\nalert(errorMsg);\r\nreturn false;\r\n}\r\nreturn true;\r\n}\r\nfunction
747
- CheckMandatoryLoginFields(theForm) {\r\nvar errorMsg =\"\";\r\nvar fieldList
748
- = \"\";\r\nif(eval(\"theForm.wdf_username.value\") == \"\") {\r\nfieldList
749
- += \" -- username\\n\";\r\n}\r\nif(eval(\"theForm.wdf_password.value\") ==
750
- \"\") {\r\nfieldList += \" -- password\\n\";\r\n}\r\nif (fieldList != \"\")
751
- {\r\nerrorMsg=\"The following information is needed to process your request:\"
752
- + \"\\n\" + fieldList+ \"\\n\\n\";\r\nalert(errorMsg);\r\nreturn false;\r\n}\r\nreturn
753
- true;\r\n}\r\n//Aibe-2026,Mac safari issue.\r\nfunction updateMaxLength()\r\n{\r\ntrainNum
754
- = document.getElementById('status_train_num');\r\ntrainNum.setAttribute(\"maxLength\",
755
- 4);\r\n}\r\nfunction validatePasswordSize() {\r\nvar memberPwd = document.getElementById('ff_memberpassword');\r\nif((memberPwd
756
- != null) && (memberPwd.value != \"\")) {\r\nif ((memberPwd.value.length <
757
- '6') ||\r\n(memberPwd.value.length > '29') ) {\r\nreturn 'The password you
758
- entered is invalid. Please try again or call 1-800-307-5000 for assistance
759
- (Sunday - Saturday, 5 am - midnight ET). [Error ID: 1114R]';\r\n}\r\n}\r\nreturn
760
- \"\";\r\n}\r\nfunction checkRedeemMandatoryFields(theForm) {\r\nvar errorMsg
761
- =\"\";\r\nvar fieldList = \"\";\r\nvar origin = document.ff_redeem_form.agrdeparts.value;\r\nvar
762
- destination = document.ff_redeem_form.agrarrives.value;\r\nvar startDate =
763
- document.getElementById('wdfdate15').value;\r\nvar memberNo = document.getElementById('ff_membernumber');\r\nvar
764
- memberPwd = document.getElementById('ff_memberpassword');\r\nif (memberNo
765
- != null) { //member number null means login was already validated\r\nif (memberNo.value
766
- == \"\") {\r\nfieldList = fieldList + \" -- Member Number\\n\";\r\n}\r\n}\r\nif(memberPwd
767
- != null) {//member password null means login was already validated\r\nif (memberPwd.value
768
- == \"\") {\r\nfieldList = fieldList + \" -- Member Passsword\\n\";\r\n}\r\n}\r\nif
769
- (origin == \"\") {\r\nfieldList = fieldList + \" -- From\\n\";\r\n}\r\nif(destination
770
- == \"\") {\r\nfieldList = fieldList + \" -- To\\n\";\r\n}\r\nif (startDate
771
- == \"\") {\r\nfieldList = fieldList + \" -- Day\\n\";\r\n}\r\nif (fieldList
772
- != \"\") {\r\nerrorMsg=\"The following information is needed to process your
773
- request:\" + \"\\n\" + fieldList+ \"\\n\\n\";\r\nalert(errorMsg);\r\nreturn
774
- false;\r\n}\r\nreturn fieldList;\r\n}\r\nfunction checkValidCouponCode(id){\r\nvar
775
- errorMsg='';\r\nvar newCouponCode = document.getElementById(id).value;\r\nif(newCouponCode
776
- == \"Promo Code\") {\r\ndocument.getElementById('ff_disc_promoCode').value
777
- = \"\";\r\nnewCouponCode= \"\"\r\n}\r\nnewCouponCode = trim(newCouponCode);\r\nif(newCouponCode
778
- == '')\r\nreturn true;\r\nvar isValidCode = validateCouponCode(newCouponCode);\r\nif(isValidCode
779
- == false) {\r\nerrorMsg = 'Problem with Promotion Code: The Promotion Code
780
- you entered is not valid. Please check for accuracy and re-enter it, or continue
781
- without it. \\n[Error ID: 744S]';\r\n}\r\nif (errorMsg!=\"\"){\r\nalert(errorMsg);\r\nreturn
782
- false;\r\n} else {\r\nreturn true;\r\n}\r\n}\r\nfunction trim(s) {\r\nreturn
783
- s.replace(/^\\s+|\\s+$/g, \"\");\r\n}\r\n//-->\r\n</script>\r\n\r\n\r\n\r\n<meta
784
- name=\"WT.cg_s\" content=\"book\" />\r\n\r\n\r\n\r\n\n<meta name=\"DCSext.ORG\"
785
- content=\"askdf\" />\n<meta name=\"DCSext.DST\" content=\"preencoded:BBY\"
786
- />\n<meta name=\"DCSext.DDT\" content=\"2014/12/07\" />\n<meta name=\"DCSext.PAX\"
892
+ \"\\n\\n\";\n alert(errorMsg);\n return false;\n }\n return true;\n}\n\nfunction
893
+ CheckMandatoryLoginFields(theForm) {\n var errorMsg =\"\";\n var fieldList
894
+ = \"\";\n \n if(eval(\"theForm.wdf_username.value\") == \"\") {\n fieldList
895
+ += \" -- username\\n\";\n }\n if(eval(\"theForm.wdf_password.value\") ==
896
+ \"\") {\n fieldList += \" -- password\\n\";\n }\n \n if (fieldList !=
897
+ \"\") {\n errorMsg=\"The following information is needed to process your
898
+ request:\" + \"\\n\" + fieldList+ \"\\n\\n\";\n alert(errorMsg);\n return
899
+ false;\n }\n return true;\n}\n\n//Aibe-2026,Mac safari issue.\nfunction
900
+ updateMaxLength()\n{\n trainNum = document.getElementById('status_train_num');\n
901
+ \ trainNum.setAttribute(\"maxLength\", 4);\n}\n\nfunction validatePasswordSize()
902
+ {\n var memberPwd = document.getElementById('ff_memberpassword');\n if((memberPwd
903
+ != null) && (memberPwd.value != \"\")) {\n \tif ((memberPwd.value.length
904
+ < '6') ||\n \t \t(memberPwd.value.length > '29') ) {\n \t return 'The password
905
+ you entered is invalid. Please try again or call 1-800-307-5000 for assistance
906
+ (Sunday - Saturday, 5 am - midnight ET). [Error ID: 1114R]'; \t\n\t} \n
907
+ \ }\n return \"\";\n}\n\nfunction checkRedeemMandatoryFields(theForm) {\n\t
908
+ \ var errorMsg =\"\";\n\t var fieldList = \"\";\n\t var origin = document.ff_redeem_form.agrdeparts.value;\n\t
909
+ \ var destination = document.ff_redeem_form.agrarrives.value;\n\t var startDate
910
+ = document.getElementById('wdfdate15').value;\n\t var memberNo = document.getElementById('ff_membernumber');\n\t
911
+ \ var memberPwd = document.getElementById('ff_memberpassword');\n\n\t if
912
+ (memberNo != null) { //member number null means login was already validated\n\t
913
+ \ \tif (memberNo.value == \"\") {\n\t\t\tfieldList = fieldList + \" -- Member
914
+ Number\\n\";\n\t\t}\t\n\t }\n\t \n\t if(memberPwd != null) {//member password
915
+ null means login was already validated\n\t \tif (memberPwd.value == \"\")
916
+ {\n\t\t fieldList = fieldList + \" -- Member Passsword\\n\";\n\t\t} \n\t
917
+ \ }\n\t \n\t if (origin == \"\") {\n\t fieldList = fieldList + \" --
918
+ From\\n\";\n\t }\n\n\t if(destination == \"\") {\n\t fieldList = fieldList
919
+ + \" -- To\\n\";\n\t }\n\t \n\t if (startDate == \"\" || startDate == 'Select
920
+ a date') {\n\t fieldList = fieldList + \" -- Day\\n\";\n\t }\n\n\t if
921
+ (fieldList != \"\") {\n\t\terrorMsg=\"The following information is needed
922
+ to process your request:\" + \"\\n\" + fieldList+ \"\\n\\n\";\n\t\talert(errorMsg);\n\t\treturn
923
+ false;\n\t }\n\t \n\t return fieldList;\n}\n\nfunction checkValidCouponCode(id){\n\n\tvar
924
+ errorMsg='';\n\tvar newCouponCode = document.getElementById(id).value;\n\n
925
+ \ if(newCouponCode == \"Promo Code\") {\n document.getElementById('ff_disc_promoCode').value
926
+ = \"\";\n newCouponCode= \"\"\n } \n\n\tnewCouponCode = trim(newCouponCode);\n\t\n
927
+ \ if(newCouponCode == '')\n return true;\n\n var isValidCode =
928
+ validateCouponCode(newCouponCode);\n \n if(isValidCode == false) {\n
929
+ \ errorMsg = 'Problem with Promotion Code: The Promotion Code you entered
930
+ is not valid. Please check for accuracy and re-enter it, or continue without
931
+ it. \\n[Error ID: 744S]';\n \n } \n\n if (errorMsg!=\"\"){\n
932
+ \ alert(errorMsg);\n return false;\n } else {\n \treturn
933
+ true;\n }\n\n}\nfunction trim(s) {\n return s.replace(/^\\s+|\\s+$/g,
934
+ \"\");\n}\n\nfunction ValidateStatusDate(id){\n var errMsg=\"\";\n var
935
+ mindate = new Date();\n var maxdate = new Date();\n var numberOfDaysToAdd
936
+ = +5;\n var numberOfPastDays = -5;\n mindate.setDate(mindate.getDate()
937
+ + numberOfPastDays); \n mindate= $j.datepicker.formatDate('mm/dd/yy', mindate);\n
938
+ \ maxdate.setDate(maxdate.getDate() + numberOfDaysToAdd); \n maxdate=
939
+ $j.datepicker.formatDate('mm/dd/yy', maxdate);\n var depdate=document.getElementById(id).value;\n
940
+ \ \n if (depdate != \"\" && validDateRange(mindate,maxdate,depdate) ==
941
+ false ){\n \terrMsg = 'Train status information is available only for today\\'s
942
+ date, five days in the past, and five days in the future. Please select a
943
+ valid date and resubmit.[Error ID: 568S]' ;\n }\n if (null != errMsg
944
+ && errMsg != \"\" ) {\n alert(errMsg);\n return false;\n
945
+ \ } else {\n return true;\n }\n \n\n}\nfunction ValidateRedeemDate(id){\n
946
+ \ var errMsg=\"\";\n var mindate = new Date();\n var newdate = new
947
+ Date();\n\tvar numberOfDaysToAdd = '+335d';\n\tnumberOfDaysToAdd = parseInt(numberOfDaysToAdd.replace(/\\D/g,''));\n
948
+ \ var mindate= $j.datepicker.formatDate('mm/dd/yy', newdate);\n newdate.setDate(newdate.getDate()
949
+ + numberOfDaysToAdd); \n var maxdate= $j.datepicker.formatDate('mm/dd/yy',
950
+ newdate);\n var depdate=document.getElementById(\"wdfdate15\").value;\n
951
+ \ \n if (depdate != \"\" && validMinDateRange(mindate,depdate) == false
952
+ ){\n errMsg = 'Problem with Travel Date: Our system cannot make reservations
953
+ for dates in the past. Check your date(s) and try again. [Error ID: 532S]\\n\\n'
954
+ ;\n }\n if (depdate != \"\" && validMaxDateRange(maxdate,depdate) ==
955
+ false ){\n errMsg = 'Problem with Travel Date: Our system cannot make
956
+ reservations for dates more than 11 months in the future. Check your date(s)
957
+ and try again. [Error ID: 533S]' ;\n }\n \n if (null != errMsg &&
958
+ errMsg != \"\" ) {\n alert(errMsg);\n return false;\n
959
+ \ } else {\n return true;\n }\n \n\n}\n\n\n//-->\n</script>\n
960
+ \n \n\r\n\r\n<meta name=\"WT.cg_s\" content=\"book\" />\r\n\r\n\r\n\r\n\n<meta
961
+ name=\"DCSext.ORG\" content=\"askdf\" />\n<meta name=\"DCSext.DST\" content=\"preencoded:BBY\"
962
+ />\n<meta name=\"DCSext.DDT\" content=\"2015/12/31\" />\n<meta name=\"DCSext.PAX\"
787
963
  content=\"0\" />\n<meta name=\"DCSext.SORT\" content=\"\" />\n<meta name=\"DCSext.PTP\"
788
- content=\"\" />\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n</div>\r\n\r\n<div id=\"special_booking_menu\">\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n<style
789
- type=\"text/css\">\r\n<!--\r\n@import url(/css/basic_booking.css);\r\n-->\r\n</style>\r\n\r\n\r\n\r\n<span
964
+ content=\"\" />\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n</div>\r\n\r\n<div id=\"special_booking_menu\">\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n<style
965
+ type=\"text/css\">\r\n<!--\r\n@import url(/css/basic_booking.css?v=1.3);\r\n-->\r\n</style>\r\n\r\n\r\n\r\n<span
790
966
  id=\"IB_diginet_div\">\r\n\r\n</span>\r\n\r\n\r\n\r\n\r\n</div>\r\n\r\n<div
791
- id=\"mb_column_1_confirmation\">\r\n<form name=\"form\" action=\"http://tickets.amtrak.com/itd/amtrak\"
967
+ id=\"mb_column_1_confirmation\">\r\n<form name=\"form\" action=\"https://tickets.amtrak.com/itd/amtrak\"
792
968
  method=\"post\"><input type=\"hidden\" name=\"requestor\" value=\"amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler\"
793
969
  />\r\n\r\n\r\n<div id=\"amtrak_error_id\" class=\"error\"><b>We were unable
794
970
  to process your request:</b> Please correct the error(s) shown below and resubmit.<hr
@@ -819,23 +995,24 @@ http_interactions:
819
995
  60%;\r\nbackground:#fff;\r\ntext-align:center;\r\npadding:10px;\r\nfont:normal
820
996
  16px Tahoma, Geneva, sans-serif;\r\nborder:1px solid #666;\r\nmargin-left:
821
997
  -50px;\r\nmargin-top: -50px;\r\nz-index:2;\r\noverflow: auto;\r\n}\r\n#overlay
822
- {\r\nbackground-color:#EEE;\r\n}\r\n</style>\r\n<script language=\"JavaScript\"
823
- type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/basic_pagination_trainstatus.js\"></script>\r\n<script
998
+ {\r\nbackground-color:#EEE;\r\n}\r\n.statusalert_icon{\r\nfloat:left;\r\npadding:
999
+ 9px 10px 0 10px;\r\n}\r\n.statusalert_icon2{\r\npadding-right:10px;\r\npadding-top:3px;\r\nfloat:left;\r\n}\r\n</style>\r\n<script
1000
+ language=\"JavaScript\" type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/basic_pagination_trainstatus.js\"></script>\r\n<script
1001
+ language=\"JavaScript\" type=\"text/javascript\" src=\"/itd/project/scripts/en/amtrak/selecttrain.js\"></script>\r\n<script
824
1002
  type=\"text/javascript\">\r\nvar pageDisplay = '10';\r\nvar currentPage =
825
1003
  0;\r\nvar availabilityLength = '0';\r\nvar trainStatusType = 'statusByCityPair';\r\nvar
826
1004
  statusResult;\r\nElement.observe(window, 'load', function(){\r\nshow_ff_tab('status');\r\nif(trainStatusType
827
1005
  == 'statusByTrainNumber') {\r\nswitchToStatusByTrain();\r\n} else if(trainStatusType
828
1006
  == 'statusByCityPair') {\r\nswitchToStatusByCity();\r\n}\r\nsetDepartOrArrivalFieldVisibility();\r\npageFilterDisplay(availabilityLength);\r\n});\r\n</script>\r\n\r\n\r\n\r\n<meta
829
1007
  name=\"WT.cg_s\" content=\"status\" />\r\n\n\r\n\r\n\r\n</form>\r\n</div>\r\n<br
830
- class=\"clear_both\" />\r\n</div>\r\n</div>\r\n</div>\r\n\r\n\r\n<script language=\"JavaScript\">\r\n<!--\r\nfunction
831
- getProfileStr(){\r\nreturn 'amtrak';\r\n}\r\ndocument.write('<meta name=\"DCSext.PROFILE\"
832
- content=\"'+getProfileStr()+'\" />');\r\n// -->\r\n</script>\r\n<meta name=\"WT.cg_n\"
833
- content=\"booking\" />\r\n\r\n<meta name=\"DCSext.REDISP\" content=\"Y\" />\r\n\r\n\r\n\r\n<!--
834
- START OF SmartSource Data Collector TAG -->\r\n<!-- Copyright (c) 1996-2011
835
- WebTrends Inc. All rights reserved. -->\r\n<!-- Version: 9.3.0 -->\r\n<!--
836
- Tag Builder Version: 3.1 -->\r\n<!-- Created: 2/11/2011 4:14:35 PM -->\r\n<script
837
- src=\"/itd/project/scripts/en/sitewise/webtrends_session.js\" type=\"text/javascript\"></script>\r\n<!--
838
- -----------------------------------------------------------------------------------
1008
+ class=\"clear_both\" />\r\n</div>\r\n</div>\r\n</div>\r\n\r\n\t \t\r\n<script
1009
+ language=\"JavaScript\">\r\n<!--\r\nfunction getProfileStr(){\r\nreturn 'amtrak';\r\n}\r\ndocument.write('<meta
1010
+ name=\"DCSext.PROFILE\" content=\"'+getProfileStr()+'\" />');\r\n// -->\r\n</script>\r\n<meta
1011
+ name=\"WT.cg_n\" content=\"booking\" />\r\n\r\n\r\n\t \r\n<!-- START OF
1012
+ SmartSource Data Collector TAG -->\r\n<!-- Copyright (c) 1996-2011 WebTrends
1013
+ Inc. All rights reserved. -->\r\n<!-- Version: 9.3.0 -->\r\n<!-- Tag Builder
1014
+ Version: 3.1 -->\r\n<!-- Created: 2/11/2011 4:14:35 PM -->\r\n<script src=\"/itd/project/scripts/en/sitewise/webtrends_session.js\"
1015
+ type=\"text/javascript\"></script>\r\n<!-- -----------------------------------------------------------------------------------
839
1016
  -->\r\n<!-- Warning: The two script blocks below must remain inline. Moving
840
1017
  them to an external -->\r\n<!-- JavaScript include file can cause serious
841
1018
  problems with cross-domain tracking. -->\r\n<!-- -----------------------------------------------------------------------------------
@@ -845,13 +1022,52 @@ http_interactions:
845
1022
  type=\"text/javascript\">\r\n//<![CDATA[\r\n_tag.dcsCustom=function(){\r\n//
846
1023
  Add custom parameters here.\r\n//_tag.DCSext.param_name=param_value;\r\n}\r\n_tag.dcsCollect();\r\n//]]>\r\n</script>\r\n<noscript>\r\n<div><img
847
1024
  alt=\"DCSIMG\" id=\"DCSIMG\" width=\"1\" height=\"1\" src=\"http://statse.webtrendslive.com/dcsn42u4k11e5hyzziz7zntl5_1j8l/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;DCS.dcscfg=1&amp;WT.tv=9.3.0&amp;WT.dcssip=www.amtrak.com\"/></div>\r\n</noscript>\r\n<!--
848
- END OF SmartSource Data Collector TAG -->\r\n\r\n\r\n<!-- javascript for SSO
849
- -->\r\n<script type=\"text/javascript\">\r\nvar agrHost = ((\"https:\"== document.location.protocol)
850
- ? \"https://agr.amtrak.com/m/js\":\"http://agr.amtrak.com/m/js\");\r\ndocument.write(\r\nunescape(\"%3Cscript
851
- src='\" + agrHost + \"/shoebox-simple.js' type='text/javascript'%3E%3C/script%3E\")\r\n);\r\n</script>\r\n<!--
852
- mp_trans_remove_start --><script type=\"text/javascript\" language=\"javascript\"
853
- src='https://askjulie.amtrak.com/ui/includes/NIT.Embed.js' id=\"agentScript\"></script><!--
854
- mp_trans_remove_end -->\r\n</body>\r\n</html>\r\n"
1025
+ END OF SmartSource Data Collector TAG -->\r\n\r\n\t \t\r\n \r\n \r\n
1026
+ \ \r\n\r\n\r\n<div id=\"forgot_passwordwin\" >\r\n<div id=\"pwdwin_error\"
1027
+ class=\"error\"> </div>\r\n<h3>Reset Your Password</h3>\r\n\r\n<div id=\"confirmpwdreset\"
1028
+ style=\"display:none;\">\r\n<p>An e-mail with password reset instructions
1029
+ is on its way.</p>\r\n</div>\r\n<div id=\"pwdresetsec\">\r\n<p>To receive
1030
+ an e-mail that allows you to reset your password, please enter the e-mail
1031
+ address associated with your account. </p>\r\n<label for=\"emailaddress\">E-mail
1032
+ Address</label><br/>\r\n<input type=\"hidden\" name=\"xwdf_email_address\"
1033
+ value=\"/sessionWorkflow/userWorkflow/profilePersonRequirements/primaryEmailAddress\"
1034
+ /><input class=\"forgotpwd_emailaddress \" autocomplete=\"off\" type=\"text\"
1035
+ size=\"32\" id=\"pwdemailaddress\" maxlength=\"64\" name=\"wdf_email_address\"
1036
+ /><br/>\r\n<input type=\"image\" alt=\"\" name=\"_xpath=/sessionWorkflow/userWorkflow/profilePersonRequirements\"
1037
+ onclick=\"javascript:sendPasswordReset()\" src=\"/images/en/btn_continue.gif\"
1038
+ border=\"0\" />\r\n</div>\r\n\r\n</div>\r\n<script>\r\n<!--\r\nvar closeCrossButton
1039
+ = '<a id=\"forgotpassword_close\" class=\"button right_align\" href=\"javascript:closeForgotPwdBox();\"><img
1040
+ \ src=\"/images/en/btn_windowClose.png\" alt=\"Close\" /></a>';\r\nfunction
1041
+ show_disabledFareAlert() {\r\ndocument.getElementById(\"forgot_passwordwin\").style.display
1042
+ = 'block';\r\n}\r\nfunction closeForgotPwdBox() {\r\nvar $j = jQuery.noConflict();\r\n$j(\".ui-dialog-content\").dialog(\"close\");\r\n}\r\nfunction
1043
+ openForgotPwdBox() {\r\nvar $j = jQuery.noConflict();\r\n$j( document ).ready(function()
1044
+ {\r\n$j( \"#forgot_passwordwin\" ).dialog({\r\nresizable: false,\r\nwidth:100,\r\ndialogClass:'pwdwin',\r\nmodal:
1045
+ true\r\n});\r\nif ($('forgotpassword_close') == null) {\r\n$j($('forgot_passwordwin')).before(closeCrossButton);\r\n}\r\n$j(\".ui-dialog\").position({\r\n\"my\":
1046
+ \"left top+300\",\r\n\"at\": \"left+400\",\r\n\"of\": $j(\"#top_navigation_body\")\r\n});\r\n$j('#forgotpassword_close').blur();\r\ndocument.getElementById(\"pwdwin_error\").style.display
1047
+ = 'none';\r\ndocument.getElementById(\"forgot_passwordwin\" ).style.display
1048
+ = 'block';\r\ndocument.getElementById(\"confirmpwdreset\").style.display =
1049
+ 'none';\r\ndocument.getElementById(\"pwdresetsec\").style.display = 'block';\r\n});\r\n}\r\nfunction
1050
+ sendPasswordReset(){\r\nvar emailaddress = document.getElementById('pwdemailaddress').value;\r\nvar
1051
+ url = \"/\" + \"itd/amtrak\" + \"/resetpassword\";\r\ndocument.getElementById(\"pwdwin_error\").innerHTML
1052
+ = \"\";\r\ndocument.getElementById(\"pwdwin_error\").style.display = 'none';\r\nnew
1053
+ Ajax.Request(url,\r\n{ method: 'post',\r\nparameters: {'emailaddress':emailaddress},\r\nonComplete:
1054
+ function (transport) {\r\nif(transport.responseText!='') {\r\nif(transport.responseText
1055
+ == 'valid') {\r\ndocument.getElementById(\"pwdresetsec\").style.display =
1056
+ 'none';\r\ndocument.getElementById(\"confirmpwdreset\").style.display = 'block';\r\n}
1057
+ else {\r\ndocument.getElementById(\"confirmpwdreset\").style.display = 'none';\r\ndocument.getElementById(\"pwdresetsec\").style.display
1058
+ = 'block';\r\ndocument.getElementById(\"pwdwin_error\").innerHTML = transport.responseText;\r\ndocument.getElementById(\"pwdwin_error\").style.display
1059
+ = 'block';\r\n}\r\n}\r\n},\r\nonFailure: function (transport) {\r\ndocument.getElementById(\"confirmpwdreset\").style.display
1060
+ = 'none';\r\n}\r\n});\r\n}\r\n//-->\r\n</script>\r\n\r\n \r\n \r\n\t
1061
+ \ \t\r\n\t \t\r\n <!-- javascript for SSO -->\r\n\t <script type=\"text/javascript\">\r\n\t
1062
+ \ var agrHost = ((\"https:\"== document.location.protocol) ? \"https://agr.amtrak.com/m/js\":\"http://agr.amtrak.com/m/js\");
1063
+ \r\n \t document.write(\r\n unescape(\"%3Cscript
1064
+ src='\" + agrHost + \"/shoebox-simple.js' type='text/javascript'%3E%3C/script%3E\")\r\n
1065
+ \ );\r\n\t </script>\r\n <!-- mp_trans_remove_start
1066
+ --><script type=\"text/javascript\" language=\"javascript\" src='https://askjulie.amtrak.com/ui/includes/NIT.Embed.js'
1067
+ id=\"agentScript\"></script><!-- mp_trans_remove_end -->\r\n \r\n \r\n
1068
+ \ <script type =\"text/javascript\">_satellite.pageBottom();</script>\r\n
1069
+ \ \r\n \r\n \r\n\t \r\n \r\n \r\n
1070
+ \ </body> \t\r\n</html>"
855
1071
  http_version:
856
- recorded_at: Sun, 07 Dec 2014 19:36:28 GMT
1072
+ recorded_at: Mon, 04 Jan 2016 02:35:24 GMT
857
1073
  recorded_with: VCR 2.9.3