$(document).ready(function($){

	$.fn.initiateValue = function() {
		var element = '';
		$this = $(this);
		$this.find('input[type="text"],textarea').each(function() {
			if($(this).attr('title')) {
				if($(this).attr('value') == '') $(this).attr({'value':$(this).attr('title')});
			}
		});
		return false;
	};	
	$.fn.focusBlur = function() {
		var element = '';
		$this = $(this);
		$this.find('input[type="text"],textarea').blur(function() {
			if($(this).attr('value') == '') $(this).attr({'value':$(this).attr('title')});
		}).focus(function() {
			if($(this).attr('value') == $(this).attr('title')) $(this).attr({'value':''});
		});
		return false;
	};
	$('.contakt-box').initiateValue();
	$('.contakt-box').focusBlur();
});	
	function getForm(form) {

		$(form).find('input[type="text"],textarea').each(function() {
			if($(this).attr('value') == $(this).attr('title')) $(this).attr({'value':''});
		});
	
		//$(form)[0].submit();
		//document.forms[0].submit();
		return false;
	}
