function openW(strona,width_,height_,sc){         new_window = window.open(strona,'strona','width='+width_+',height='+height_+',toolbars=no,resizeble="no",scrollbars='+sc);}function Focus(control) {  control.focus();  control.select();}function IsEmailCorrect(email) {  return email.match(/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,3})$/)!=null;}function IsPhoneCorrect(phone) {	return phone.match(/^[0-9]*$/)!=null;}function IsEmpty(pole) {  if (pole=='')   	return true	else	return false}function sprawdz_rejestracje(form) {	if (IsEmpty(form.nazwa.value)) {		alert('Proszę podać imię, nazwisko lub nazwę firmy');		Focus(form.nazwa);		return false;	  }  	if (IsEmpty(form.kraj.value)) {		alert('Proszę podać kraj');		Focus(form.kraj);		return false;	  }	  	if (IsEmpty(form.miasto.value)) {		alert('Proszę podać miasto');		Focus(form.miasto);		return false;	  } 	  	if (IsEmpty(form.ulica.value)) {		alert('Proszę podać ulica');		Focus(form.ulica);		return false;	  } 	if (IsEmpty(form.kod.value)) {		alert('Proszę podać kod pocztowy');		Focus(form.kod);		return false;	  } 	if (!IsPhoneCorrect(form.telefon.value)) {    alert('Proszę podać poprawny numer telefonu');		Focus(form.telefon);		return false;	  } 		if (!IsEmailCorrect(form.mail.value)) {		alert('Proszę podać poprawny adres e-mail');		Focus(form.mail);		return false;	  }	if (IsEmpty(form.data_przyjazdu.value)) {		alert('Proszę podać datę przyjazdu');		Focus(form.data_przyjazdu);		return false;	  }	if (IsEmpty(form.data_wyjazdu.value)) {		alert('Proszę podać datę wyjazdu');		Focus(form.data_wyjazdu);		return false;	  }	return true;}function sprawdz_zadaj_pytanie(form){/*if (IsEmpty(form.imie.value)) {    alert('Proszę podać Imię i nazwisko / Firmę.');    Focus(form.imie);    return false;  }if (IsEmpty(form.adres.value)) {    alert('Proszę podać adres.');    Focus(form.adres);    return false;  }*/if (!IsPhoneCorrect(form.telefon.value)) {    alert('Proszę podać telefon wraz z numerem kierunkowym, dla komórek poprzedzony zerem \n np. +480xxxxxxxxx lub +48012xxxxxxx');    Focus(form.telefon);    return false;  }if (IsEmpty(form.tresc.value)) {    alert('Proszę podać treść.');    Focus(form.tresc);    return false;  }  if (!IsEmailCorrect(form.email.value)) {    alert('Proszę podać poprawny adres e-mail');    Focus(form.email);    return false;  }return true;}