function stopRKey(evt) {
  var evt = (evt) ? evt : ((event) ? event : null);
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
  if ((evt.keyCode == 13) && (node.type=="text"))  {return false;}
}

document.onkeypress = stopRKey;
$(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;
	};
//	$('#formhandler_contact_form').initiateValue();
//	$('#formhandler_contact_form').focusBlur();  
	$('.row').initiateValue();
	$('.row').focusBlur();
	
});
