function sendAskForm()
{
	var ok = true;
	with (document.form) {
		if (nazwafirmy.value.length == 0) {
			alert('Nie wypelniono pola Nazwa Firmy.');
			nazwafirmy.focus();
			ok = false;
		}
		else if (ulica.value.length == 0) {
			alert('Nie wypelniono pola Ulica, numer.');
			ulica.focus();
			ok = false;
		}
		else if (kod.value.length == 0) {
			alert('Nie wypelniono pola Kod pocztowy.');
			kod.focus();
			ok = false;
		}	
				else if (tel.value.length == 0) {
			alert('Nie wypelniono pola Telefon.');
			tel.focus();
			ok = false;
		}	
				else if (miejscowosc.value.length == 0) {
			alert('Nie wypelniono pola Miejscowosc.');
			miejscowosc.focus();
			ok = false;
		}	
				else if (nrew.value.length == 0) {
			alert('Nie wypelniono pola Nr ewidencyjny rachunku.');
			nrew.focus();
			ok = false;
		}	
				else if (nip.value.length == 0) {
			alert('Nie wypelniono pola Nip.');
			nip.focus();
			ok = false;
		}	
				else if (regon.value.length == 0) {
			alert('Nie wypelniono pola Regon.');
			regon.focus();
			ok = false;
		}	
				else if (imie.value.length == 0) {
			alert('Nie wypelniono pola Imie i Nazwisko.');
			imie.focus();
			ok = false;
		}	
				else if (kontel.value.length == 0) {
			alert('Nie wypelniono pola Telefon.');
			kontel.focus();
			ok = false;
		}	
				else if (kmiejscowosc.value.length == 0) {
			alert('Nie wypelniono pola Miejscowosc.');
			kmiejscowosc.focus();
			ok = false;
		}
		return ok;
	}
}

function ValidateEmail(m_email)
{
	validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
	if (m_email.search(validRegExp) == -1)
		return false;
	else return true;
}