$(function(){


	/**
	 * Script setting the wrap attribute to 'hard' for all the textarea's found on the page and sets the maximal content length to 5000
	 */
	if($('textarea').attr('name')){
		$('textarea').attr('wrap', 'hard');
		
		$('textarea').bind('keyup',
				function(event){
					if($(event.target).val().length > 5000){
						$(event.target).val($(event.target).val().substring(0,5000));
						$(event.target).attr('class', 'textarea_dasPortfolioError');
					}
				}
		)
		
	}
	





	
})