var j = jQuery.noConflict();

j(document).ready(function(){
	
	j('.req').blur(function(){
		j(this).nextAll().remove('.validation-advice');
		if (j.trim(j(this).val()).length == 0)
		{
			j('<span class="validation-advice right"><img src="images/wrong.gif" width="16px" height="16px" alt="Field '+j(this).attr('title')+' is left empty." title="Field '+j(this).attr('title')+' is left empty."></span>')
				.insertAfter(this);
				
		}
		else
		{
			j('<span class="validation-advice"><img src="images/right.gif" width="16px" height="16px"></span>')
				.insertAfter(this)
				.fadeOut(5000);
		}
	});
	
	j('.ereq').blur(function(){
		j(this).nextAll().remove('.validation-advice');
		if (!j(this).emailCheck())
		{
			j('<span class="validation-advice right"><img src="images/wrong.gif" width="16px" height="16px" alt="Field '+j(this).attr('title')+' is not valid." title="Field '+j(this).attr('title')+' is not valid."></span>')
				.insertAfter(this);
				
		}
		else
		{
			j('<span class="validation-advice"><img src="images/right.gif" width="16px" height="16px"></span>')
				.insertAfter(this)
				.fadeOut(5000);
		}
	});
	
	
});



	
