

function okno(pole,skrypt,w) {
  o = window.open(skrypt+".php?n="+pole, "k", "width="+w, "height="+500,
  + " menubar=no, toolbar=no, location=no, scrollbars=yes, resizable=yes, status=no");
  o.focus();
  return false;
}
 
function podglad(url, x, y) {
 okno = window.open("", "o", "width="+x+", height="+y+", left=0, top=0,"
   + " innerwidth="+x+", innerheight="+y+", location=0, directories=0,"
   + " scrollbars=1, menubar=0, toolbar=0, status=0, resizable=1");
 okno.document.open();
 okno.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"');
 okno.document.writeln('"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">');
 okno.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" ');
 okno.document.writeln('xml:lang="pl"><head><meta http-equiv="Content-type"');
 okno.document.writeln(' content="text/html; charset=iso-8859-2" />');
 okno.document.writeln('<title>Sanatoria.org : galeria</title><style type="text/css"><!--');
 okno.document.writeln('body {margin:0px; padding:0px; background:#000000;}');
 okno.document.writeln('img {display:block; border:0px; margin:10px auto 10px auto}');
 okno.document.writeln('--></style></head><body>');
 okno.document.writeln('<a href="javascript:self.close()"><img ');
 okno.document.writeln('src="'+url+'" alt="Zamknij" /></a></body></html>');
 okno.document.close();
 okno.focus();
}


function SprawdzFormularz() { 

if (document.getElementById('email_sq').value=='') { alert('Nie podałe¶ adresu e-mail.'); return false; } if ( ((document.getElementById('email_sq').value.indexOf('@',1))==-1)||(document.getElementById('email_sq').value.indexOf('.',1))==-1 ) { alert('Podałe¶ błędny email'); return false; } if (document.getElementById('imie_sq').value=='') { alert('Nie podałe¶ swojego imienia'); return false; } else { return true;}

//if (f.pp.checked == false ) { alert('Musisz zgodziÄ‡ siÄ™ z PolitykÄ… PrywatnoĹ›ci.'); return false; } else { return true; } 

} 

function show(id){

b=document.getElementById(id);

if(b.style.display==''){
b.style.display='none';
} else {
b.style.display='';
}

}

function showfaq(id){

b=document.getElementById('p'+id);

if(b.style.display==''){
b.style.display='none';
} else {

	url = 'https://www.sanatoria.org/inc/ajax/faq.php?';
	url += "ID=" 			+ id;
	url=encodeURI(url);
	startGETRequest(url, onCompletefaq, onEndfaq);
	b.style.display='';
}

}


function onEndfaq(){ }
function onCompletefaq(){}

//miasta


