&lt;style type=text/css&gt;
  label.sfs {clear:left;margin:6px 0;width:45%;}
  input.sfs {width:45%;height:20px;margin:4px 0;}
  input.sfscaptcha {width:5%;height:18px;margin:4px 0;}
  textarea.sfs {clear:both;width:80%;height:75px;margin:10px 0;}
&lt;/style&gt;


&lt;div id=&quot;w2lerrors&quot;&gt;&lt;/div&gt;&lt;form method=&quot;POST&quot; onsubmit=&quot;return valw2l()&quot;&gt;


&lt;label class=&quot;sfs&quot; id=&quot;label_first_name&quot;&gt;First Name&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;first_name&quot; maxlength=&quot;40&quot; name=&quot;first_name&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label class=&quot;sfs&quot; id=&quot;label_last_name&quot;&gt;Last Name&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;last_name&quot; maxlength=&quot;80&quot; name=&quot;last_name&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label class=&quot;sfs&quot; id=&quot;label_company&quot;&gt;Company&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;company&quot; maxlength=&quot;40&quot; name=&quot;company&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label class=&quot;sfs&quot; id=&quot;label_city&quot;&gt;City&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;city&quot; maxlength=&quot;40&quot; name=&quot;city&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label class=&quot;sfs&quot; id=&quot;label_state&quot;&gt;State/Province&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;state&quot; maxlength=&quot;20&quot; name=&quot;state&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label class=&quot;sfs&quot; id=&quot;label_zip&quot;&gt;Zip&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;zip&quot; maxlength=&quot;20&quot; name=&quot;zip&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label class=&quot;sfs&quot; id=&quot;label_email&quot;&gt;Email&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;email&quot; maxlength=&quot;80&quot; name=&quot;email&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label class=&quot;sfs&quot; id=&quot;label_phone&quot;&gt;Phone&lt;/label&gt;&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;phone&quot; maxlength=&quot;40&quot; name=&quot;phone&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
eGroup Interest:&lt;br&gt;&lt;input class=&quot;sfs&quot;  id=&quot;00NA0000004JDED&quot; name=&quot;00NA0000004JDED&quot; type=&quot;checkbox&quot; value=&quot;1&quot; /&gt;&lt;br&gt;

&lt;br&gt;&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&gt;&lt;style type=text/css&gt;
.w2lerror {
 	color: #FF0000;
}
span {
 	font-weight: bold;
}
&lt;/style&gt;


&lt;SCRIPT language=JavaScript&gt;
function valw2l() {
	if(!document.getElementById) return;
	    var errCnt = 0;
	    errCnt = errCnt + fldVal(document.getElementById('first_name'), document.getElementById('label_first_name'));
	    errCnt = errCnt + fldVal(document.getElementById('last_name'), document.getElementById('label_last_name'));
	    errCnt = errCnt + fldVal(document.getElementById('company'), document.getElementById('label_company'));
	    errCnt = errCnt + fldVal(document.getElementById('email'), document.getElementById('label_email'));
	    if(errCnt &gt; 0) {
	        document.getElementById('w2lerrors').innerHTML = &quot;&lt;span class='w2lerror'&gt;Please complete or correct the fields labelled in RED.&lt;/span&gt;&lt;br/&gt;&quot;;
	        return false;
	    } else {
	        document.getElementById('w2lerrors').innerHTML = &quot;&quot;;
	        return true;
	    }
	}
	
	function fldVal(ipField, ipLabel) {
	    var erCnt = 0;
	    if (ipField != null &amp;&amp; ipLabel != null) {
	        if (ipEmpty(ipField, ipLabel) == true) {
	            erCnt++;
	        } else if (!emailAddrIsValid(ipField, ipLabel)){
	            erCnt++;
	        }
	    }
	    return erCnt;
	}
	
	function ipEmpty(ip, ipLab) {
	    if (ip == null) {
	        return true;
	    } else {
	        if (ip.value == null || ip.value == &quot;&quot;) {
	            ipLab.style.color=&quot;#FF0000&quot;
	            return true;
	        } else {
	            ipLab.style.color=&quot;#000000&quot;
	            return false;
	        }
	    }
	}
	
	function emailAddrIsValid(ip, ipLab) {
	    if (ip.id == 'email') {
	        var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	        addr = ip.value;
	        if(reg.test(addr)) {
	            ipLab.style.color=&quot;#000000&quot;
	            return true;
	        } else {
	            ipLab.style.color=&quot;#FF0000&quot;
	            return false;
	        }
	    } else {
	        return true;
	    }
	}
&lt;/script&gt;
&lt;/form&gt;