window.addEvent('domready', function(){
	if ($('theForm'))
	{
		$('theForm').addEvent('submit', function(e){
			var error = null;
			$$('#theForm input').each(function(el){
				
				if ((el.value == '') || (el.value == null))
				{
					error = 1;
				}
			});
			if (error == 1)
			{
				e = new Event(e).stop();
				alert('One or more fields were left blank, please fill in all fields.');
			}
		});
	}
});