function val_tellform()
	{
	err = 0;
	msg = "";
	reExp = new RegExp("[\\w\_-]+@[\\w\_-]+\\.[\\w\_-]+");

	if (document.tellform.youremail.value)
		{
		if (!(reExp.test(document.tellform.youremail.value)))
			{
			msg = msg + "Your email address not in correct format!\n";
			err = 1;
			}
		}
	if (!(reExp.test(document.tellform.friendemail.value)))
		{
		msg = msg + "Friend's email address missing or not in correct format!\n";
		err = 1;
		}
	if (err)
		{
		alert(msg);
		return false;
		}
	return true;
	}

function val_newsletterform()
	{
	err = 0;
	msg = "";
	reExp = new RegExp("[\\w\_-]+@[\\w\_-]+\\.[\\w\_-]+");

	if (!(reExp.test(document.newsform.youremail.value)))
		{
		msg = msg + "Your email address missing or not in correct format!\n";
		err = 1;
		}
	if (!(reExp.test(document.newsform.youremailc.value)))
		{
		msg = msg + "Confirmation of your email address missing or not in correct format!\n";
		err = 1;
		}
	if (document.newsform.youremail.value != document.newsform.youremailc.value)
		{
		msg = msg + "The two email addresses do not match\n";
		err = 1;
		}

	if (err)
		{
		alert(msg);
		return false;
		}
	return true;
	}
