function checkDeveloper(othis){
	var result;
	result = true;
	oError = checkFormRequiredFields(othis, 'InputFieldBad', 'InputListBoxBad', "Comments");
    
	if (oError) {
		oError.focus();
		if (oError.type == "radio"){
		 alert("Please enter a value for '" + oError.name + "' and all required fields!");
		} else {
		 alert("Please you must enter a value for all required fields!");
		}
		result = false;
}

var x = document.forms["abat_developer"]["email"].value;
var atpos = x.indexOf("@");
var dotpos = x.lastIndexOf(".");
if (atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= x.length) {
    alert('Not a valid e-mail address');
    return false;
}
	

	
	if(result){
			//Now check personal information
		if (othis.lemail.value != "" && othis.lpassword.value != ""){
	 	 if(!checkEmail(othis.lemail.value)){
	  	  result = false;
	  	  alert("The e-mail address: " + othis.lemail.value + ", is invalid!");
	  	  othis.lemail.className = "InputFieldBad";
	 	 }
	 	} else {
	 	 oError = checkFormRequiredFields(othis, 'InputFieldBad', 'InputListBoxBad', "email fname lname company address1 title city state zip country phone");
	 	 if (oError){
	 	  oError.focus();
	 	  alert("You must complete ALL the personal information");
	 	  result = false;
	 	 }
	 	 if(result){
	 	  if(!checkEmail(othis.email.value)){
	 	   result = false;
	 	   alert("The e-mail address: " + othis.email.value + ", is invalid!");
	 	   othis.email.className = "InputFieldBad";
	 	  }
	 	 }
	 	}
	}
	if(result){
		if(othis.ascisignup.checked){
		 if(othis.password.value != othis.passwordconfirm.value){
		  alert("Password and Password confirmation fields do not match!");
		  result = false;
		 } else if(othis.password.value.length < 3){
		  alert("Your password is invalid, it must be at least 3 characters.");
		  result = false;
		 }
		}
	}
	return result
}	
function checkEmail(sValue) {
 var regexp  = /^([a-zA-Z0-9_\.\-\'])+\@(([a-zA-Z0-9\-\'])+\.)+([a-zA-Z0-9])+$/;

 if (!regexp.test(sValue)) {
  return false
 }
 return true
}

//function isChecked(){

     // get all the checkboxes

// var oCheckboxes = document.forms["abat_developer"].Q11;
// loop through and make sure something is checked

// for (var i = 0; i < oCheckboxes.length; i++){

  //if (oCheckboxes[i].checked)

//return true;
//}
//return false;

//}

 


