
<!--

function podglad(url, x, y) {
 okno = window.open("", "o", "width="+x+", height="+y+", left=100, top=25,"
   + " innerwidth="+x+", innerheight="+y+", location=0, directories=0,"
   + " scrollbars=0, menubar=0, toolbar=0, status=0, resizable=1");
 okno.document.open();
 okno.document.writeln(' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ');
 okno.document.writeln('  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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>Mechanika Maszyn KACPEREK</title><style type="text/css"><!--');
 okno.document.writeln('body {margin:0px; padding:0px; background:white;}');
 okno.document.writeln('img {display:block; border:0px;}');
 okno.document.writeln('--></style></head><body>');
 okno.document.writeln('<a href="javascript:self.close()"><img ');
 okno.document.writeln('src="'+url+'" alt="Zamknij okno" /></a></body></html>');
 okno.document.close();
 okno.focus();
}

function showDescription(rowNo)
  {

     if(document.getElementById || document.all)
     {
        var descriptionNo = 'szczegoly' + rowNo;
        var imageName = 'plus' + rowNo;
			
       if ((document.getElementById(descriptionNo).style.display == '') || (document.getElementById(descriptionNo).style.display == 'none'))
       {
		 
		 var xrowNo;
         for (xrowNo=1;xrowNo<14;xrowNo++) {   
         document.getElementById('szczegoly' + xrowNo).style.display = 'none';
         document.images['plus' + xrowNo].src = 'img/plus.gif'; }
			
         document.getElementById(descriptionNo).style.display = 'block';
         document.images[imageName].src = 'img/minus.gif';
       }
       else if(document.getElementById(descriptionNo).style.display == 'block')
       {
         document.getElementById(descriptionNo).style.display = 'none';
         document.images[imageName].src = 'img/plus.gif';
       }
     }
  }

function showDescription_silniki(rowNo_silniki)
  {
    if(document.getElementById || document.all)
     { 
        var descriptionNo_silniki = 'szczegoly_silniki' + rowNo_silniki;
   
       if ((document.getElementById(descriptionNo_silniki).style.display == '') || (document.getElementById(descriptionNo_silniki).style.display == 'none'))
       {
   
   var xrowNo_silniki;
         for (xrowNo_silniki=1;xrowNo_silniki<3;xrowNo_silniki++) {   
         document.getElementById('szczegoly_silniki' + xrowNo_silniki).style.display = 'none';
         document.getElementById(descriptionNo_silniki).style.display = 'block';
         }
         document.getElementById(descriptionNo_silniki).style.display = 'block';
                  
       }
       else if(document.getElementById(descriptionNo_silniki).style.display == 'block')
       {
         document.getElementById(descriptionNo_silniki).style.display = 'none';
       }
     }
  }



function sprawdz_kontakt(f) {
  if (f.imie.value.length<1) { alert("Nie podano Imienia i Nazwiska "); return false; }
  if (f.email.value.length<3) { alert("Nie podano adresu e-mail"); return false; }  
  if (f.tel.value.length<3) { alert("Nie podano numeru telefonu"); return false; }  		
  if (f.pyt.value.length<1) { alert("Wpisz treść zapytania"); return false; }  
  return true;
}

function sprawdz_katalog(f) {
  if (f.forma.selectedIndex<1) { alert("Wybierz format katalogu"); return false; }
  if (f.imie.value.length<1) { alert("Nie podano Imienia i Nazwiska "); return false; }
  if (f.miasto.value.length<1) { alert("Nie podano adresu"); return false; }  
  if (f.adres.value.length<1) { alert("Nie podano adresu"); return false; }  	
  return true;
}
	
function sprawdz_email(t) {

  if (t.nazwisko.value.length<2) { alert("Nie podano Imienia i Nazwiska "); return false; }

  maska = /^[0-9a-z_.-]+@([0-9a-z-]+.)+[a-z]{2,4}$/;
  if (maska.test(t.email.value)==false) { 
    alert("Podany adres e-mail nie jest poprawny!"); 
    return false;
  }
  return true;
}

	
// -->
