function confirm_entry_Order(f) {
	d = document.frmOrder;
	var firstname = d.firstname.value;
	var lastname = d.lastname.value;
	var address = d.address.value;
	var city = d.city.value;
	var postal_code = d.postal_code.value;
	
	if (!firstname) { alert('Podaj imie!'); return false };
	if (!lastname) { alert('Podaj nazwisko!'); return false };
	if (!address) { alert('Podaj adres!'); return false };
	if (!city) { alert('Podaj miasto!'); return false };
	if (!postal_code) { alert('Podaj kod pocztowy!'); return false };	
	
	input_box = confirm("Czy chcesz wyslac zamowienie?");	
	if (input_box == true)	
		return true;
	else	
		return false;
}

function confirm_entry_update() {
	input_box = confirm("Czy chcesz zapisac zmiany?");	
	if (input_box == true)	
		return true;
	else	
		return false;
}

function confirm_entry() {
	input_box = confirm("Czy chcesz wyslac mailing?");	
	if (input_box == true)	
		return true;
	else	
		return false;
}

function confirm_NewsletterFrm(f) {
	d = document.frmNewsleter;
	var newsletter = d.newsletter.value;
	if (!newsletter) { alert('Podaj email!'); return false };
	
	if (input_box == true)	
		return true;
	else	
		return false;
}

function confirm_entry_AddFeature(f) {
	d = document.frmAddFeat;
	var pg = d.pg.value;
	var feature_name = d.feature_name.value;
	if (!pg) { alert('Ustaw wersje do której dodajesz wlasciwosci'); return false };
	if (!feature_name) { alert('Wpisz nazwe wlasciwosci'); return false };
	return true;
}

function confirm_entry_UserCPForm(f) {
	d = document.frmAccountCP;
	var new_pass = d.new_pass.value;
	var re_pass = d.re_pass.value;	
	if (!new_pass) { alert('Podaj haslo'); return false };
	if (!re_pass) { alert('Zweryfikuj haslo'); return false };
	if (new_pass != re_pass) { alert('Podane hasla nie sa takie same!'); return false };
	input_box = confirm("Haslo zostanie zmienione.");	
	if (input_box == true)	
		return true;
	else	
		return false;
}

function confirm_entry_UpdateUserForm(f) {
	d = document.frmUser1;
	var firstname = d.firstname.value;
	var lastname = d.lastname.value;
	var address = d.address.value;
	var postal_code = d.postal_code.value;
	var city = d.city.value;
	var email = d.email.value;
	
	if (!firstname) { alert('Wpisz imie'); return false };
	if (!lastname) { alert('Wpisz nazwisko'); return false };
	if (!address) { alert('Podaj adres'); return false };
	if (!postal_code) { alert('Wpisz kod pocztowy'); return false };
	if (!city) { alert('Wpisz miasto'); return false };
	if (!email) { alert('Wpisz adres email'); return false };
	
	input_box = confirm("Czy chcesz zapisac zmiany?");	
	if (input_box == true)	
		return true;
	else	
		return false;	
}

function confirm_entry_AccountForm(f) {
	d = document.frmAccount;

	var firstname = d.firstname.value;
	var lastname = d.lastname.value;
	var address = d.address.value;
	var postal_code = d.postal_code.value;
	var city = d.city.value;
	var email = d.email.value;
	

	if (!firstname) { alert('Wpisz imie'); return false };
	if (!lastname) { alert('Wpisz nazwisko'); return false };
	if (!address) { alert('Podaj adres'); return false };
	if (!postal_code) { alert('Wpisz kod pocztowy'); return false };
	if (!city) { alert('Wpisz miasto'); return false };
	if (!email) { alert('Wpisz adres email'); return false };
	
	input_box = confirm("Czy chcesz zapisac zmiany?");	
	if (input_box == true)	
		return true;
	else	
		return false;	
}

function confirm_entry_AccountCPForm(f) {
	d = document.frmAccountCP;
	var current_password = d.current_password.value;
	var password = d.password.value;
	var re_password = d.re_password.value;
	if (!current_password) { alert('Podaj aktualne haslo'); return false };
	if (!password) { alert('Podaj haslo'); return false };
	if (!re_password) { alert('Zweryfikuj haslo'); return false };
	
	if (password != re_password) { alert('Podane hasla nie sa takie same!'); return false };
	input_box = confirm("Haslo zostanie zmienione.");	
	if (input_box == true)	
		return true;
	else	
		return false;
}

function confirm_entry_RegisterForm(f)	{
	d = document.frmRegister;
	var login = d.login.value;
	var password = d.password.value;
	var re_password = d.re_password.value;
	var firstname = d.firstname.value;
	var lastname = d.lastname.value;
	var address = d.address.value;
	var postal_code = d.postal_code.value;
	var city = d.city.value;
	var email = d.email.value;
	var agree = d.agree.checked;
	
	if (!login) { alert('Podaj login'); return false };
	if (!password) { alert('Podaj haslo'); return false };
	if (!re_password) { alert('Zweryfikuj haslo'); return false };
	
	if (password != re_password) { alert('Podane hasla nie sa takie same!'); return false };
	
	if (!firstname) { alert('Wpisz imie'); return false };
	if (!lastname) { alert('Wpisz nazwisko'); return false };
	if (!address) { alert('Podaj adres'); return false };
	if (!postal_code) { alert('Wpisz kod pocztowy'); return false };
	if (!city) { alert('Wpisz miasto'); return false };
	if (!email) { alert('Wpisz adres email'); return false };

	if (agree == false) { alert('Do rejestracji wymagana jest Twoja zgoda\nna przetwarzanie danych osobowych.'); return false };
	
	
	input_box = confirm("Twoje dane zostana zapisane");	
	if (input_box == true)	
		return true;
	else	
		return false;
} 

function confirm_entry_Add()	{
	input_box = confirm("Czy chcesz zapisac nowy rekord do bazy?");	
	if (input_box == true)	
		return true;
	else	
		return false;
} 

function confirm_entry_Del()	{
	input_box = confirm("Czy napewno skasowac ten rekord?");	
	if (input_box == true)	
		return true;
	else	
		return false;
} 

function confirm_entry_Update()	{
	input_box = confirm("Czy chcesz zaktualizować listę?");	
	if (input_box == true)	
		return true;
	else	
		return false;
} 
