var initial = true;
/*
* boolean (returns true if the form contains all values, 
* and false otherwise)
* checkAddweightForm() 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 checkAddweightFormDe()
{
	if($("#weight").val() == "")
	{
		$("#error").slideUp("normal", function()
			{
				$("#error").html("<p>Bitte geben Sie Ihr Gewicht in kg an (30 - 300, z.B., 111.11)!</p>").slideDown("slow");
			}
		);
		
		return false;
	}
	
	if($("#week").val() == "Wählen Sie die Woche!")
	{
		$("#error").slideUp("normal", function()
			{
				$("#error").html("<p>Bitte wählen Sie die Woche! Sie müssen eine Eingabe für Woche 1 machen, bevor Sie weitere Eingaben machen können. Bitte beachten: Die Angabe für Woche 1 kann nachträglich nicht geändert werden. </p>").slideDown("slow");
			}
		);
		
		
		return false;
	}
	
			
	return true;	
}

