/* Author: 

*/


var check_form = function(f)
{
	var $inputs = $('input.req');
	var err = [];
	if($inputs.length)
	{
		$inputs.each(function()
		{
			if($(this).val() == '') {
				var name = $(this).parent().prev().html();
				//console.log(name);
				err.push(name);
			}
		});
	}
	
	if(err.length)
	{
		alert('Please complete all of the necessary fields');
		return false;
	}
	return true;
}
