blackbook 1.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 (56) hide show
  1. data/History.txt +18 -0
  2. data/Manifest.txt +55 -0
  3. data/README.txt +71 -0
  4. data/Rakefile +38 -0
  5. data/init.rb +1 -0
  6. data/lib/blackbook.rb +80 -0
  7. data/lib/blackbook/exporter/base.rb +16 -0
  8. data/lib/blackbook/exporter/vcf.rb +45 -0
  9. data/lib/blackbook/exporter/xml.rb +28 -0
  10. data/lib/blackbook/importer/aol.rb +74 -0
  11. data/lib/blackbook/importer/base.rb +39 -0
  12. data/lib/blackbook/importer/csv.rb +61 -0
  13. data/lib/blackbook/importer/gmail.rb +59 -0
  14. data/lib/blackbook/importer/hotmail.rb +125 -0
  15. data/lib/blackbook/importer/page_scraper.rb +86 -0
  16. data/lib/blackbook/importer/yahoo.rb +61 -0
  17. data/test/fixtures/aol_bad_login_response_stage_3.html +565 -0
  18. data/test/fixtures/aol_contacts.html +90 -0
  19. data/test/fixtures/aol_login_response_stage_1.html +158 -0
  20. data/test/fixtures/aol_login_response_stage_2.html +559 -0
  21. data/test/fixtures/aol_login_response_stage_3.html +61 -0
  22. data/test/fixtures/aol_login_response_stage_4.html +48 -0
  23. data/test/fixtures/aol_login_response_stage_5.html +404 -0
  24. data/test/fixtures/gmail.csv +3 -0
  25. data/test/fixtures/gmail_bad_login_response_stage_2.html +560 -0
  26. data/test/fixtures/gmail_contacts.html +228 -0
  27. data/test/fixtures/gmail_login_response_stage_1.html +556 -0
  28. data/test/fixtures/gmail_login_response_stage_2.html +1 -0
  29. data/test/fixtures/gmail_login_response_stage_3.html +249 -0
  30. data/test/fixtures/hotmail_bad_login_response_stage_2.html +31 -0
  31. data/test/fixtures/hotmail_contacts.html +132 -0
  32. data/test/fixtures/hotmail_login_response_stage_1.html +31 -0
  33. data/test/fixtures/hotmail_login_response_stage_2.html +1 -0
  34. data/test/fixtures/hotmail_login_response_stage_3.html +380 -0
  35. data/test/fixtures/yahoo_bad_login_response_stage_2.html +443 -0
  36. data/test/fixtures/yahoo_contacts.csv +3 -0
  37. data/test/fixtures/yahoo_contacts_not_logged_in.html +432 -0
  38. data/test/fixtures/yahoo_contacts_stage_1.html +399 -0
  39. data/test/fixtures/yahoo_login_response_stage_1.html +433 -0
  40. data/test/fixtures/yahoo_login_response_stage_2.html +16 -0
  41. data/test/scripts/live_test.rb +25 -0
  42. data/test/test_blackbook.rb +60 -0
  43. data/test/test_blackbook_exporter_base.rb +16 -0
  44. data/test/test_blackbook_exporter_vcf.rb +52 -0
  45. data/test/test_blackbook_exporter_xml.rb +16 -0
  46. data/test/test_blackbook_importer_aol.rb +107 -0
  47. data/test/test_blackbook_importer_base.rb +24 -0
  48. data/test/test_blackbook_importer_csv.rb +60 -0
  49. data/test/test_blackbook_importer_gmail.rb +96 -0
  50. data/test/test_blackbook_importer_hotmail.rb +143 -0
  51. data/test/test_blackbook_importer_page_scraper.rb +51 -0
  52. data/test/test_blackbook_importer_yahoo.rb +97 -0
  53. data/test/test_helper.rb +47 -0
  54. data/vendor/plugins/blackbook/lib/autotest/blackbook.rb +27 -0
  55. data/vendor/plugins/blackbook/lib/autotest/discover.rb +3 -0
  56. metadata +147 -0
@@ -0,0 +1,90 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3
+ <html>
4
+ <head>
5
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
6
+ <title>AIM Mail - Print contacts</title>
7
+ <script type="text/javascript">
8
+ var VERSION="31361:webmail.aol.com";
9
+ var AV_PAGE="http://webmail.aol.com/31361/aim/en-us/Default.aspx?rp=Lite%2fToday.aspx";
10
+ var RELOADING=false;
11
+ </script>
12
+ <link href="http://o.aolcdn.com/cdn.webmail.aol.com/31361/aim/en-us/styles-addresslist-print.css" type="text/css" rel="stylesheet">
13
+
14
+ <script>
15
+ function showPrintInstructions()
16
+ {
17
+ alert("To print, select Print from this window\x27s File menu.");
18
+ }
19
+ </script>
20
+ <style>
21
+
22
+ #printHeader img { width: 75px; height: 30px; border: 0px; }
23
+
24
+ .CalendarPrintHeaderText
25
+ {
26
+ padding-left: 10px;
27
+ font-size: 20px;
28
+ font-family: verdana,arial,geneva,sans-serif;
29
+ color: #133453;
30
+ vertical-align: top;
31
+ text-decoration: none;
32
+ font-weight: normal;
33
+ }
34
+
35
+ .heading
36
+ {
37
+ padding-bottom: 3px;
38
+ }
39
+ </style>
40
+ </head>
41
+ <body onload="showPrintInstructions();">
42
+ <table width="584" border="0" cellspacing="0" cellpadding="2" style="table-layout: fixed;">
43
+
44
+ <tr>
45
+ <td colspan="4" nowrap>
46
+ <div class="heading">
47
+ <img src="http://o.aolcdn.com/cdn.webmail.aol.com/31361/aim/en-us/images/img_calPrintLogo.gif"><span class="CalendarPrintHeaderText">Address Book</span>
48
+ </div>
49
+ <div style="float: left;"><span style="font-family: arial,helvetica,sans-serif; font-size: x-small; color: #000000;">mondragonmichael</span></div>
50
+ <div style="float: right;"><span style="font-family: arial,helvetica,sans-serif; font-size: x-small; color: #000000;">Printed: <script>document.write((new Date()).toLocaleString());</script></span></div>
51
+ <div style="clear: both;"></div>
52
+ <hr>
53
+ </td>
54
+ </tr>
55
+
56
+
57
+ <tr><td colspan="4"><span class="fullName">Joe User</span></td></tr>
58
+ <tr>
59
+ <td class="sectionHeader">Contact</td>
60
+ <td class="sectionHeader">Phone</td>
61
+ <td class="sectionHeader">Home</td>
62
+ <td class="sectionHeader">Work</td>
63
+ </tr>
64
+ <tr valign="top">
65
+ <td class="sectionContent"><span>Screen Name:</span> <span>joe.user</span><br><span>Email 1:</span> <span>joe.user@example.com</span></td>
66
+ <td class="sectionContent"></td>
67
+ <td class="sectionContent"><span></span></td>
68
+ <td class="sectionContent"><span></span></td>
69
+ </tr>
70
+
71
+ <tr><td colspan="4"><hr class="contactSeparator"></td></tr>
72
+
73
+ <tr><td colspan="4"><span class="fullName">Jane User</span></td></tr>
74
+ <tr>
75
+ <td class="sectionHeader">Contact</td>
76
+ <td class="sectionHeader">Phone</td>
77
+ <td class="sectionHeader">Home</td>
78
+ <td class="sectionHeader">Work</td>
79
+ </tr>
80
+ <tr valign="top">
81
+ <td class="sectionContent"><span>Screen Name:</span> <span>jane.user</span><br><span>Email 1:</span> <span>jane.user@example.com</span></td>
82
+ <td class="sectionContent"><span></span></td>
83
+ <td class="sectionContent"><span></span></td>
84
+ </tr>
85
+
86
+ <tr><td colspan="4"><hr class="contactSeparator"></td></tr>
87
+
88
+ </table>
89
+ </body>
90
+ </html>
@@ -0,0 +1,158 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+ <html>
39
+ <head>
40
+ <SCRIPT LANGUAGE="JavaScript" SRC="http://sns-static.aolcdn.com/sns/3.5r2/js/mainValidations.js"></SCRIPT>
41
+
42
+
43
+ <script language="javascript" type="text/javascript">
44
+ prereqchecks('/badbrowser.psp?source=login&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us');
45
+ </script>
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ <script type="text/javascript">
54
+ <!--
55
+ var s_account="aolsnssignin,aolsvc";
56
+ //-->
57
+ </script>
58
+ <script type="text/javascript" src="https://sns-static.aolcdn.com/omni/H.8/omniunih.js"></script>
59
+ <script type="text/javascript">
60
+ <!--
61
+ s_265.linkInternalFilters="javascript:,aol.com";
62
+ s_265.server="my.screenname.aol.com";
63
+ s_265.pfxID="sso";
64
+ s_265.pageName="sso : init_login";
65
+ s_265.channel="us.snssignin";
66
+ s_265.prop1='ssologin';
67
+ s_265.prop12="/snsInit.jsp";
68
+ s_265.prop16="sns.webmail.aol.com";
69
+ s_265.prop17="std";
70
+ s_265.prop18="2";
71
+ s_265.prop19="wa3";
72
+ s_265.prop20="en-us";
73
+ s_265.prop21="AOLPortal";
74
+ s_265.prop22=".aol.com";
75
+ var s_code=s_265.t();
76
+ if(s_code)document.write(s_code);
77
+ //-->
78
+ </script>
79
+
80
+
81
+
82
+ <noscript>
83
+ <p class="snsSmallText"><b> We are sorry, but you will need to enable cookies and Javascript to use your Screen Name with this site.</b><br/> Click <a href="/badbrowser.psp?source=login&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us">here</a> if your browser does not automatically redirect you.</p><meta HTTP-EQUIV=Refresh CONTENT="0; URL=/badbrowser.psp?source=login&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us"/>
84
+ </noscript>
85
+ </head>
86
+ <body>
87
+
88
+ <SCRIPT LANGUAGE="JavaScript" SRC="http://sns-static.aolcdn.com/sns/3.5r2/js/window.js"></SCRIPT>
89
+ <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
90
+ var t;
91
+ var wsc_t;
92
+ var tryingWSC = 1;
93
+ var waitCounter = 0;
94
+ var tryingAIM = 1;
95
+ var MAX_WAIT_TIME = 15000;
96
+ function goToWaitPage() {
97
+ clearTimeout(t);
98
+ tryingAIM = 2;
99
+ if( tryingWSC == 0){
100
+ snsRedir("http://my.screenname.aol.com/_cqr/login/aimPrelogin.psp?seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us");
101
+ } else {
102
+ }
103
+ }
104
+ function goToLoginUrl() {
105
+ clearTimeout(t);
106
+ tryingAIM = 0;
107
+ if( tryingWSC == 0){
108
+ snsRedir("https://my.screenname.aol.com/_cqr/login/login.psp?mcState=initialized&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us");
109
+ } else {
110
+ }
111
+ }
112
+ function tryAIM() {
113
+ clearTimeout(wsc_t);
114
+ tryingWSC = 0;
115
+ if(tryingAIM == 1){
116
+ var timeout = '2000';
117
+ t=setTimeout("goToLoginUrl()",timeout);
118
+ window.defaultStatus=' ';
119
+ window.status=' ';
120
+ } else if(tryingAIM == 2){
121
+ goToWaitPage();
122
+ } else {
123
+ goToLoginUrl();
124
+ }
125
+ }
126
+ function continueLogin() {
127
+ tryingWSC = 0;
128
+ if( tryingAIM == 2 ) {
129
+ goToWaitPage();
130
+ } else {
131
+ goToLoginUrl();
132
+ }
133
+ }
134
+ wsc_t=setTimeout("continueLogin()",MAX_WAIT_TIME);
135
+ window.defaultStatus=' ';
136
+ window.status=' ';
137
+ </SCRIPT>
138
+ <!-- WSC Login - DISABLED -->
139
+ <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
140
+ tryingWSC = 0;
141
+ tryAIM();
142
+ </SCRIPT>
143
+ <!-- AIM Login - DISABLED -->
144
+ <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
145
+ // goto Login Page
146
+ tryingAIM = 0;
147
+ goToLoginUrl();
148
+ </SCRIPT>
149
+
150
+
151
+
152
+
153
+
154
+
155
+ </body>
156
+ </html>
157
+
158
+
@@ -0,0 +1,559 @@
1
+
2
+
3
+
4
+
5
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml:lang="en" lang="en">
6
+ <head>
7
+ <title>Free email address from AOL Mail</title>
8
+ <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"/>
9
+ <meta name="keywords" content="AOL Mail free web reliable easy IMAP inbox email industry leading antivirus virus spam protection antispam storage pictures photo calendar address calendar personal domain name Blackberry Treo Motorola Q Outlook Thunderbird buddy list access anywhere everywhere on the go personal domain drag and drop blog integration keyword search easy to use"/>
10
+ <meta name="description" content="Get a free email address from AOL now! You no longer need to be an AOL member to take advantage of great AOL Mail features such as industry-leading spam and virus protection, anytime-access on your mobile device, flexibility to work with other email clients using IMAP and more."/>
11
+ <link rel="stylesheet" type="text/css" media="screen" href="https://s.aolcdn.com/art/registration/snslanding_css.css"/>
12
+ <script language="javascript" type="text/javascript" src="https://s.aolcdn.com/art/registration/snslanding_js.js"><!--....--></script>
13
+ <link rel="stylesheet" type="text/css" media="screen" href="https://s.aolcdn.com/art/landing_pages/snslanding10_id1686.css"/>
14
+
15
+ <LINK href="https://sns-static.aolcdn.com/sns/3.5r2/style/snsMiniStyles.css" rel="stylesheet" type="text/css">
16
+ <style type="text/css">
17
+ #sns_MainContentDiv, #sns_MainContentDiv #snsLoginRow,#sns_LoginTitleBar,.sns_noTabs, #sns_NewLoginModule, #sns_LoginContentDiv,.sns_LoginTabs .selected,#sns_LoginTitleBar { color: #000000;background-color: #FFFFFF; }
18
+ #sns_Module #sns_MainContentDiv, #sns_Footer #sPipe, .sns_HeadlineBold, #sns_MainContentDiv label, #sns_MainContentDiv .sns_FieldLabel { color: #000000 }
19
+ #sns_TitleBar { background-color: #3333CC;border:1px solid #3333CC }
20
+ #sns_Module .sLnkSm, #sns_Module .sLnkMd, #sns_Module .sLnkLg, #sns_NewLoginModule .sLnkMd, #sns_NewLoginModule a{ color: #3333CC; }
21
+ #sns_MainContentDiv .sns_Text3, #sns_MainContentDiv td.sns_Text3 { color: #3399FF }
22
+ #sns_NewLoginModule {background-color:#FFFFFF; border:1px solid #3333CC; }
23
+ </style>
24
+ </head>
25
+ <body>
26
+ <div class="port_land">
27
+ <div class="lands">
28
+ <div id="othercontent">
29
+ <div class="aol_hatcontainer">
30
+ <script type="text/javascript">
31
+ //Overwrite Hat 2.0 min-width
32
+ var _aol_hat_commonstyle_ = '#aol_hat2 {min-width:100% !important; _width:100% !important;}';
33
+ var _sns_use_ssl_ = '1';
34
+ </script>
35
+ <script type="text/javascript" src="https://secure.aolhat.com/hat2/webmail_cayman2/jswrite.js"><!--hat jswrite is being included--></script>
36
+ </div>
37
+ <div class="brand">
38
+ <h1>
39
+ <img src="https://s.aolcdn.com/art/landing_pages/cayman_branding.gif" width="169" height="45" alt="FREE AOL Webmail" title="FREE AOL Webmail" border="0"/>
40
+ </h1>
41
+ <div class="logTrouble">
42
+ <a href="http://help.channels.aol.com/topic.adp?topicId=ART_219191&amp;ncid=AOLCMP00300000000128">Trouble Logging In?</a>
43
+ </div>
44
+ <div id="webBeacon" style="display:none;"><!--....--></div>
45
+ <script type="text/javascript">loc=document.getElementById('webBeacon');wBeacon = document.createElement("img");wBeacon.setAttribute('src', 'https://s.aolcdn.com/websuitebeacon/aol/en-us/BeaconLandingPage.html');wBeacon.style.height='1px';wBeacon.style.width='1px';loc.appendChild(wBeacon);</script>
46
+ <!--...--> </div>
47
+ </div>
48
+ <div class="landslt">
49
+ <div class="prim_promo">
50
+ <div class="contCopyTop"><!--....--></div>
51
+ <div class="contCopy">
52
+ <h2>Get your FREE email account<br/>
53
+ with unlimited storage! </h2>
54
+ <h3>Try FREE AOL Mail and we'll transfer your messages<br/>
55
+ and address book from your old email account automatically. </h3>
56
+ <h4>AOL Easy Transfer makes switching your email a snap.</h4>
57
+ <a class="buttonGet" href="https://new.aol.com/freeaolweb?promocode=824087&amp;promocode2=806077&amp;ncid=AOLCMP00300000000126">Get FREE AOL Mail</a>
58
+ <ul>
59
+ <li>Automatically copies your address book</li>
60
+ <li>Notifies all your friends of your new email address</li>
61
+ <li>Forwards emails sent to your old email address</li>
62
+ <li>Copies all your emails, attachments, even your folders</li>
63
+ </ul>
64
+ <a class="linkEasy" href="https://secure5.trueswitch.com/aolweb/?ncid=AOLCMP00300000000129">Transfer My Emails and Address Book Now</a>
65
+ <a class="linkLearnMore" href="http://discover.aol.com/memed/webmail/">Learn More</a>
66
+ <div class="clearme"><!--....--></div>
67
+ </div>
68
+ <div class="contCopyBot"><!--....--></div>
69
+ <div class="sellBlockLeft">
70
+ <p>Rather have a personalized email address that totally expresses who you are, like Emily@Wild4music.com?<strong>It's FREE.</strong>
71
+ <a class="sblButton" href="http://domains.aol.com?ncid=AOLCMP00300000000130">Find a Personalized Address</a>
72
+ </p>
73
+ <img src="https://s.aolcdn.com/art/landing_pages/bl_promo" width="59" height="60" alt="find a personalized address" title="find a personalized address"/>
74
+ <a class="sblLearnLink" href="http://discover.aol.com/memed/webmail/myeaddress.adp">Learn More</a>
75
+ </div>
76
+ <div class="sellBlockRight">
77
+ <h5>AIM<sup>&reg;</sup>
78
+ . Mail. Content. All in one window - New AOL Mail! </h5>
79
+ <img src="https://s.aolcdn.com/art/landing_pages/br_promo" width="158" height="83" alt="AOL Mail screen shot" title="AOL Mail screen shot"/>
80
+ <p>View all your messages on one page - check out new AOL Mail now.</p>
81
+ <a href="http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/index-noNav.htm?ncid=AOLCMP00300000000131">Take the Tour</a>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ <div class="landsrt">
86
+ <div class="login">
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+ <SCRIPT LANGUAGE="JavaScript" SRC="https://sns-static.aolcdn.com/sns/3.5r2/js/mainValidations.js"></SCRIPT>
131
+
132
+ <script language="javascript" type="text/javascript">
133
+ prereqchecks('/badbrowser.psp?source=login&mcState=initialized&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us');
134
+ </script>
135
+
136
+
137
+ <div id="sns_miniUiWidget" >
138
+ <div id="snsHelpBlk">
139
+ <span class="hdrText">Sign In</span>
140
+
141
+ <a id="snsHelpLnk" href="javascript:snsInfoPopUp(1,'https://my.screenname.aol.com/_cqr/help/infoPopUp.jsp?help=1')" alt="Help" tabindex="5">Help</a>
142
+
143
+ </div>
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <SCRIPT type="text/JavaScript" language="JavaScript">
238
+
239
+
240
+
241
+
242
+ function validateAolTab(loginForm){
243
+ var pwderr = new Array(4);
244
+ pwderr[RetVal.EMPTY_ERR]="You must enter a value for Password.";
245
+ pwderr[RetVal.MIN_ERR]="Password you entered is too short.";
246
+ pwderr[RetVal.MAX_ERR]="Password must not be longer than 16 characters.";
247
+ pwderr[RetVal.INVALID_ERR]="Password you entered is invalid. A Valid password should contain 6-16 letters or numbers.";
248
+ var result;
249
+ var loginId = loginForm.loginId;
250
+ stripOffAOLDomains(loginId);
251
+ if((/@/).test(loginId.value)) {
252
+ var err = new Array(4);
253
+ err[RetVal.EMPTY_ERR]="You must enter a value for E-mail Address.";
254
+ err[RetVal.MIN_ERR]="E-mail Address you entered is too short.";
255
+ err[RetVal.MAX_ERR]="E-mail Address must not be longer than 97 characters.";
256
+ err[RetVal.INVALID_ERR]="E-mail Address you entered is invalid. A valid E-mail address should look like: joe@aol.com. Please be sure that the E-mail Address doesn't contain any spaces.";
257
+ }
258
+ else {
259
+ var err = new Array(5);
260
+ err[RetVal.EMPTY_ERR]="You must enter a value for Screen Name.";
261
+ err[RetVal.MIN_ERR]="ScreenName you entered is too short.";
262
+ err[RetVal.MAX_ERR]="ScreenName must not be longer than 16 characters.";
263
+ err[RetVal.INVALID_ERR]="ScreenName you entered is invalid. A valid Screen Name consists of 3-16 characters and can contain letters, numbers, spaces, and must start with a letter (e.g., johndoe123). Please re-type your Screen Name.";
264
+ err[RetVal.ICQ_INVALID_ERR]="The ICQ UIN you entered is invalid. A valid ICQ UIN consists of 5-10 digits. Please re-type your ICQ UIN.";
265
+ }
266
+
267
+ result=snsCheckSignInForm(loginForm,err,pwderr);
268
+ return result;
269
+ }
270
+
271
+
272
+ function validateIcqTab(loginForm){
273
+ var pwderr = new Array(4);
274
+ pwderr[RetVal.EMPTY_ERR]="You must enter a value for Password.";
275
+ pwderr[RetVal.MIN_ERR]="Password you entered is too short.";
276
+ pwderr[RetVal.MAX_ERR]="Password must not be longer than 16 characters.";
277
+ pwderr[RetVal.INVALID_ERR]="Password you entered is invalid. A Valid password should contain 6-16 letters or numbers.";
278
+ var result;
279
+ var loginId = loginForm.loginId;
280
+ if((/@/).test(loginId.value)) {
281
+ var err = new Array(3);
282
+ err[RetVal.EMPTY_ERR]="Please enter an ICQ UIN or ICQ email alias";
283
+ err[RetVal.MIN_ERR]="ICQ e-mail alias you entered is invalid. A valid E-mail address should look like:joe@aol.com.";
284
+ err[RetVal.MAX_ERR]="E-mail Address must not be longer than 97 characters.";
285
+ err[RetVal.INVALID_ERR]="ICQ e-mail alias you entered is invalid. A valid E-mail address should look like:joe@aol.com.";
286
+ }
287
+ else {
288
+ var err = new Array(4);
289
+ err[RetVal.EMPTY_ERR]="Please enter an ICQ UIN or ICQ email alias";
290
+ err[RetVal.MIN_ERR]="An ICQ UIN is at least 5 numeric digits ";
291
+ err[RetVal.MAX_ERR]="ICQ UIN must not be more than 10 numeric digits";
292
+ err[RetVal.INVALID_ERR]="The ICQ UIN you entered is invalid. A valid ICQ UIN consists of 5-10 digits. Please re-type your ICQ UIN.";
293
+ }
294
+
295
+ result=checkIcqForm(loginForm,err,pwderr);
296
+ return result;
297
+ }
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+ </SCRIPT>
322
+
323
+
324
+ <div id="SLT" class="snslogintypes snslogintypes_content">
325
+
326
+
327
+ <div class="sns_noTabs"></div>
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+ <div class="content" id="SLT.1">
386
+ <div id="sns_LoginAol">
387
+ <form name="AOLLoginForm" method="POST" action="https://my.screenname.aol.com/_cqr/login/login.psp" onsubmit="return validateAolTab(this);">
388
+ <input type="hidden" name="sitedomain" value="sns.webmail.aol.com">
389
+ <input type="hidden" name="siteId" value="">
390
+ <input type="hidden" name="lang" value="en">
391
+ <input type="hidden" name="locale" value="us">
392
+ <input type="hidden" name="authLev" value="2">
393
+ <input type="hidden" name="siteState" value="ver%3A2%7Cac%3AWS%7Cat%3ASNS%7Cld%3Awebmail.aol.com%7Cuv%3AAOL%7Clc%3Aen-us">
394
+ <input type="hidden" name="isSiteStateEncoded" value="true">
395
+ <input type="hidden" name="mcState" value="initialized">
396
+ <input type="hidden" name="uitype" value="std">
397
+ <input type="hidden" name="use_aam" value="0">
398
+ <input type="hidden" name="_sns_fg_color_" value="">
399
+ <input type="hidden" name="_sns_err_color_" value="">
400
+ <input type="hidden" name="_sns_link_color_" value="">
401
+ <input type="hidden" name="_sns_width_" value="">
402
+ <input type="hidden" name="_sns_height_" value="">
403
+ <input type="hidden" name="_sns_bg_color_" value="">
404
+ <input type="hidden" name="offerId" value="">
405
+ <input type="hidden" name="seamless" value="novl">
406
+ <input type="hidden" name="regPromoCode" value="">
407
+ <input type="hidden" name="idType" value="SN">
408
+
409
+
410
+ <input type="hidden" name="usrd" value="5688031">
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+ <div id="snsmPswdRetry1"></div>
426
+
427
+
428
+
429
+
430
+ <label for="lgnId1" id="lgnId1lbl">Screen Name or E-mail:</label>
431
+
432
+
433
+
434
+ <input type="text" name="loginId" maxlength="97" size="25" tabindex="1" value="" id="lgnId1" class="inputBox">
435
+
436
+
437
+
438
+
439
+
440
+
441
+ <div id="snsmCreateAcctLnk"></div>
442
+
443
+
444
+
445
+ <label for="pwdId" alt="enter AOL password" id="pwdId1lbl">Password:</label>
446
+ <input type="password" name="password" maxlength="23" size="25" tabindex="2" value="" id="pwdId1" class="inputBox" alt="enter AOL password">
447
+
448
+ <a href="https://account.login.aol.com/opr/_cqr/opr/opr.psp?sitedomain=sns.webmail.aol.com&authLev=2&siteState=ver%3A2%7Cac%3AWS%7Cat%3ASNS%7Cld%3Awebmail.aol.com%7Cuv%3AAOL%7Clc%3Aen-us&lang=en&locale=us&seamless=novl" id="forgotpswdLnk" target="_top" class="snsmTinyText" tabindex="7" >Forgot Password</a>
449
+
450
+
451
+
452
+ <div id="rmbrBlk">
453
+ <input type="hidden" name="rememberMe" value="off">
454
+ </div>
455
+
456
+
457
+ <div class="alignBtnRt" id="sbmtAol">
458
+ <input type="submit" id="submitAol" value="Sign In" class="artzBtn def" tabindex="3" alt="Sign In" title="Sign In" />
459
+ </div>
460
+
461
+ <div id="snsmBotLinks">
462
+
463
+
464
+
465
+
466
+
467
+
468
+ </div>
469
+
470
+
471
+ </form>
472
+ </div>
473
+ </div>
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+ <div style="display:none;">none</div>
488
+
489
+ <script type="text/Javascript">
490
+ _sns_p("SLT.1").style.display="block";
491
+
492
+
493
+
494
+ if( document.getElementById("lgnId1")){document.getElementById("lgnId1").focus();}
495
+
496
+
497
+
498
+
499
+
500
+ </script>
501
+
502
+ </div> <!-- end SLT -->
503
+
504
+
505
+
506
+
507
+
508
+ </div>
509
+ <script type="text/javascript">
510
+ <!--
511
+ var s_account="aolsnssignin,aolsvc";
512
+ //-->
513
+ </script>
514
+ <script type="text/javascript" src="https://sns-static.aolcdn.com/omni/H.8/omniunih.js"></script>
515
+ <script type="text/javascript">
516
+ <!--
517
+ s_265.linkInternalFilters="javascript:,aol.com";
518
+ s_265.server="my.screenname.aol.com";
519
+ s_265.pfxID="sso";
520
+ s_265.pageName="sso : login";
521
+ s_265.channel="us.snssignin";
522
+ s_265.prop1='ssologin';
523
+ s_265.prop12="/snsUiDriver.jsp";
524
+ s_265.prop16="sns.webmail.aol.com";
525
+ s_265.prop17="lp";
526
+ s_265.prop18="2";
527
+ s_265.prop19="wa3";
528
+ s_265.prop20="en-us";
529
+ s_265.prop21="AOLPortal";
530
+ s_265.prop22=".aol.com";
531
+ var s_code=s_265.t();
532
+ if(s_code)document.write(s_code);
533
+ //-->
534
+ </script>
535
+ </div>
536
+ <div class="addl_promo">
537
+ <script type="text/javascript">r1=Math.round(Math.random()*1000000)//;</script>
538
+ <script type="text/javascript">document.write('<script type="text/javascript" src="https://eatps.web.aol.com:9001/open_web_adhoc?subtype=6915amp;r1='+r1+'">');document.write ('</scr'+'ipt>');</script>
539
+ </div>
540
+ </div>
541
+ </div>
542
+ <div class="footer">
543
+ <style type="text/css">#footerlinks{position:relative;display:block;font:10px arial,sans serif;color:#959494;margin:px 0px 0px 0px;}#footerlinks a, #footerlinks a:visited { color:#959494; text-decoration:none;}#footerlinks a:hover { text-decoration:underline; }</style>
544
+ <div id="footerlinks">
545
+ <a href="http://www.corp.aol.com/">AOL LLC.</a>
546
+ | <a href="http://downloads.channel.aol.com/windowsproducts">Download AOL</a>
547
+ | <a href="http://corp.aol.com/accessibility/">Accessibility Policy</a>
548
+ | <a href="http://www.aol.com/aolnetwork/terms_use.html">Terms of Use</a>
549
+ | <a href="http://www.aol.com/aolnetwork/aol_pp.html">Privacy Policy</a>
550
+ | <a href="http://www.aol.com/aolnetwork/trademarks.html">Trademarks</a>
551
+ | <a href="http://postmaster.aol.com/guidelines/bulk_email.html">Email Policy</a>
552
+ | <a href="http://advisor.aol.com/">Advertise With Us</a>
553
+ <br/>
554
+ Copyright 2007 AOL LLC. All Rights Reserved </div>
555
+ </div>
556
+ </div>
557
+ </body>
558
+ </html>
559
+