function getNextDoYouKnow() {
	HTML_AJAX.replace('do-you-know-content','do-you-know.php');
}

function getPrevDoYouKnow() {
	HTML_AJAX.replace('do-you-know-content','do-you-know.php?dir=prev');
}

function checkIfAcceptedRegulation(lang) {
	var value = document.getElementById('read-regulation').checked;
	if (value === false) {
		switch (lang) {
			case 'pl':
				alert('Prosze zapoznać się z regulaminem.');
				break;
			case 'en':
				alert('Please read the regulations.');
				break;
		}
	}	
	return value;
}

function changeClientLogo() {
	HTML_AJAX.replace('client-box','client-box.php');	
}

function openPopUp(url, width, height, title) {
	window.open(url, title, 'width=' + width+ ',height=' + height+ ',menubar=no,status=no, location=no, toolbar=no,scrollbars=no');
}


function checkContactForm(lang) {
	var name = document.getElementById('name');
	var mail = document.getElementById('mail');
	
	if (name.value.length == 0 || mail.value.length == 0) {
		if (lang == 'pl') {
			alert("Pola oznaczone * muszą zostać wypełnione.");
		} else {
			alert("* fields are required.");
		}
		return false;
	} else {
		return true;
	}
}

