function checkForm()
{
	var nError = 0;
	var strError = "";
				
	var iName = document.forms[1].strName;
	if(''==iName.value)
	{
		nError++;
		strError = strError + "\n  - A name must be specified" ;
	}
				
	var iEmail = document.forms[1].strEmail;
	if(!ValidMail(iEmail.value))
	{
		nError++;
		strError = strError + "\n  - A valid email address must be specified" ;
	}


	var iName = document.forms[1].strEnquiry;
	if(''==iName.value)
	{
		nError++;
		strError = strError + "\n  - An enquiry must be specified" ;
	}
				
	if(nError>0)
	{
		alert("Please correct the following before re-submitting:\n" + strError);
		return false;
	}
	return true;
}


function checkFrenchForm()
{
	var nError = 0;
	var strError = "";
				
	var iName = document.forms[0].strName;
	if(''==iName.value)
	{
		nError++;
		strError = strError + "\n  - Un nom doit être indiqué" ;
	}
				
	var iEmail = document.forms[0].strEmail;
	if(!ValidMail(iEmail.value))
	{
		nError++;
		strError = strError + "\n  - Un email valide doit être indiqué" ;
	}


	var iName = document.forms[0].strEnquiry;
	if(''==iName.value)
	{
		nError++;
		strError = strError + "\n  - Un commentaire doit être indiqué" ;
	}
				
	if(nError>0)
	{
		alert("Veuillez corriger le suivant avant de se resoumettre:\n" + strError);
		return false;
	}
	return true;
}



			
function ValidMail(str){
	if(str.length<4)return 0
	if(str.indexOf("@")<1) return 0
	if(str.indexOf(".")<1) return 0
	else return 1
}
