11.08.2016 82 Views

Юридическая фирма в Киеве: как правильно выбрать опытного юриста и не прогадать?

Юридическая фирма в Киеве: как правильно выбрать опытного юриста и не прогадать?//form validation function validateName(fld) { "use strict"; var error = ""; if (fld.value === '' || fld.value === 'Nickname' || fld.value === 'Enter Your Name..' || fld.value === 'Your Name..') { error = "You did not enter your first name."; } else if ((fld.value.length < 2) || (fld.value.length > 200)) { error = "First name is the wrong length."; } return error; } function validateEmail(fld) { "use strict"; var error=""; var illegalChars = /^[^@]+@[^@.]+\.[^@]*\w\w$/; if (fld.value === "") { error = "You did not enter an email address."; } else if ( fld.value.match(illegalChars) === null) { error = "The email address contains illegal characters."; } return error; } function valName(text) { "use strict"; var error = ""; if (text === '' || text === 'Nickname' || text === 'Enter Your Name..' || text === 'Your Name..') { error = "You did not enter Your First Name."; } else if ((text.length < 2) || (text.length > 50)) { error = "First Name is the wrong length."; } return error; } function valEmail(text) { "use strict"; var error=""; var illegalChars = /^[^@]+@[^@.]+\.[^@]*\w\w$/; if (text === "") { error = "You did not enter an email address."; } else if ( text.match(illegalChars) === null) { error = "The email address contains illegal characters."; } return error; } function validateMessage(fld) { "use strict"; var error = ""; if (fld.value === '') { error = "You did not enter Your message."; } else if (fld.value.length < 3) { error = "The message is to short."; } return error; } function validatecheckbox() { "use strict"; var error = "Please select at least one checkbox!"; return error; }