Вот функция, теперь такой глюк выскакивает на последнем ифе.
function check_vendor_new_user(){
var checkboxes = $('.svuf_checkbox');
var checkbox_checked = 0;
for (var i in checkboxes) {
if (checkboxes[i].checked) checkbox_checked = 1;
}
var lvalue = $('#login').val();
log_checked = check_vendor_user_login(lvalue);
if (!log_checked) {
alert('Please, choose another login.');
return false;
}
if( document.send_vendor_user_form.company.value &&
document.send_vendor_user_form.home_page.value &&
(document.send_vendor_user_form.radioSet[0].checked || document.send_vendor_user_form.radioSet[1].checked || document.send_vendor_user_form.radioSet[2].checked) &&
document.send_vendor_user_form.position.value &&
document.send_vendor_user_form.name.value &&
document.send_vendor_user_form.second_name.value &&
document.send_vendor_user_form.email.value &&
document.send_vendor_user_form.phone1.value &&
document.send_vendor_user_form.phone2.value &&
document.send_vendor_user_form.country.value &&
document.send_vendor_user_form.state.value &&
document.send_vendor_user_form.city.value &&
document.send_vendor_user_form.zip.value &&
document.send_vendor_user_form.adres.value &&
document.send_vendor_user_form.pas.value &&
checkbox_checked){
return true;
} else {
alert('Please fill all * fields correctly.');
return false;
}
}