function conf(text)
{
  if(confirm(text))
  	return true;
  else
  	return false;
  
}

function goTo(url)
{
	document.location.href = url;  
}

function CheckMail(mailConfirm) {
 if (mailConfirm != "") {
	var re = new RegExp("[^@]{1,}[@]{1}[^@.]{1,}[.]{1}[^@]{1,}","gi");
	var wynik = re.test(mailConfirm);
	if (wynik == true) {
	return true;}
	if (wynik == false) {
	window.alert("Podano nieprawidłowy adres mail do wysłania potwierdzenia");
	return false;}
 }
 else
 {
  window.alert("Proszę podać email kontaktowy");
  return false;
 }
} 
