function numericcheck(value)
{
    var intvalid = "0123456789";
    var ch;
        var i;

    for (i=0; i<value.length; i++) 
	{
		ch = value.charAt(i);
		if (intvalid.indexOf(ch) < 0) 
		{
		    return(false);
		}
	}
    return(true);
}
	
function checkEmail(strEmail)
{
	var filter=/^.+@.+\..{2,3}$/
		
	if (filter.test(strEmail))
		testresults=true
	else
	{
		testresults=false
	}
	return (testresults)
}

function submitdata()
{
	var stremail = document.frmenews.txtemail.value;
		
	if (stremail == "")
	{
		alert("Please enter your E-mail address.")
		document.frmenews.txtemail.focus()
		return false;
	}
				
	if (!checkEmail(stremail))
	{
		alert("Please check the syntax of your E-mail address.")
		document.frmenews.txtemail.focus()
		document.frmenews.txtemail.select()
		return false;	
	}
	
	document.frmenews.method = "post"
	document.frmenews.action = "../thankyou/index.php"
	document.frmenews.submit()
}