
	function toggleTestimonial(el)
	{
		el = $(el);
		var contentElement     = el.next('.testimonialContent');
		var testimonialExcerpt = el.next('.testimonialsExcerpt');
				
		if(!contentElement.visible())
		{
			$$('.testimonialContent').each(function(e) {
				if(e.visible())
				{
					new Effect.BlindUp(e, {duration: 0.5});
					new Effect.BlindDown(e.previous('.testimonialsExcerpt'), {duration: 0.3});
				}

			});
			new Effect.BlindUp(testimonialExcerpt, {duration: 0.3});
			new Effect.BlindDown(contentElement, {duration: 0.5});
		}
		else
		{
			new Effect.BlindUp(contentElement, {duration: 0.5});
			new Effect.BlindDown(testimonialExcerpt, {duration: 0.3});
		}
	}
	
	function submitEmploymentForm(form)
	{
		$('formWarning').hide();
		var form = $(form);
		var isValid = true;
		if($(form['employer1']).present())
		{
			if(!$(form['employed-dates1']).present() || !$(form['employer1-salary']).present() || !$(form['employer1-reason-left']).present())
			{
				$('formWarning').update("Please make sure you're proving employment dates, salary and <br />the reason why you left the first job in the Employment Reference area.");
				isValid = false;
			}
		}
		
		if($(form['employer2']).present())
		{
			if(!$(form['employed-dates2']).present() || !$(form['employer2-salary']).present() || !$(form['employer2-reason-left']).present())
			{
				$('formWarning').update("Please make sure you're proving employment dates, salary and <br />the reason why you left the second job in the Employment Reference area.");
				isValid = false;
			}
		}
		
		if($(form['employer3']).present())
		{
			if(!$(form['employed-dates3']).present() || !$(form['employer3-salary']).present() || !$(form['employer3-reason-left']).present())
			{
				$('formWarning').update("Please make sure you're proving employment dates, salary and <br />the reason why you left the third job in the Employment Reference area.");
				isValid = false;
			}
		}
		
		if(!isValid)
		{
			$('formWarning').show();
			return false;
		}
		else
			form.submit();
	}

