//Really awesome form validation script adapted mainly from PPK.org :)function validate(){	for (i=0;i<= document.forms[0].elements.length;i++)	{		box = document.forms[0].elements[i]; //assigning this to a variable box makes it easier to access and I think it is required so that [i] is read as the current iteration of the loop		if (!box.value)		{			alert('You haven\'t filled in ' + box.name + '!');			box.focus()			return false;		}	}	return true;}