// DEMO AANVRAAGFORMULIER
function changeCaseInitials() {
	var f = document.forms['Response'];
	f.initials.value = f.initials.value.toUpperCase();
}
function changeCaseMiddlename() {
	var f = document.forms['Response'];
	f.middlename.value = f.middlename.value.toLowerCase();
}
function changeCaseFirstLetterLastname() {
	var f = document.forms['Response'];
	f.lastname.value = f.lastname.value.replace(/^./, f.lastname.value.match(/^./)[0].toUpperCase());
}
function changeCaseFirstLetterCompany() {
	var f = document.forms['Response'];
	f.company.value = f.company.value.replace(/^./, f.company.value.match(/^./)[0].toUpperCase());
}
// EINDE DEMO AANVRAAGFORMULIER

// CONTACTFORMULIER
function changeCaseFirstLetterCompany() {
	var f = document.forms['contactForm'];
	f.companyName.value = f.companyName.value.replace(/^./, f.companyName.value.match(/^./)[0].toUpperCase());
}
// EINDE CONTACTFORMULIER

// PRESENTATIE AANVRAAGFORMULIER
function changeCaseFirstLetterFirstname() {
	var f = document.forms['presentatieForm'];
	f.firstName.value = f.firstName.value.replace(/^./, f.firstName.value.match(/^./)[0].toUpperCase());
}
function changeCaseMiddlename() {
	var f = document.forms['presentatieForm'];
	f.middleName.value = f.middleName.value.toLowerCase();
}
function changeCaseFirstLetterLastname() {
	var f = document.forms['presentatieForm'];
	f.lastName.value = f.lastName.value.replace(/^./, f.lastName.value.match(/^./)[0].toUpperCase());
}
function changeCaseFirstLetterCompany() {
	var f = document.forms['presentatieForm'];
	f.companyName.value = f.companyName.value.replace(/^./, f.companyName.value.match(/^./)[0].toUpperCase());
}
function changeCaseFirstLetterStreet() {
	var f = document.forms['presentatieForm'];
	f.locatieAdres.value = f.locatieAdres.value.replace(/^./, f.locatieAdres.value.match(/^./)[0].toUpperCase());
}
function changeCaseZipcode() {
	var f = document.forms['presentatieForm'];
	f.getzipcode.value = f.getzipcode.value.toUpperCase();
	postcodeFormatteren();
}
function postcodeFormatteren(){
	var f = document.forms['presentatieForm'];
	var zipCode = f.getzipcode.value;
	var cijfers = (zipCode.substring(0,4));
	var letters = (zipCode.substring(4,7));
	var newZipCode = (cijfers + " " + letters);
	f.locatiePostcode.value = newZipCode;
}
function changeCaseCity() {
	var f = document.forms['presentatieForm'];
	f.locatiePlaats.value = f.locatiePlaats.value.toUpperCase();
}
// EINDE PRESENTATIE AANVRAAGFORMULIER
