//<![CDATA[

function Chmurka(T,t){
T.title=''

T.parentNode.style.zIndex=t?1:0;
T.parentNode.lastChild.style.display=t?'block':'none';
}

//Initialize first demo:
ddaccordion.init({
	headerclass: "mypets", //Shared CSS class name of headers group
	contentclass: "thepet", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover"
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", "openpet"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["none", " ", " "], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
	oninit:function(expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})

//Initialize 2nd demo:
ddaccordion.init({
	headerclass: "technology", //Shared CSS class name of headers group
	contentclass: "thelanguage", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover"
	collapseprev: false, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: false, //persist state of opened contents within browser session?
	toggleclass: ["closedlanguage", "openlanguage"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "<img src='http://i13.tinypic.com/80mxwlz.gif' /> ", "<img src='http://i18.tinypic.com/6tpc4td.gif' /> "], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
	oninit:function(expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})

function SprawdzFormularz(f) {

    if (f.email.value=='') {
    alert('Nie podałeś/aś adresu e-mail.');
    return false;
    }

    if ( ((f.email.value.indexOf('@',1))==-1)||(f.email.value.indexOf('.',1))==-1 ) {
    alert('Podałeś/aś błędny adres e-mail.');
    return false;
    }

    if (f.imie.value=='') {
    alert('Nie podałeś/aś Swojego imienia.');
    return false;
    }
    
    if (f.nazwisko.value=='') {
    alert('Nie podałeś/aś Swojego nazwiska.');
    return false;
    }
    
    if (f.telefon.value=='') {
    alert('Nie podałeś/aś Swojego numeru telefonu.\nJeśli nie posiadasz, to wpisz "brak".');
    return false;
    }
    
    if (f.regulamin.checked == false) {
    alert('Musisz zgodzić się z Polityką Prywatności.');
    return false;
    }
    if (f.haslo.value=='') {
    alert('Wpisz hasło.');
    return false;
    }
    if (f.haslo.value!=f.haslo2.value)
    { alert('Podane hasła różnią się od siebie.'); return false; }
    
    else {
    return true;
    }
    }

function SprawdzFormSub(f) {

    if (f.email.value=='') {
    alert('Nie podałeś/aś adresu e-mail.');
    return false;
    }
    if ( ((f.email.value.indexOf('@',1))==-1)||(f.email.value.indexOf('.',1))==-1 ) {
    alert('Podałeś/aś błędny adres e-mail.');
    return false;
    }
    if (f.imie.value=='') {
    alert('Nie podałeś/aś Swojego imienia.');
    return false;
    }
    if (f.regulamin.checked == false) {
    alert('Musisz zgodzić się z Polityką Prywatności.');
    return false;
    }
    else {
    return true;
    }
    }

function SprawdzFormKontakt(f) {

    if (f.email.value=='') {
    alert('Nie podałeś/aś adresu e-mail.');
    return false;
    }
    if ( ((f.email.value.indexOf('@',1))==-1)||(f.email.value.indexOf('.',1))==-1 ) {
    alert('Podałeś/aś błędny adres e-mail.');
    return false;
    }
    if (f.imie.value=='') {
    alert('Nie podałeś/aś Swojego imienia.');
    return false;
    }
    if (f.tresc.value=='') {
    alert('Nie wpisałeś/aś treści wiadomości.');
    return false;
    }
    if (f.token.value=='') {
    alert('Nie przepisałeś kodu.');
    return false;
    }
    else {
    return true;
    }
    }

function CheckResponder(f) { if (f.email.value=='') {    alert('Nie podałeś/aś adresu e-mail.');
    return false; }
    if ( ((f.email.value.indexOf('@',1))==-1)||(f.email.value.indexOf('.',1))==-1 ) {    alert('Podałeś/aś błędny adres e-mail');
    return false;    }
    if (f.name.value=='') {  alert('Nie podałeś/aś swojego imienia');
    return false;    }    }
    
function podmiana(co) {
var ile = document.getElementById("wybor").options.length;
for(var i=1; i<=ile; i++) {
var ktora = "w"+i;
if(ktora == co) {
document.getElementById(ktora).style.display = "block";
}
else if(ktora != co) {
document.getElementById(ktora).style.display = "none";
}
}
}
//   ]]>