	function fnfnonLimitReached()
	{
	}
	function fnfnonLimitUnReached()
	{
	}
	
	function loadFormFunctions()
	{

		try{
			loadCharcounter();
		}catch(ex){}

		try{
			loadWatermarks();
		}catch(ex){}	

	}
	
	function loadCharcounter()
	{
		$("div.form li.formrow textarea.message").each(function(){
			// find the id of the corresponding span
			var tehID = $(this).parent().find('span.charcounter').attr('id');
			var iLimit = $('#' + tehID).text();
			$(this).charCounter(iLimit, {
				format: "%1",
				container: "#" + tehID,
				keepTypingAfterLimit: false,
				pulse: false, 
				onLimitReached: fnfnonLimitReached,
				onLimitUnReached: fnfnonLimitUnReached
			});
		});	
	}



	function loadWatermarks()
	{
		jQuery('div.form li.formrow input:not(.submit), div.form li.formrow textarea').each(function(){
			var input = jQuery(this);
			var sfield = input.attr('rel');
			input.watermark(sfield);
		});
		jQuery("input.submit").click(function(){
			jQuery('div.form li.formrow input:not(.submit), div.form li.formrow textarea').each(function(){
				var input = jQuery(this);
				
				jQuery.watermark.hide($(this));
			});
		});
	}
