$(document).ready(function(){
		//alert('ready');
		$('.notNullForm').submit(function() {
		 	var aok = "true";
			var thesetfocus = "false"; //use "thesetfocus" to make sure that the first that is returned as null is focused on and not the ones after this. this just helps with usability a little bit. we set it to true the first time a field is focused on
			$(".notnull",this).each(function(i) {
				if (this.value == "") {
					aok="false";	
					$(this).css("border","2px solid red");
					if (thesetfocus == "false") {
						this.focus();
						thesetfocus = "true";
					}
				}
			});	
			if (aok=="false") {
			 alert('Please enter a value into all required fields.');
			 return false;
			}
			else return true;
		});
	});
