// Validation functions function validateNumber(field, msg, min, max) { // checks to make sure numbers are a certian length if (!min) { min = 0 } if (!max) { max = 255 } if (!field.value || field.value.length < min || field.value.length > max) { alert(msg); field.focus(); field.select(); return false; } return true; } function validateString(field, msg, min, max) { // check to make sure that strings are the right length if (!min) { min = 1 } if (!max) { max = 65535 } if (!field.value || field.value.length < min || field.value.length > max) { alert(msg); return false; } return true; } function validateEmail(email, msg, optional) { // checks to make sure the email is in proper format if (!email.value && optional) { return true; } var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z]){2,}$/; if (!re_mail.test(email.value)) { alert(msg); email.focus(); email.select(); return false; } return true; } function validateRadio(radio, msg){ // checks the radio buttons var radioSelected = false; for (i = 0; i < radio.length; i++) { if (radio[i].checked) radioSelected = true; } if (!radioSelected) { alert(msg); return false; } }
|
|
Infoblox WinConnect Live Demo Request
Please fill in the following fields to request a demonstration with Infoblox's WinConnect product expert.
* Denotes a required field.
|