function verify() {
var themessage = &quot;You are required to complete the following fields:
&quot;;
var emailRegxp = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/;
if (emailRegxp.test(document.lm_form.email_address.value) != true) {
themessage = themessage + &quot;Email Address
&quot;;
}
if (document.lm_form.firstname.value==&quot;&quot;) {
themessage = themessage + &quot;First Name
&quot;;
}
if (document.lm_form.lastname.value==&quot;&quot;) {
themessage = themessage + &quot;Last Name
&quot;;
}
if (document.lm_form.company.value==&quot;&quot;) {
themessage = themessage + &quot;Company Name
&quot;;
}
tmpOption = -1;
for (i=document.lm_form.role.length-1; i &gt; -1; i--) {
if (document.lm_form.role[i].checked) {
tmpOption = i;
}
}
if (tmpOption == -1) {
themessage = themessage + &quot;Organizational Role
&quot;;
}
tmpOption = -1;
for (i=document.lm_form.num_employees.length-1; i &gt; -1; i--) {
if (document.lm_form.num_employees[i].checked) {
tmpOption = i;
}
}
if (tmpOption == -1) {
themessage = themessage + &quot;Number of Employees
&quot;;
}
if (eval('document.lm_form.industry.selectedIndex')==0) {
themessage = themessage + &quot;Industry
&quot;;
}
if (themessage == &quot;You are required to complete the following fields:
&quot;) {
document.lm_form.submit();
} else {
alert(themessage);
return false;
}
}
