function isANumber(entry)
{
	tmp = entry.value;
	for(var i = 0; i < tmp.length; i++)
	{
		if ((!parseInt(tmp.charAt(i), 10)) && (tmp.charAt(i) != "0") && (tmp.charAt(i) != "+") && (tmp.charAt(i) != "/") && (tmp.charAt(i) != "-") && (tmp.charAt(i) != "(") && (tmp.charAt(i) != ")") && (tmp.charAt(i) != " "))
		{
			alert("Please correct the \"Telephone\" field.\n    Only digits and + / - ( ) can be used.");
			entry.value = entry.value.substring(0, (i));
			return false;
		}
	}
	return true;
}

function test_form(entry) {

	if (entry.name.value == "")
	{
		alert("Please complete the \"Your Name\" field");
		entry.name.focus();
		return false;
	}

	if (entry.company.value == "")
	{
		alert("Please complete the \"Company Name\" field");
		entry.company.focus();
		return false;
	}

	if (entry.phone.value == "")
	{
		alert("Please complete the \"Telephone\" field");
		entry.phone.focus();
		return false;
	}

	if (entry.email.value == "")
	{
		alert("Please complete the \"Your e-mail address\" field");
		entry.email.focus();
		return false;
	}

	if ( (entry.email.value.indexOf("@") < 1) || ( (entry.email.value.indexOf(".",(entry.email.value.indexOf("@"))) ) - ( entry.email.value.indexOf("@")) < 2) || ((entry.email.value.length - entry.email.value.lastIndexOf(".")) < 3 ) || ((entry.email.value.length - entry.email.value.lastIndexOf(".")) > 5 ) )
	{
		alert("Please correct the \"Your e-mail address\" field" );
		entry.email.focus();
		return false;
	}

	if (entry.information.value == "")
	{
		alert("Please complete the \"The information you would like\" field");
		entry.information.focus();
		return false;
	}

return true;

}

