var initial = true;
/*
* boolean (returns true if the form contains values for username and password, 
* and false otherwise)
* checkLoginForm() using jQuery ($(...))
* learned from Chris Power's blog example: 
* the function alters the innerHTML of the error div
* and uses jQuery slideUp and slideDown methods for showing
* the error message to the user
*/
function checkLoginFormDe()
{
	if($("#username").val() == "")
	{
		$("#error").slideUp("normal", function()
			{
				$("#error").html("<p>Geben Sie Ihr Pseudonym ein.</p>").slideDown("slow");
			}
		);
		
		return false;
	}
	
	if($("#password").val() == "")
	{
		$("#error").slideUp("normal", function()
			{
				$("#error").html("<p>Geben Sie Ihr Passwort ein.</p>").slideDown("slow");
			}
		);
		
		return false;
	}
	return true;	
}
