var activeMediaBox = '';
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('');
okno.document.writeln('
');
okno.document.writeln('Sanatoria.org : galeria');
okno.document.writeln('');
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 = 'http://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
function rollBox(bxId){
if(activeMediaBox == ''){
$('#' + bxId).slideDown('fast');
activeMediaBox = bxId;
}else{
if(activeMediaBox == bxId){
$('#' + bxId).slideUp('fast');
activeMediaBox = '';
}else{
$('#' + activeMediaBox).slideUp('fast', function(){
$('#' + bxId).slideDown('fast');
activeMediaBox = bxId;
});
}
}
}