	function validate(theForm)
		{				
			var docForm = document.register;
			
			if (docForm.firstname.value == ''){
		       alert('Please enter your First Name.');
		       docForm.firstname.focus();
		       return false;
		     }
		     if (docForm.lastname.value == ''){
		       alert('Please enter your Last Name.');
		       docForm.lastname.focus();
		       return false;
		     }
		      if (docForm.title.value == ''){
		       alert('Please enter your Title');
		       docForm.title.focus();
		       return false;
		     }			     
		     if (!isValidEmail(docForm.email.value)){
				alert("Please enter your Email Address");
				docForm.email.focus();
				return false;
			 }
			  if (!isValidEmail(docForm.emailconfirm.value)){
				alert("Please enter your Confirmation Email Address");
				docForm.emailconfirm.focus();
				return false;
			 }			 
			 if(docForm.email.value != docForm.emailconfirm.value){
			 	alert("The email addresses must match");
				docForm.emailconfirm.focus();
				return false;
			 }           
		    
		     if (docForm.address1.value == '')
		     {
		       alert('Please enter your Address');
		       docForm.address1.focus();
		       return false;
		     }
		     if (docForm.city.value == '')
		     {
		       alert('Please enter your City');
		       docForm.city.focus();
		       return false;
		     }
		     if (docForm.state.value == '')
		     {
			   if(docForm.country.value == 'United States' || docForm.country.value == 'Canada' || docForm.country.value == 'Australia') 
			   {
		         alert('Please select your State');
		         docForm.state.focus();
		         return false;
			   }
		     }
		      if (docForm.zip.value == ""){
				alert("Please enter your Postal Code");
				docForm.zip.focus();
				return false;
			 }
		    
			 if (docForm.country.value == '')
		     {
		       alert('Please select your Country');
		       docForm.country.focus();
		       return false;
		     }
		      if (docForm.company.value == ''){
		       alert('Please enter your Company');
		       docForm.company.focus();
		       return false;
		     }		     
		       
		      if (docForm.position.value == '')
		     {
		       alert('Please select your Position');
		       docForm.position.focus();
		       return false;
		     }		         
		     
		     if (docForm.numofemployees.value == '')
		     {
		       alert('Please select the Number of Employees');
		       docForm.numofemployees.focus();
		       return false;
		     }	
		     
		    for (var c=0,d=0,e; e=docForm[d]; d++) {
				if (e.type=='checkbox' && e.name.match(/^solutions\[\]$/) && e.checked) c++;
		    }
			if (c < 1) {
				alert('Please select at least one Solutions Interest');		
				return false;
			}				
			
		     
		     return true;		 
		}	
		
		
		function isValidEmail(checkString)
		{
		    var newstr = "";
		    var at = false;
		    var dot = false;
		
		   // IF EMAIL ADDRESS HAS A '@' CHARACTER
		    if (checkString.indexOf("@") != -1) {
		      at = true;
		
		    // IF EMAIL ADDRESS HAS A '.' CHARACTER
		    } else if (checkString.indexOf(".") != -1) {
		      dot = true;
		    }
		    // PARSE REMAINDER OF STRING
		    for (var i = 0; i < checkString.length; i++) {
		        ch = checkString.substring(i, i + 1)
		        if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
		                || (ch == "@") || (ch == ".") || (ch == "_")
		                || (ch == "-") || (ch >= "0" && ch <= "9")) {
		                newstr += ch;
		                if (ch == "@") {
		                    at=true;
		                }
		                if (ch == ".") {
		                    dot=true;
		                }
		        }
		    }
		    if ((at == true) && (dot == true)) {
		        return true;
		    }
		    else {
		      // DISPLAY ERROR MESSAGE      
		      return false;
		    }
		}
