function testInput() {
var Email =  new String(document.inputForm.Email.value); 
var Correct = true; 
CharCount=1; 
strLength=Email.length; 
while ((CharCount < strLength) && (Email.charAt(CharCount) != '@')) 
{ 
	CharCount++ 
} 
if ((CharCount>= strLength) || (Email.charAt(CharCount) != '@'))  
{  
	alert ('Het e-mailadres is niet geldig.');
	Correct = false; 
} 
else 
{ 
	CharCount += 2; 
}
if (Correct) {
	while ((CharCount < strLength) && (Email.charAt(CharCount) != '.')) 
	{ 
		CharCount++ 
	} 
	if ((CharCount>= strLength - 1) || (Email.charAt(CharCount) != '.')) 
	{ 
		alert ('Het e-mailadres is niet geldig.');
		Correct = false; 
	}
}
return Correct 
} 

