// For Email Validation function validateEmail(objField, strLabel, flagCheckNull){ if(flagCheckNull && objField.value == ""){ alert("Please enter " + strLabel); objField.focus(); return false; } reg = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; if(!reg.test(objField.value)){ alert("Invalid " + strLabel + ". Please enter again."); objField.focus(); objField.select(); return false; } return true; } // For checking whether field is empty or not function notEmpty(objField, strLabel, blSelField, blAlertNotReq) { var flagReturn = false; for (i=0; i