


function isValidContactForm(objForm)
{
	var strError = "";
	var strCultureCode = "nl-NL";
	
	
	strError += ensureInput(objForm, "strFullName", strCultureCode);
	strError += ensureEmailAddress(objForm, "strEmailAddress", strCultureCode);
	strError += ensurePhone(objForm, "strPhone", strCultureCode);			
	strError += ensureInput(objForm, "strMessage", strCultureCode);	
					
	if (strError != "")  {
		strErrorIntro = "De volgende velden zijn niet (goed) ingevuld: \n";
		alert(strErrorIntro + strError);			
		return false;
	} else  {
		return true;
	}	

}

function isValidAanmeldForm(objForm)
{
	var strError = "";
	var strCultureCode = "nl-NL";
	
	strError += ensureInput(objForm, "strProduct", strCultureCode);
	strError += ensureInput(objForm, "strCompany", strCultureCode);
	strError += ensureInput(objForm, "strFullName", strCultureCode);
	strError += ensureInput(objForm, "strAddress", strCultureCode);
	strError += ensureInput(objForm, "strZipCode", strCultureCode);
	strError += ensureInput(objForm, "strCity", strCultureCode);
	strError += ensureEmailAddress(objForm, "strEmailAddress", strCultureCode);
	strError += ensureInput(objForm, "strPhone", strCultureCode);			
					
	if (strError != "")  {
		strErrorIntro = "De volgende velden zijn niet (goed) ingevuld: \n";
		alert(strErrorIntro + strError);			
		return false;
	} else  {
		return true;
	}	
}