function initialisePage(){
	
}

function validateForm()
{
	// Loop through all of the numeric tags
	var myInputs = document.getElementsByTagName("input");
	var myNumberPattern = /^\d+$/;
	var myErrors = "";
	var isValid = false;
	
	
	for ( i = 0; i < myInputs.length; i++ )
	{
		
		if ( myInputs[i].className == "numeric" )
		{
			
			myErrors += validatePattern( myInputs[i].id, myNumberPattern, "Please enter a numeric value for the amount of drink " + myInputs[i].id.replace("Drink","").replace("Amount","") + " you drank" );
		}
	}
	
	if ( myErrors != "" )
	{
		var myErrorDiv = document.getElementById( "errors" );
		
		myErrorDiv.innerHTML = myErrors;
	}
	else
	{
		isValid = true;
	}
	
	return isValid;
}

