// this function checks inputs and select fields... thats all it can check atm.
function checkForm(){
	var formok = true;
	$("form input, textarea[required=yes], form select[required=yes]").each(function(){
		$(this).removeClass("reqdField");		
	});
		
	$("form input, textarea[required=yes], form select[required=yes]").each(function(){
		if ($(this).val() == ""){
			$(this).addClass("reqdField");
			formok = false;
		}
	});

		
	if (formok){
		thisval = "";
		lastval = "";
		
		$("form input[required=yes]").each(function(){// if all the fields have values, check the validity of any inputs with pwdcheck=yes
			thisval = $(this).val();
			lastval = $(this).val();
		});
		
		return true;
	} else {
		alert("You did not complete all required fields.");
		return false;
	}
}


$(document).ready(function(){
	$("a").focus(function(){
	  $(this).blur();
	});
	
});
