Каждый знает компанию AVON, но не каждый знает ее ВОЗМОЖНОСТИ!
Почему команда AvonDiscont?
Каждый из вас для нас дорог и это основа нашей репутации!
Нас рекомендуют
Мы лидирующая команда в России
Мы на связи 24/7
Мы предлагаем:
Построить собственный бизнес
Свободный график работы
Стать нашим партнером
Уникальную систему работы
и готовый алгоритм
Заработную плату на банковскую карту
Карьерный рост
Присоединяйся, стань частью нашей дружной команды прямо сейчас
Акции текущего каталога!

Анкета не заполнена
Еще нужно заполнить следующие поля:
Отправить анкету с недостающими данными?
$(document).ready(function () {
var form = $('#anketa'); var submit = $('#sendform'); $('#anketasend').val('y');
$('.anketa3 input[type=\'text\'], .anketa3 textarea').focusout(function(o) {
$('.example').fadeOut(00);
if ($(this).val().trim() == '' || $(this).val() == $(this).attr('df')) { $(this).removeClass('inputfield'); $(this).val($(this).attr('df')); } else { $(this).addClass('inputfield'); console.log('ставим стиль для '+$(this).attr('id') + ': ' + $(this).attr('class')); }
$(this).removeClass('activeinput');
})
$('.anketa3 input[type=\'text\'], .anketa3 textarea, .anketa3 select').focusout(function(o) {
if ($.cookie('anketafields')) anketafields = JSON.parse($.cookie('anketafields')) else anketafields = {}
if ($(this).val().trim() != $(this).attr('df')) { anketafields[$(this).attr('name')] = $(this).val().trim();
$.cookie('anketafields', JSON.stringify(anketafields)); }
})
form.on('submit', function(e) { e.preventDefault(); // prevent default form submit
$.ajax({ url: '', type: 'POST', dataType: 'html', data: form.serialize(), beforeSend: function() { submit.html('Sending....'); }, success: function(data) { //alert2.html(data).fadeIn(); //form.trigger('reset'); //alert(data) //alert($('#nocompletesend').val())
if ($('#nocompletesend').val() == 'y') { $.removeCookie('anketafields', { path: '' }); location.href = '/register/?completed'; } }, error: function(e) { console.log(e) } }); });
$('.anketa3 input[type=\'text\'], .anketa3 textarea').focus(function(o) { $(this).addClass('activeinput'); if ($(this).val()== $(this).attr('df')) { $(this).val('') $(this).addClass('activeinput');
if ($(this).attr('example')) { $('.example .exampletext').html($(this).attr('example')); $('.example').css('top', $(this).offset().top + $(this).height() + 5); $('.example').css('left', $(this).offset().left); $('.example').fadeIn(100); } } })
$('#sendform2').click(function() { req_fields = ['name_','surname','otch','date_b','mob_phone','email_p','ser','num','kod_pod','date_v','kem_v','ind_pr','pr_reg','subreg_pr','city_pr','street_pr','home_pr','build_pr','flat_pr','region','city','choosePost1', 'who', 'social']
formok = true; errtext = ''; for (i=0; i
' else return '' }
if (id == 'city') { if ($('.anketa3 #'+id).prop('selectedIndex') == 0) return '— ' + ' Населенный пункт выдачи
' else return '' }
if (id == 'choosePost1') { if ($('.anketa3 #'+id).prop('selectedIndex') == 0) return '— ' + ' Пункт выдачи продукции
' else return '' }
if (id == 'pr_reg') { if ($('.anketa3 #'+id).prop('selectedIndex') == 0) return '— ' + ' Пункт выдачи продукции
' else return '' }
if (id == 'reg_reg') { if ($('.anketa3 #'+id).prop('selectedIndex') == 0) return '— ' + ' Пункт выдачи продукции
' else return '' }
if ($( '.anketa3 #'+id).val().trim() == $('.anketa3 #'+id).attr('df').trim()) { return '— ' + $('.anketa3 #'+id).attr('df').trim() + '
'; }
return ''; }
$(function(){ $( '.anketa3 #date_v').datepicker({ inline: true, dateFormat: 'dd.mm.yy', showOtherMonths: true, dayNamesMin: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'], monthNames: [ 'Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь' ], firstDay: 1, changeYear: true, yearRange: '1940:2016', onSelect: function(curDate, instance){ if( curDate != instance.lastVal ){ $(this).addClass('inputfield'); $(this).focusout(); $( '.anketa3 #date_v').val(curDate); $( '.anketa3 #date_v').focusout(); } } }); });
$('.anketa3 select').change(function() { if ($(this).prop('selectedIndex') != 0) { $(this).addClass('selectedselect') } else { $(this).removeClass('selectedselect'); } })
$(function(){ $( '.anketa3 #date_b').datepicker({ inline: true, dateFormat: 'dd.mm.yy', showOtherMonths: true, dayNamesMin: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'], monthNames: [ 'Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь' ], firstDay: 1, changeYear: true, yearRange: '1910:2010', onSelect: function(curDate, instance){ if( curDate != instance.lastVal ){ $(this).addClass('inputfield'); $( '.anketa3 #date_b').val(curDate); $( '.anketa3 #date_b').focusout(); } } }); });
function copyaddr() { if ($('#ind_pr').val() != $('#ind_pr').attr('df')) { $('#ind_reg').val($('#ind_pr').val());$('#ind_reg').addClass('inputfield'); $('#ind_reg').focusout()} if ($('#ind_pr').prop('selectedIndex') != 0) { $('#reg_reg').val($('#pr_reg').val()); $('#reg_reg').addClass('selectedselect'); $('#reg_reg').focusout()} if ($('#subreg_pr').val() != $('#subreg_pr').attr('df')) { $('#subreg_reg').val($('#subreg_pr').val()); $('#subreg_reg').addClass('inputfield'); $('#subreg_reg').focusout()} if ($('#city_pr').val() != $('#city_pr').attr('df')) { $('#city_reg').val($('#city_pr').val()); $('#city_reg').addClass('inputfield'); $('#city_reg').focusout()} if ($('#street_pr').val() != $('#street_pr').attr('df')) { $('#street_reg').val($('#street_pr').val()); $('#street_reg').addClass('inputfield'); $('#street_reg').focusout()} if ($('#home_pr').val() != $('#home_pr').attr('df')) { $('#home_reg').val($('#home_pr').val()); $('#home_reg').addClass('inputfield'); $('#home_reg').focusout()} if ($('#build_pr').val() != $('#build_pr').attr('df')) { $('#build_reg').val($('#build_pr').val()); $('#build_reg').addClass('inputfield'); $('#build_reg').focusout()} if ($('#flat_pr').val() != $('#flat_pr').attr('df')) { $('#flat_reg').val($('#flat_pr').val()); $('#flat_reg').addClass('inputfield'); $('#flat_reg').focusout()} }
$('.anketa3 .td .radio1').click(function(){ $('#chkPriorRep1').prop('checked', true); }) $('.anketa3 .td .radio2').click(function(){ $('#chkPriorRep2').prop('checked', true); }) $('.anketa3 .td .radio3').click(function(){ $('#chkPriorRep3').prop('checked', true); })
$('#sameaddr').change(function() { if ($('#sameaddr').is(':checked')) { copyaddr() } });
//$('.anketa3 .radio1').parent().find('input').prop('checked', true);
$('.anketa3 .chbox').click(function() { if ($('.anketa3 #sameaddr').is(':checked')) { $('.anketa3 #sameaddr').removeAttr('checked'); } else { $('.anketa3 #sameaddr').prop('checked','true') copyaddr(); } })
function getajax(q, f, selected_adr ) { //q = encodeURI(q);
$.get( '/wp-content/plugins/avon/pv.php', q, function (result) {
if (result.type == 'error') { alert('error'); return(false); } else { if (f == '#city') select_text = 'Населенный пункт' else if (f == '#choosePost1') select_text = 'Почтовое отделение ' else if (f == '#choosePost2') select_text = 'Выберите почтовое отделение по улице '
var options = ('