CINXE.COM

SIGN UP-CCTVPLUS

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SIGN UP-CCTVPLUS</title> <link href="/static/style/style_news.css" type="text/css" rel="stylesheet" /> <link href="/static/style/sexy/sexy.css" type="text/css" rel="stylesheet" /> <link href="/static/style/sexy-combo.css" type="text/css" rel="stylesheet" /> <script src="/static/js/jquery-1.11.3.min.js" type="text/javascript"></script> <script src="/static/js/index.js" type="text/javascript"></script> <script src="/static/js/icheck.min.js" type="text/javascript"></script> <script src="/static/js/top.js" type="text/javascript"></script> <script src="/static/js/jquery.sexy-combo.js" type="text/javascript"></script> <script src="/static/js/jquery.validate.min.js" type="text/javascript"></script> <style type="text/css"> label.error{ background: rgba(0, 0, 0, 0) url("img/img_2015090104.png") no-repeat scroll 10px 2px; color: #ed2122; display: inline-block; font-size: 12px; height: 20px; line-height: 20px; padding-bottom: 3px; padding-left: 3px; } </style> </head> <body> <div class="page_topbar"> <form action="login_toLogin.do" id="topForm"> <input id="currPath" type="hidden" name="redirectUrl" value=""/> <a href="https://www.cctvplus.com" title="cctv+"><img class="logo" src="/static/style/img/logo.png" alt="cctv+" /></a> <ul class="nav"> <li class="cur"><a href="https://www.cctvplus.com">HOME</a></li> <li><a href="https://www.cctvplus.com/news/latest.shtml">NEWS</a></li> <li><a href="https://www.cctvplus.com/live/preview.shtml">LIVE</a></li> <li><a href="https://www.cctvplus.com/archive/allArchive.shtml">ARCHIVE</a></li> <li><a href="https://www.cctvplus.com/exchange/allExchange.shtml">EXCHANGE</a></li> <!--<li><a href="http://www.cctvplus.com">LIVE</a></li>--> </ul> <div class="tools_box"> <div class="link_box"><a href="https://www.cctvplus.com/contactus.shtml">Contact Us</a>|<a href="https://www.cctvplus.com/aboutus.shtml">About Us</a></div> <div id="bar_login_box" class="bar_login_box"> <span class="signup_btn" onclick="goRedirect('/user/goSignUp.do');">Sign up</span> <span class="login_btn" onclick="submitTopForm('/login_toLogin.do');">Log in</span> </div> <div id="bar_uc_box" class="bar_uc_box"> <!-- <span class="order_car"></span> --> <div class="custom_sel_box" id="uscenter_sel_box"> <div class="custom_sel_text"></div> <span class="custom_sel_icon"></span> <ul class="custom_sel_list"> <li onclick="goRedirect('/user/toMyProfile.do');"><a href="#" >Profile</a></li> <li onclick="goRedirect('/userOrder/uorderList.do');"><a href="#">Archive Orders</a></li> <li onclick="goRedirect('/download/downloadList.do');"><a href="#">Download History</a></li> <li><a href="#" onclick="goRedirect('/user/toChangePwd.do');">Change Password</a></li> <li><a href="#" onclick="goRedirect('/subscribe/toSubPage.do');">Subscribe Manage</a></li> <li class="loginout" onclick="logout('/logout.do');">Sign out</li> </ul> <input type="hidden" class="custom_sel_val" name="" value="" /> </div> </div> <div class="clear"></div> </div> <div class="clear"></div> </form> </div> <div class="page_body"> <div class="vspace" style="height:40px;"></div> <div class="column_wrapper signup_page"> <div class="signup_info form_elemt_box"> <form action="signUpUser.do" id="signUpForm" method="post"> <div class="tit">Create an account?</div> <label>Username</label><span id="USERNAMEMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <input type="text" name="USERID" id="USERID" value="" class="textinp" onblur="usernameValid();"/><i class="red">*</i> <div class="vspace" style="height:16px;"></div> <label>Password</label><span id="PASSWORDMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <input type="password" name="PASSWORD" id="PASSWORD" value="" class="textinp" onblur="pwdValid();"/><i class="red">*</i> <div class="vspace" style="height:16px;"></div> <label>Confirm Password</label><span id="PASSWORD2MSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <input type="password" id="PASSWORD2" name="PASSWORD2" value="" class="textinp" onblur="pwd2Valid();"/><i class="red">*</i> <div class="vspace" style="height:16px;"></div> <label>First Name</label><span id="FIRSTNAMEMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <input type="text" id="FIRSTNAME" name="FIRSTNAME" value="" class="textinp" onblur="firstNameValid();"/><i class="red">*</i> <div class="vspace" style="height:16px;"></div> <label>Last Name</label><span id="LASTNAMEMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <input type="text" id="LASTNAME" name="LASTNAME" value="" class="textinp" onblur="lastNameValid();"/><i class="red">*</i> <div class="vspace" style="height:16px;"></div> <label>Company/Institution</label><span id="COMPANYMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <input type="text" id="COMPANY" name="COMPANY" value="" class="textinp" onblur="companyValid();"/><i class="red">*</i> <div class="vspace" style="height:16px;"></div> <label>Business E-mail</label><span id="EMAILMSG" class="mesgicon" style="display:none;"></span><span></span> <div class="clear"></div> <input type="text" id="EMAIL" name="EMAIL" value="" class="textinp"/><i class="red">*</i> <div class="vspace" style="height:16px;"></div> <label>Telephone Number</label><span id="TELEPHONEMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <input type="text" id="TELEPHONE" name="TELEPHONE" value="" class="textinp" onblur="teleValid();"/><i class="red">*</i> <div class="vspace" style="height:16px;"></div> <label>Country</label><span id="COUNTRYMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <!-- <div class="custom_sel_box" id="Countey_sel_box"> --> <!-- <div class="custom_sel_text">plese check one</div> <span class="custom_sel_icon"></span> <ul class="custom_sel_list"> <li class="option" ord_id="ord11111">#11111</li> <li class="option" ord_id="ord22222">#22222</li> <li class="option" ord_id="ord33333">#33333</li> </ul> <input type="hidden" class="custom_sel_val" name="" value="" /> --> <select id="COUNTRY" NAME="COUNTRY" > <option value="">Choose a Country...</option> <option value="1296">Andorra</option> <option value="1297">United Arab Emirates</option> <option value="1298">Afghanistan</option> <option value="1299">Antigua and Barbuda</option> <option value="1300">Anguilla</option> <option value="1548">In Air</option> <option value="1301">Albania</option> <option value="1302">Armenia</option> <option value="1303">Angola</option> <option value="1304">Antarctica</option> <option value="1305">Argentina</option> <option value="1306">American Samoa</option> <option value="1307">Austria</option> <option value="1308">Australia</option> <option value="1309">Aruba</option> <option value="1310">Åaland Islands</option> <option value="1311">Azerbaijan</option> <option value="1312">Bosnia and Herzegovina</option> <option value="1313">Barbados</option> <option value="1314">Bangladesh</option> <option value="1315">Belgium</option> <option value="1316">Burkina Faso</option> <option value="1317">Bulgaria</option> <option value="1318">Bahrain</option> <option value="1319">Burundi</option> <option value="1320">Benin</option> <option value="1321">Saint Barthélemy</option> <option value="1322">Bermuda</option> <option value="1323">Brunei Darussalam</option> <option value="1324">Bolivia</option> <option value="1325">Bonaire, Sint Eustatius and Saba</option> <option value="1326">Brazil</option> <option value="1327">Bahamas</option> <option value="1328">Bhutan</option> <option value="1329">Bouvet Island</option> <option value="1330">Botswana</option> <option value="1331">Belarus</option> <option value="1332">Belize</option> <option value="1333">Canada</option> <option value="1334">Cocos (Keeling) Islands</option> <option value="1335">Democratic Republic of Congo</option> <option value="1336">Central African Republic</option> <option value="1337">Republic of Congo</option> <option value="1338">Switzerland</option> <option value="1339">Côte d'Ivoire</option> <option value="1340">Cook Islands</option> <option value="1341">Chile</option> <option value="1342">Cameroon</option> <option value="1343">China</option> <option value="1344">Colombia</option> <option value="1345">Costa Rica</option> <option value="1346">Cuba</option> <option value="1347">Cape Verde</option> <option value="1348">Curaçao</option> <option value="1349">Christmas Island</option> <option value="1350">Cyprus</option> <option value="1351">Czech Republic</option> <option value="1352">Germany</option> <option value="1353">Djibouti</option> <option value="1354">Denmark</option> <option value="1355">Dominica</option> <option value="1356">Dominican Republic</option> <option value="1357">Algeria</option> <option value="1358">Ecuador</option> <option value="1359">Estonia</option> <option value="1360">Egypt</option> <option value="1361">Western Sahara</option> <option value="1362">Eritrea</option> <option value="1363">Spain</option> <option value="1364">Ethiopia</option> <option value="1365">Finland</option> <option value="1366">Fiji</option> <option value="1367">Falkland Islands (Malvinas)</option> <option value="1368">Micronesia</option> <option value="1369">Faroe Islands</option> <option value="1370">France</option> <option value="1371">Gabon</option> <option value="1372">United Kingdom</option> <option value="1373">Grenada</option> <option value="1374">Georgia</option> <option value="1375">French Guiana</option> <option value="1376">Guernsey</option> <option value="1377">Ghana</option> <option value="1378">Gibraltar</option> <option value="1379">Greenland</option> <option value="1380">Gambia</option> <option value="1381">Guinea</option> <option value="1382">Guadeloupe</option> <option value="1383">Equatorial Guinea</option> <option value="1384">Greece</option> <option value="1385">South Georgia and the South Sandwich Islands</option> <option value="1386">Guatemala</option> <option value="1387">Guam</option> <option value="1388">Guinea-Bissau</option> <option value="1389">Guyana</option> <option value="1390">Hong Kong, China</option> <option value="1391">Heard Island and McDonald Islands</option> <option value="1392">Honduras</option> <option value="1393">Croatia</option> <option value="1394">Haiti</option> <option value="1395">Hungary</option> <option value="1396">Indonesia</option> <option value="1397">Ireland</option> <option value="1398">Israel</option> <option value="1399">Isle of Man</option> <option value="1400">India</option> <option value="1401">British Indian Ocean Territory</option> <option value="1402">Iraq</option> <option value="1403">Iran</option> <option value="1404">Iceland</option> <option value="1405">Italy</option> <option value="1406">Jersey</option> <option value="1545">Jerusalem</option> <option value="1407">Jamaica</option> <option value="1408">Jordan</option> <option value="1409">Japan</option> <option value="1410">Kenya</option> <option value="1411">Kyrgyzstan</option> <option value="1412">Cambodia</option> <option value="1413">Kiribati</option> <option value="1414">Comoros</option> <option value="1415">Saint Kitts and Nevis</option> <option value="1416">Democratic People's Republic of Korea</option> <option value="1417">Republic of Korea</option> <option value="1418">Kuwait</option> <option value="1419">Cayman Islands</option> <option value="1420">Kazakhstan</option> <option value="1421">Laos</option> <option value="1422">Lebanon</option> <option value="1423">Saint Lucia</option> <option value="1424">Liechtenstein</option> <option value="1425">Sri Lanka</option> <option value="1426">Liberia</option> <option value="1427">Lesotho</option> <option value="1428">Lithuania</option> <option value="1429">Luxembourg</option> <option value="1430">Latvia</option> <option value="1431">Libya</option> <option value="1432">Morocco</option> <option value="1433">Monaco</option> <option value="1434">Moldova</option> <option value="1435">Montenegro</option> <option value="1436">Saint Martin (French part)</option> <option value="1437">Madagascar</option> <option value="1438">Marshall islands</option> <option value="1439">North Macedonia</option> <option value="1440">Mali</option> <option value="1441">Myanmar</option> <option value="1442">Mongolia</option> <option value="1443">Macao, China</option> <option value="1444">Northern Mariana Islands</option> <option value="1445">Martinique</option> <option value="1446">Mauritania</option> <option value="1447">Montserrat</option> <option value="1448">Malta</option> <option value="1449">Mauritius</option> <option value="1450">Maldives</option> <option value="1451">Malawi</option> <option value="1452">Mexico</option> <option value="1453">Malaysia</option> <option value="1454">Mozambique</option> <option value="1455">Namibia</option> <option value="1456">New Caledonia</option> <option value="1457">Niger</option> <option value="1458">Norfolk Island</option> <option value="1459">Nigeria</option> <option value="1460">Nicaragua</option> <option value="1461">Netherlands</option> <option value="1462">Norway</option> <option value="1463">Nepal</option> <option value="1464">Nauru</option> <option value="1465">Niue</option> <option value="1466">New Zealand</option> <option value="1467">Oman</option> <option value="1549">Others</option> <option value="1468">Panama</option> <option value="1469">Peru</option> <option value="1470">French Polynesia</option> <option value="1471">Papua New Guinea</option> <option value="1472">Philippines</option> <option value="1473">Pakistan</option> <option value="1474">Poland</option> <option value="1475">Saint Pierre and Miquelon</option> <option value="1476">Pitcairn Islands</option> <option value="1477">Puerto Rico</option> <option value="1478">Palestine, State of</option> <option value="1479">Portugal</option> <option value="1480">Palau</option> <option value="1481">Paraguay</option> <option value="1482">Qatar</option> <option value="1483">Réunion</option> <option value="1484">Romania</option> <option value="1485">Serbia</option> <option value="1486">Russia</option> <option value="1487">Rwanda</option> <option value="1488">Saudi Arabia</option> <option value="1489">Solomon Islands</option> <option value="1490">Seychelles</option> <option value="1491">Sudan</option> <option value="1492">Sweden</option> <option value="1546">At Sea</option> <option value="1493">Singapore</option> <option value="1494">Saint Helena, Ascension and Tristan da Cunha</option> <option value="1495">Slovenia</option> <option value="1496">Svalbard and Jan Mayen</option> <option value="1497">Slovakia</option> <option value="1498">Sierra Leone</option> <option value="1499">San Marino</option> <option value="1500">Senegal</option> <option value="1501">Somalia</option> <option value="1547">In Space</option> <option value="1502">Suriname</option> <option value="1503">South Sudan</option> <option value="1504">Sao Tome and Principe</option> <option value="1505">El Salvador</option> <option value="1506">Sint Maarten (Dutch part)</option> <option value="1507">Syrian Arab Republic</option> <option value="1508">Swaziland</option> <option value="1509">Turks and Caicos Islands</option> <option value="1510">Chad</option> <option value="1511">French Southern Territories</option> <option value="1512">Togo</option> <option value="1513">Thailand</option> <option value="1514">Tajikistan</option> <option value="1515">Tokelau</option> <option value="1516">Turkmenistan</option> <option value="1517">Tunisia</option> <option value="1518">Tunisia</option> <option value="1519">Tonga</option> <option value="4610">Timor-Leste</option> <option value="1520">Turkey</option> <option value="1521">Trinidad and Tobago</option> <option value="1522">Tuvalu</option> <option value="1523">Taiwan, China</option> <option value="1524">Tanzania, United Republic of</option> <option value="1525">Ukraine</option> <option value="1526">Uganda</option> <option value="1527">United States Minor Outlying Islands</option> <option value="1528">United States</option> <option value="1529">Uruguay</option> <option value="1530">Uzbekistan</option> <option value="1531">Holy See (Vatican City State)</option> <option value="2566">Various</option> <option value="1532">Saint Vincent and the Grenadines</option> <option value="1533">Venezuela, Bolivarian Republic of</option> <option value="1534">British Virgin Islands</option> <option value="1535">U.S. Virgin Islands</option> <option value="1536">Vietnam</option> <option value="1537">Vanuatu</option> <option value="1538">Wallis and Futuna</option> <option value="1539">Samoa</option> <option value="1540">Yemen</option> <option value="1541">Mayotte</option> <option value="1542">South Africa</option> <option value="1543">Zambia</option> <option value="1544">Zimbabwe</option> </select> <!-- </div> --> <div class="vspace" style="height:16px;"></div> <label>Code</label><span id="CODEMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <input type="text" name="CODE" id="CODE" value="" class="textinp" style="width:186px; vertical-align:middle; float:left;"/> <div class="code_box"><img id="codeImg" src="" width="98" height="36"/><span onclick="changeCode();">Refresh</span></div> <div class="vspace" style="height:25px;"></div> <span id="ACCEPTMSG" class="mesgicon" style="display:none;"></span> <div class="clear"></div> <label> <input name="ISACCEPT" id="ISACCEPT" value="1" type="checkbox" checked="checked" /> &nbsp;&nbsp;<a href="#" style="color:#666;" onclick="openReg();">I had read and accept <i style=" color:#ed2122;">User Agreement</i></a> </label> <div class="vspace" style="height:20px;"></div> <div class="col_btn" onclick="signUp();">Submit</div> <div class="vspace" style="height:20px;"></div> </form> </div> <div class="sign_link"> <p>Aready registered?</p> <a href="/login_toLogin.do" class="signup_btn">Log in</a> </div> <div class="clear"></div> </div> <div class="vspace" style="height:80px;"></div> </div> <div class="page_bottom"> <div class="page_bottom_cbox"> <div class="linkboxs"> <ul class="f_l"> <li> <p class="link_f"><a href="https://www.cctvplus.com/index.shtml">HOME</a></p> </li> <li> <p class="link_f"><a href="https://www.cctvplus.com/news/lastest.shtml">NEWS</a></p> <p class="link_c"><a href="https://www.cctvplus.com/news/flash.shtml">Flash</a></p> <p class="link_c"><a href="https://www.cctvplus.com/news/latest.shtml">Video</a></p> <p class="link_c"><a href="https://www.cctvplus.com/news/picture.shtml">Picture</a></p> <p class="link_c"><a href="https://www.cctvplus.com/news/text.shtml">Text</a></p> </li> <li> <p class="link_f"><a href="https://www.cctvplus.com/archive/allArchive.shtml">ARCHIVE</a></p> <p class="link_c"><a href="https://www.cctvplus.com/archive/allArchive.shtml">All archive</a></p> <p class="link_c"><a href="https://www.cctvplus.com/archive/allCollections.shtml">All collections</a></p> </li> <!-- <li> <p class="link_f"><a href="#">EXCHANGE</a></p> </li> --> <li> <p class="link_f"><a href="https://www.cctvplus.com/exchange/allExchange.shtml">EXCHANGE</a></p> <p class="link_c"><a href="https://www.cctvplus.com/exchange/economicWatch.shtml">Economic watch</a></p> <p class="link_c"><a href="https://www.cctvplus.com/exchange/AfricaLinkUnion.shtml">ALU</a></p> <p class="link_c"><a href="https://www.cctvplus.com/exchange/EnglishProgram.shtml">Today</a></p> <p class="link_c"><a href="https://www.cctvplus.com/exchange/Biztoday.shtml">Biztoday</a></p> <p class="link_c"><a href="https://www.cctvplus.com/exchange/Hoy.shtml">Hoy</a></p> <p class="link_c"><a href="https://www.cctvplus.com/exchange/Aujourd'hui.shtml">Aujourd'hui</a></p> <p class="link_c"><a href="https://www.cctvplus.com/exchange/videofupi.shtml">VideoFupi</a></p> <p class="link_c"><a href="https://www.cctvplus.com/exchange/allExchange.shtml">ALL EXCHANGE</a></p> </li> </ul> <p class="f_r"><a href="https://www.cctvplus.com/contactus.shtml">CONTACT US</a>|<a href="https://www.cctvplus.com/aboutus.shtml">ABOUT US</a></p> <div class="clear" style="height:50px;"></div> </div> <div class="clear" style="border-bottom:2px solid #3c434d;"></div> <div class="footer"> <div class="copy_right"> <p>CCTV Newscontent Co, Ltd. All rights reserved 2015&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Terms & Conditions , Privacy Poilcy</p> </div> <div class="sharebtns"> <span>FOLLOW US</span> <!-- <a href="https://www.facebook.com/profile.php?id=100008931394507" target='_blank' class="btn01"></a> --> <a href="https://www.facebook.com/CCTV-756877521031964" target='_blank' class="btn01"></a> <a href="https://twitter.com/CCTV_Plus" target='_blank' class="btn02"></a> <a href="https://www.linkedin.com/company/cctv-news-content" target='_blank' class="btn03"></a> <a href="https://www.youtube.com/channel/UCmv5DbNpxH8X2eQxJBqEjKQ" target='_blank' class="btn04"></a> </div> <div class="clear"></div> </div> </div> <div style="display:none"> <div class="login_box_win form_elemt_box" id="login_box_win"> <div class="win_tit">Login</div> <div class="inp_item clearfix"> <span class="lab">Usename</span><input class="textinp" id="username" type="text" value="" /> </div> <div class="inp_item clearfix"> <span class="lab">Password</span><input class="textinp" id="password" type="password" value="" /> </div> <div class="inp_item clearfix" style="padding-left:80px;"> <input type="checkbox" checked="checked" /> <label style="padding-left:10px; padding-bottom:0;">Remember me for 14 days</label> </div> <div class="inp_item clearfix" style="padding-left:80px;"> <div class="col_btn" id="login_in">Sign In</div> </div> <div class="inp_item clearfix" style="padding-left:80px; padding-right:32px;"> <a href="#" class="btn_01">Forhot password?</a><a href="#" class="btn_02">Sign Up</a> </div> </div> </div> <div style="display:none;"> <div class="modul_alert_box" id="modul_alert_box"> <div class="message_box"></div> <div class="message_box2"></div> <div class="btn_box"><span class="btn" onclick="$.colorbox.close();">OK</span></div> </div> </div> <script> $("#login_in").click(function(){ $.ajax({ //url:"https://192.168.168.106:8443/interface/ajaxLogin.do", url:"https://www.cctvplus.com:8443/interface/ajaxLogin.do", data:{"username":$("#username").val(),"password":$("#password").val()}, dataType:'jsonp', success : function (data){ if(data.result== -1){ alert('Logon failure') $("#password").val(""); } if(data.result == 1){ var text1 = $("#username").val(); $("#password").val(""); //调用用户信息 logout_status_box(text1); $.colorbox.close(); } if(data.result== 0){ alert('Verification code error') $("#password").val(""); } if(data.result== -2){ alert('Frozen') $("#password").val(""); } } }); }); $(".login_btn").click(function(){ //login_bar_fun() //window.location.href="https://192.168.168.106:8443/login_toLogin.do"; }); </script> </div> <script type="text/javascript"> //add wjj 邮箱jquery验证 $(function() { $("#signUpForm").validate({ rules:{ EMAIL:{ required:true, email:true } }, messages:{ EMAIL:{ required:"Please enter a Business E-mail.", email:"Business E-mail format is incorrect", } }, errorPlacement: function(error, element) { error.appendTo(element.prev().prev()); error.addClass("mesgicon"); } }); $("#EMAIL").keyup(function(){ $('#EMAILMSG').hide(); }); }); //add wjj end $(function(){ var hasUser = 'false'; //alert(hasUser); if(hasUser=='true'){ $("#bar_login_box").hide(); $("#bar_uc_box").show(); cusmot_select_fun("uscenter_sel_box"); }else{ $("#bar_login_box").show(); $("#bar_uc_box").hide(); } $('input').iCheck({ checkboxClass: 'icheckbox_square', increaseArea: '10%' }); cusmot_select_fun('Countey_sel_box'); //验证码 changeCode(); $("#COUNTRY").sexyCombo({ emptyText: "Choose a Country...",//空值 autoFill: true//自动填充 }); }); function genTimestamp() { var time = new Date(); return time.getTime(); } function changeCode() { $("#codeImg").attr("src", "/code.do?t=" + genTimestamp()); } function usernameValid(){ var userIDReg = /^[A-Za-z0-9_-]*$/g; var username = $("#USERID").val().replace(/(^\s*)|(\s*$)/g, ""); //alert('"'+username+'"'); if(username==''){ $("#USERNAMEMSG").html("Please enter your desired username."); $("#USERNAMEMSG").show(); $("#USERID").addClass("error"); //$("#USERID").focus(); return false; }else if(!userIDReg.test(username)){ //$("#USERNAMEMSG").html("Username must be number or char or _"); $("#USERNAMEMSG").html("Username contains characters that are not allowed."); $("#USERNAMEMSG").show(); $("#USERID").addClass("error"); //$("#USERID").focus(); return false; }else if(username.length>50){ $("#USERNAMEMSG").html("Username up to 50 characters."); $("#USERNAMEMSG").show(); $("#USERID").addClass("error"); //$("#USERID").focus(); return false; }else{ //alert("ajax~~~~"); //AJAX验重 $.ajax({ type: "POST", url: "usernameValid.do", data: {USERID : username}, dataType:'json', cache: false, async:false, success: function(data){ if(data.result!=undefined && data.result=='success'){ $("#USERNAMEMSG").hide(); $("#USERID").removeClass("error"); }else{ $("#USERNAMEMSG").html("This username is already being used."); $("#USERNAMEMSG").show(); $("#USERID").addClass("error"); return false; } } }); } } function pwdValid(){ var password = $("#PASSWORD").val(); var numCount =0; var smallerCount=0; var binggerCount=0; for(var i= 0;i<password.length;i++){ var p = password.substr(i,1).charCodeAt(); if(p>=48 && p<=57){ numCount++; } if(p>=97 && p<=122){ smallerCount++; } if(p>=65 && p<=90){ binggerCount++; } } if($("#PASSWORD").val()==""){ $("#PASSWORDMSG").html("Please specify a password"); $("#PASSWORDMSG").show(); $("#PASSWORD").addClass("error"); return false; }else if(password.length <6){ $("#PASSWORDMSG").html("Password must be at least 6 characters"); $("#PASSWORDMSG").show(); $("#PASSWORD").addClass("error"); return false; }else if(numCount==0){ $("#PASSWORDMSG").html("Password must be have numbers"); $("#PASSWORDMSG").show(); $("#PASSWORD").addClass("error"); return false; }else if(smallerCount==0 || binggerCount==0){ $("#PASSWORDMSG").html("Password must be have both lowercase and uppercase letters"); $("#PASSWORDMSG").show(); $("#PASSWORD").addClass("error"); return false; }else{ $("#PASSWORDMSG").hide(); $("#PASSWORD").removeClass("error"); } } function pwd2Valid(){ if($("#PASSWORD2").val()!=$("#PASSWORD").val()){ $("#PASSWORD2MSG").html("These passwords don't match."); $("#PASSWORD2MSG").show(); $("#PASSWORD2").addClass("error"); //$("#PASSWORD2").focus(); return false; }else{ $("#PASSWORD2MSG").hide(); $("#PASSWORD2").removeClass("error"); } } function firstNameValid(){ if($("#FIRSTNAME").val()==""){ $("#FIRSTNAMEMSG").html("Please enter a first name."); $("#FIRSTNAMEMSG").show(); $("#FIRSTNAME").addClass("error"); //$("#FIRSTNAME").focus(); return false; }else if($("#FIRSTNAME").val().length>50){ $("#FIRSTNAMEMSG").html("First Name up to 50 characters."); $("#FIRSTNAMEMSG").show(); $("#FIRSTNAME").addClass("error"); //$("#FIRSTNAME").focus(); return false; }else{ $("#FIRSTNAMEMSG").hide(); $("#FIRSTNAME").removeClass("error"); } } function lastNameValid(){ if($("#LASTNAME").val()==""){ $("#LASTNAMEMSG").html("Please enter a last name."); $("#LASTNAMEMSG").show(); $("#LASTNAME").addClass("error"); //$("#LASTNAME").focus(); return false; }else if($("#LASTNAME").val().length>50){ $("#LASTNAMEMSG").html("Last Name up to 50 characters."); $("#LASTNAMEMSG").show(); $("#LASTNAME").addClass("error"); //$("#LASTNAME").focus(); return false; }else{ $("#LASTNAMEMSG").hide(); $("#LASTNAME").removeClass("error"); } } function emailValid(){ var emainReg=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; var email = $("#EMAIL").val().replace(/(^\s*)|(\s*$)/g, ""); if(email==""){ $("#EMAILMSG").html("Please enter a Business E-mail."); $("#EMAILMSG").show(); $("#EMAIL").addClass("error"); //$("#EMAIL").focus(); return false; }else if(!emainReg.test(email)){ $("#EMAILMSG").html("Business E-mail format is incorrect"); $("#EMAILMSG").show(); $("#EMAIL").addClass("error"); //$("#EMAIL").focus(); return false; }else{ //AJAX验重 $.ajax({ type: "POST", url: "emailValid.do", data: {EMAIL : email}, dataType:'json', cache: false, success: function(data){ if(data.result!=undefined && data.result=='success'){ $("#EMAILMSG").hide(); $("#EMAIL").removeClass("error"); }else{ $("#EMAILMSG").html("This email address is already being used."); $("#EMAILMSG").show(); $("#EMAIL").addClass("error"); return false; } } }); } } function companyValid(){ if($("#COMPANY").val()==''){ $("#COMPANYMSG").html("Please enter a Company."); $("#COMPANYMSG").show(); $("#COMPANY").addClass("error"); return false; }else{ $("#COMPANYMSG").hide(); $("#COMPANY").removeClass("error"); } } function teleValid(){ if($("#TELEPHONE").val()==''){ $("#TELEPHONEMSG").html("Please enter a Telephone Number."); $("#TELEPHONEMSG").show(); $("#TELEPHONE").addClass("error"); }else if($("#TELEPHONE").val()!='' && $("#TELEPHONE").val().length >50){ $("#TELEPHONEMSG").html("Telephone Number up to 50 characters."); $("#TELEPHONEMSG").show(); $("#TELEPHONE").addClass("error"); //$("#TELEPHONE").focus(); return false; }else{ $("#TELEPHONEMSG").hide(); $("#TELEPHONE").removeClass("error"); } } function signUp(){ var userIDReg = /^[A-Za-z0-9_-]*$/g; var username = $("#USERID").val().replace(/(^\s*)|(\s*$)/g, ""); if(username==''){ $("#USERNAMEMSG").html("Please enter your desired username."); $("#USERNAMEMSG").show(); $("#USERID").addClass("error"); $("#USERID").focus(); return false; }else if(!userIDReg.test(username)){ //$("#USERNAMEMSG").html("Username must be number or char or _"); $("#USERNAMEMSG").html("Username contains characters that are not allowed."); $("#USERNAMEMSG").show(); $("#USERID").addClass("error"); $("#USERID").focus(); return false; }else if(username.length>50){ $("#USERNAMEMSG").html("Username up to 50 characters."); $("#USERNAMEMSG").show(); $("#USERID").addClass("error"); $("#USERID").focus(); return false; }else{ $("#USERNAMEMSG").hide(); $("#USERID").removeClass("error"); } var pwd = $("#PASSWORD").val(); userIDReg.lastIndex=0; if($("#PASSWORD").val()==""){ $("#PASSWORDMSG").html("Please specify a password."); $("#PASSWORDMSG").show(); $("#PASSWORD").addClass("error"); $("#PASSWORD").focus(); return false; }else if(!userIDReg.test(pwd) || pwd.length<8){ $("#PASSWORDMSG").html("Password must be at least 8 characters,and have letters or numbers."); $("#PASSWORDMSG").show(); $("#PASSWORD").addClass("error"); $("#PASSWORD").focus(); return false; }else{ $("#PASSWORDMSG").hide(); $("#PASSWORD").removeClass("error"); } if($("#PASSWORD2").val()!=$("#PASSWORD").val()){ $("#PASSWORD2MSG").html("These passwords don't match."); $("#PASSWORD2MSG").show(); $("#PASSWORD2").addClass("error"); $("#PASSWORD2").focus(); return false; }else{ $("#PASSWORD2MSG").hide(); $("#PASSWORD2").removeClass("error"); } if($("#FIRSTNAME").val()==""){ $("#FIRSTNAMEMSG").html("Please enter a first name."); $("#FIRSTNAMEMSG").show(); $("#FIRSTNAME").addClass("error"); $("#FIRSTNAME").focus(); return false; }else if($("#FIRSTNAME").val().length>50){ $("#FIRSTNAMEMSG").html("First Name up to 50 characters."); $("#FIRSTNAMEMSG").show(); $("#FIRSTNAME").addClass("error"); $("#FIRSTNAME").focus(); return false; }else{ $("#FIRSTNAMEMSG").hide(); $("#FIRSTNAME").removeClass("error"); } if($("#LASTNAME").val()==""){ $("#LASTNAMEMSG").html("Please enter a last name."); $("#LASTNAMEMSG").show(); $("#LASTNAME").addClass("error"); $("#LASTNAME").focus(); return false; }else if($("#LASTNAME").val().length>50){ $("#LASTNAMEMSG").html("Last Name up to 50 characters."); $("#LASTNAMEMSG").show(); $("#LASTNAME").addClass("error"); $("#LASTNAME").focus(); return false; }else{ $("#LASTNAMEMSG").hide(); $("#LASTNAME").removeClass("error"); } if($("#COMPANY").val()==''){ $("#COMPANYMSG").html("Please enter a Company."); $("#COMPANYMSG").show(); $("#COMPANY").addClass("error"); $("#COMPANY").focus(); return false; }else{ $("#COMPANYMSG").hide(); $("#COMPANY").removeClass("error"); } var emainReg=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; var email = $("#EMAIL").val().replace(/(^\s*)|(\s*$)/g, ""); if(email==""){ $("#EMAILMSG").html("Please enter a Business E-mail."); $("#EMAILMSG").show(); $("#EMAIL").addClass("error"); $("#EMAIL").focus(); return false; }else if(!emainReg.test(email)){ $("#EMAILMSG").html("Business E-mail format is incorrect"); $("#EMAILMSG").show(); $("#EMAIL").addClass("error"); $("#EMAIL").focus(); return false; }else{ $("#EMAILMSG").hide(); $("#EMAIL").removeClass("error"); } if($("#TELEPHONE").val()==''){ $("#TELEPHONEMSG").html("Please enter a Telephone Number."); $("#TELEPHONEMSG").show(); $("#TELEPHONE").addClass("error"); $("#TELEPHONE").focus(); return false; }else if($("#TELEPHONE").val()!='' && $("#TELEPHONE").val().length >50){ $("#TELEPHONEMSG").html("Telephone Number up to 20 characters."); $("#TELEPHONEMSG").show(); $("#TELEPHONE").addClass("error"); $("#TELEPHONE").focus(); return false; }else{ $("#TELEPHONEMSG").hide(); $("#TELEPHONE").removeClass("error"); } if($("#CODE").val()==""){ $("#CODEMSG").html("Please enter the characters you see."); $("#CODEMSG").show(); $("#CODE").addClass("error"); $("#CODE").focus(); return false; }else{ $("#CODEMSG").hide(); $("#CODE").removeClass("error"); } //alert($("#ISACCEPT").is(':checked')); if(!$("#ISACCEPT").is(':checked')){ $("#ACCEPTMSG").html("you must accept the User Agreement"); $("#ACCEPTMSG").show(); return false; }else{ $("#ACCEPTMSG").hide(); } var errorMsg = ""; //验证用户名、邮箱 $.ajax({ type: "POST", url: "checkUser.do", data: $("#signUpForm").serialize(), dataType:'json', cache: false, success: function(data){ if("success" == data.result){ //提交表单注册用户 $("#signUpForm").submit(); }else { if("userIDerror" == data.result){//用户名已存在 $("#USERNAMEMSG").html("This username is already being used."); $("#USERNAMEMSG").show(); $("#USERID").addClass("error"); $("#USERID").focus(); }else if("emailerror"==data.result){ $("#EMAILMSG").html("This email address is already being used."); $("#EMAILMSG").show(); //$("#EMAILMSG").addClass("mesgicon"); $("#EMAIL").addClass("error"); $("#EMAIL").focus(); }else if("codeerror" == data.result){ $("#CODEMSG").html("The characters are not match with the picture."); $("#CODEMSG").show(); $("#CODE").addClass("error"); $("#CODE").focus(); }else if("agreementerror" == data.result){ $("#ACCEPTMSG").html("you must accept the User Agreement"); $("#ACCEPTMSG").show(); }else{ $("#USERNAMEMSG").html("sign up Error,"); $("#USERNAMEMSG").show(); $("#USERNAME").focus(); } changeCode(); } } }); } function openReg(){ window.open('http://www.cctvplus.com/Terms.shtml'); } </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10