
function CheckFriend()
{
	a = document.forms["FriendForm"];

	if(
		checkString(a.Name,"Uw naam")&&
		checkEmail(a.Email,"Uw e-mail")&&
		checkString(a.FriendName,"Naam van vriend")&&
		checkEmail(a.FriendEmail,"E-mail van vriend")&&
		checkString(a.Message,"Bericht voor de ontvanger")
	){return true}
	else{return false;}
}

function SendFriend()
{
 if(CheckFriend())
 {
 	document.forms[0].action = "SubmitFriend.asp";
	//document.forms[0].submit();
 }
 else{return false;}
}

	
function SendTef()
{

	document.forms[0].action = "SubmitFriend.asp";

	return true;
}

function checkDBZipStandard(theField,s,n,tarField)
{
	if(tarField.selectedIndex == 2)	{return checkZipCodeBelgium(theField,s)}
	if(tarField.selectedIndex == 1)	{return checkZipCode(theField,s,n)}
	else{return false}
}

function fourDigits(sValue)
{
	if(sValue.length == 4)
	{
		bBool = true
		for(i=0;i < sValue.length;i++)
		{
			if(isDigit(sValue.charAt(i)) == false)
			{
					bBool = false;
					break;
			}
		}
	}
	else
	{
		bBool = false;
	}
	return bBool
}


function init()
{
	frm = document.forms[1];
}

function goback()
{
	history.go(-1);
}