<!--
  
  
// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.


var SlideShowSpeed = 3000;
var CrossFadeDuration = 2;

var Picture = new Array();
var Caption = new Array(); 

Picture[1]  = 'quady/images/motocykle_1.jpg';
Picture[2]  = 'quady/images/motocykle_3.jpg';
Picture[3]  = 'quady/images/motocykle_2.jpg';
Picture[4]  = 'quady/images/motocykle_4.jpg';


Caption[1]  = "";
Caption[2]  = "";
Caption[3]  = "";
Caption[4]  = "";


var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}







function openNewWindow(theURL,winName) { 
  window.open(theURL,winName,'toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizeable=yes,width=840,height=600,top='+((screen.height/2)-(600/2))+',left='+((screen.width/2)-(840/2)));
}

function MM_openBrWindow(theURL,winName) { 
  window.open(theURL,winName,'toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizeable=yes,width=580,height=468,top='+((screen.height/2)-(468/2))+',left='+((screen.width/2)-(580/2)));
}

function MM_openBrWindow2(theURL,winName) { 
  window.open(theURL,winName,'toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizeable=yes,width=480,height=550,top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(480/2)));
}


function OpenWinOpis(www) {
     msg=open(www,"DisplayWindow",'toolbar=no,directories=no,menubar=no,status=no,scrollbars=no,width=700,height=550'); 
     }


function check_rejestracja(form) { 

var note; 
note = "Proszę uzupełnić dane. "; 


if (form.name_u.value.length < 3) 
 { 
 form.name_u.focus()
 alert(note); 
 return false; }


if (form.email_u.value.indexOf("@") == -1 || form.email_u.value.indexOf(".") == -1 ) 
 { note = "Proszę wpisać poprawny adres e-mail "; 
 form.email_u.focus()
 alert(note); 
return false; }


if (form.password.value.length < 6) 
 { 
 form.password.focus()
 alert('Zbyt krótkie hasło - Hasło powinno mieć minimum 6 znaków'); 
 return false; }


if (form.ulica.value.length < 3) 
 { 
 form.ulica.focus()
 alert(note); 
 return false; }



if (form.numer.value.length < 1) 
 { 
 form.numer.focus()
 alert(note); 
 return false; }


if (form.kod.value.length < 2) 
 { 
 form.kod.focus()
 alert(note); 
 return false; }


if (form.miasto.value.length < 2) 
 { 
 form.miasto.focus()
 alert(note); 
 return false; }


if (form.panstwo.value.length < 1) 
 { 
 form.panstwo.focus()
 alert(note); 
 return false; }


//if (!form.reg_rej.checked && form.reg_rej.value != 2) 
//{ alert('Musisz zaakceptować Regulamin serwisu!'); 
//return false; }


return true; }




function check_zamowienie(form) { 
if (!form.platnosc[0].checked && !form.platnosc[1].checked )  {   alert('Proszę wybrać sposób płatności.');   return false; }
return true; }

//-->