function checkCompanyData(){
	if(checkString(document.frm.company_name, "Bedrijfsnaam")&&
	checkString(document.frm.company_contact, "Naam")&&
	checkString(document.frm.address, "Adres")&&
	checkString(document.frm.zipcode, "Postcode")&&
	checkString(document.frm.city, "Woonplaats") &&
	checkString(document.frm.phone, "Telefoon")&&
	checkEmail(document.frm.email, "e-Mail")){
	return true;
	}
	else{return false}
}

function checkCompanyPostalData(){
	if(checkString(document.frm.delivery_address, "Straat en huisnummer bij van het afleveradres")&&
	checkString(document.frm.delivery_zipcode, "Postcode bij afleveradres")&&
	checkString(document.frm.delivery_city, "Woonplaats bij afleveradres")){
	return true;
	}
	else{return false}
}

function copyTodelivery()
{
	a =document.frm
	a.delivery_address.value 	= a.address.value;
	a.delivery_zipcode.value 	= a.zipcode.value;
	a.delivery_city.value 		= a.city.value;
	a.delivery_country.value	= a.country.value;
}

function checkForms()
{
if(checkCompanyData() && checkCompanyPostalData()){document.frm.submit();}
}

function onlyAllowDigits(obj)
{
	strDigits = ""
	sValue = obj.value
		for(i=0;i < sValue.length;i++)
		{
			if(isDigit(sValue.charAt(i)))
			{
				strDigits = strDigits + sValue.charAt(i);
			}
		}
	obj.value = strDigits
}

