function testInput() {
var Email =  new String(document.RightGRSubscribeForm.category3.value);
var Correct = true;
CharCount=1;
strLength=Email.length;
while ((CharCount < strLength) && (Email.charAt(CharCount) != '@'))
{
	CharCount++
}
if ((CharCount>= strLength) || (Email.charAt(CharCount) != '@'))
{
	Correct = false;
}
else
{
	CharCount += 2;
}
while ((CharCount < strLength) && (Email.charAt(CharCount) != '.'))
{
	CharCount++
}
if ((CharCount>= strLength - 1) || (Email.charAt(CharCount) != '.'))
{
	Correct = false;
}
if (!Correct) {
	alert ('Email address not valid.')	
}
setTimeout('document.inputForm.reset()',2000);

if (Correct) {
	if (document.RightGRSubscribeForm.category2.value=="Your Name" || document.RightGRSubscribeForm.category2.value =="") {
	     document.RightGRSubscribeForm.category2.value="Subscriber";
	}
}
return Correct
}