function checkSendContactForm() {
	if(!document.getElementById('phone').value && !document.getElementById('mail').value) {
		alert("Prosimy wypełnić pole telefonu lub adresu email, inaczej nie będziemy mogli się z Państwem skontaktować.");
		return false;
	}
	
	if(document.getElementById('mail').value && document.getElementById('mail').value.indexOf('@')==-1) {
		alert("Proszę sprawdzić poprawność adresu email. Jeżeli nie mają Państwo adresu email, prosimy o wypełnienie pola telelfon, pole email należy zostawić puste.");
		return false;
	}
	
	if(!document.getElementById('text').value) {
		alert("Prosimy o wypełnienie pola z wiadomością, którą chcą do nas Państwo wysłać.");
		return false;
	}
	
	return true;
}
function getCode(id, form_id) {
	document.getElementById(id).value='12131412';
	document.getElementById(form_id).action='includes/'+form_id+'.php';
	document.getElementById(form_id).submit();
}
