$(document).ready(function(){
	$("form.validatethis").submit(function(){
	var success = true;
	$(this).find(".required").each(function(){
		if(!$(this).is(":checked"))
		{
			success = false;
			
		}
	});
	$(this).find(".requiredselect").each(function(){
		if($(this).val() == "")
		{
			success = false;	
		}
	});
	if(success == false)
	{
		$(this).find(".errormessage").each(function(){
			$(this).show();
			$(this).html("Please complete form.");
		});
		return false;
	}
	else
	{
		return true;	
	}
});
						   });
