/**
 * @author stu
 */
function valid_inputs()
{
	inputs = $(".required");
	invalid = 0;
	for (x=0; x<inputs.length; x++)
	{
		if(inputs[x].value == '' || inputs[x].value == 'this is a required field')
		{
			//inputs[x].value = 'this is a required field';
			inputs[x].style.borderColor='red'; //animate({ borderColor: "#cdd6e8" }, 'fast'); //css({ borderColor:"cdd6e8" });
			if(inputs[x].type == 'file')
			{
				alert("A file attachment is required");
			}
			invalid++;
		}
	}
	
	emails = $(".required_email");
	for (x=0; x<emails.length; x++)
	{
		if(emails[x].value == '' || emails[x].value == 'Please use a valid email')
		{
			emails[x].value = 'Please use a valid email';
			emails[x].style.borderColor='red';//css({ borderColor:"cdd6e8" });
			invalid++;
		}
	}
	
	if(invalid > 0)
	{
		return false;
	} 
	else
	{
		return true;
	}

}

