jQuery(document).ready(function(){
	jQuery('.txtInput[name="benutzername"]').attr('value', 'Benutzer');
	jQuery('.txtInput[name="passwort"]').attr('value', '');
	jQuery('.pwPlaceholder').attr('value', 'Passwort');
	jQuery('.txtInput[name="passwort"]').hide();
	jQuery('td:has(.txtInput[name="passwort"])').append('<input type="text" class="txtInput pwPlaceholder" value="Passwort" />');
	
	// Aktion des Username-Eingabefeldes
	jQuery('.txtInput[name="benutzername"]').click(function(){
		jQuery(this).css('color', '#404040').attr('value', '');
	}).blur(function() {
		if(jQuery(this).attr('value') == '') { 
			jQuery(this).css('color', '#c7c7c7').attr('value', 'Benutzer'); 
		};
	});
	
	// Aktionen für das Passwort-Eingabefeld
	jQuery('.pwPlaceholder').bind("click focus", function() { 
		jQuery(this).hide();
		jQuery('.txtInput[name="passwort"]').attr('value', '').show().focus().css('color', '#404040');
	}); 
	
	jQuery('.txtInput[name="passwort"]').click(function(){
		jQuery(this).css('color', '#404040').attr('value', '');
	}).blur(function() {
		if(jQuery('.txtInput[name="passwort"]').val() == '') { 
			jQuery(this).css('color', '#c7c7c7').attr('value', 'Passwort').hide();
			jQuery('td:has(.txtInput[name="passwort"])');
			jQuery('.pwPlaceholder').show();
		};
	});
});
