function showExample()
  {
FotoWin = window.open('', 'Foto', 'toolbar=no, status=no, resizable=yes, width=800, height=600');

FotoWin.document.write("<html><head><meta http-equiv=Content-Language content=pl><meta http-equiv=Content-Type content=text/html; charset=latin2></head>");
FotoWin.document.write("<body topmargin = 0  bottommargin= 0 ><div align= center >");
FotoWin.document.write("<table border = 0  cellpadding= 0  cellspacing= 0  width= 750  height= 70  id= table38 ><tr><td width= 501 >");
FotoWin.document.write("<img border = 0  src = gfx/logo2.jpg  width= 500  height= 70 ></td><td width= 249 background=gfx/pp1.jpg></td></tr>");
FotoWin.document.write("<tr><td width= 750  colspan= 2 >");
FotoWin.document.write("<table border= 0  cellpadding= 0  cellspacing= 0  width= 100%  height= 10  id= table39  background= gfx/bb3.jpg >");
FotoWin.document.write("<tr><td height= 10  style= font-size: 2mm ></td></tr></table></td></tr></table></div><div align= center ><table id= table11  style= border-collapse: collapse  cellPadding= 0  width= 750  border= 0  height= 410 >");
FotoWin.document.write("<tr><td><p align= center ><u><font face= Arial  color= #800000  size= 2 ><b>Dane adresowe firmy:<br></b></font></u></td></tr>");
FotoWin.document.write("<tr><td style= font-size: 8pt ><p align= center ></td></tr><tr><td valign= top >");
FotoWin.document.write("<table id= table37  style= border-collapse: collapse  width= 709  border= 0 >");


FotoWin.document.write("<tr><td width= 187 ><p align= right ><font face= Arial  size= 2 >Pełna nazwa firmy:</td>");
FotoWin.document.write("<td width= 4 ></td><td width= 512 >"+this.tablesForm.Nazwa_f.value+"</td></tr>");
FotoWin.document.write("<tr><td align= right  width= 187 >");
FotoWin.document.write("<font face= Arial  size= 2 >Adres:</font></td>");
FotoWin.document.write("<td width= 4 ></td><td width= 512 >"+this.tablesForm.Adres.value+"</td></tr>");
FotoWin.document.write("<tr><td align= right  width= 187 >");
FotoWin.document.write("<font size= 2  face= Arial >Kod pocztowy</font>");
FotoWin.document.write("<font face= Arial >:</font></td>");
FotoWin.document.write("<td width= 4 ></td><td width= 512 >"+this.tablesForm.Kod1.value+"");
FotoWin.document.write("- "+this.tablesForm.Kod2.value+"</td> ");
FotoWin.document.write("</tr><tr><td align= right  width= 187 >");
FotoWin.document.write("<font size= 2  face= Arial >");
FotoWin.document.write("Miasto/ Miejscowo?ć</font>:</td>");
FotoWin.document.write("<td width= 4 ></td><td width= 512 >"+this.tablesForm.Miejscowosc.value+"</td>");
FotoWin.document.write("</tr><tr><td align= right  width= 187 ><font face= Arial  size= 2 >Wojew&oacute;dztwo:");
FotoWin.document.write("</font></td><td width= 4 ></td><td width= 512 >"+this.tablesForm.Wojewodztwo.value+"</td></tr>");
FotoWin.document.write("<tr><td align= right  width= 187 ><font face= Arial  size= 2 >Telefon: </font></td>");
FotoWin.document.write("<td width= 4 ></td><td width= 512 >"+this.tablesForm.KierunekT.value+" - "+this.tablesForm.Telefony.value+"</td></tr> ");
FotoWin.document.write("<tr><td align= right  width= 187 ><font face= Arial  size= 2 >Faks.: </font></td>");
FotoWin.document.write("<td width= 4 ></td><td width= 512 >"+this.tablesForm.KierunekF.value+" - "+this.tablesForm.Faxy.value+"</td></tr> ");
FotoWin.document.write("<tr><td align= right  width= 187 ><font face= Arial  size= 2 >Adres Email: </font>");
FotoWin.document.write("</td><td width= 4 ></td><td width= 512 >"+this.tablesForm.Email.value+"</td></tr><tr>");
FotoWin.document.write("<td align= right  width= 187 ><font face= Arial  size= 2 >Imię i nazwiskoszefa firmy :");
FotoWin.document.write("</font></td><td width= 4 ></td><td width= 512 >"+this.tablesForm.ImieNazwiskoSzefa.value+"</td></tr>");
FotoWin.document.write("<tr><td align= right  width= 187 ><font face= Arial  size= 2 >Funkcja:</font></td>");
FotoWin.document.write("<td width= 4 ></td><td width= 512 >"+this.tablesForm.FunkcjaSzefa.value+"</td></tr>");
FotoWin.document.write("<tr><td align= right  width= 187 ><font face= Arial  size= 2 >Adres Email: </font>");
FotoWin.document.write("</td><td width= 4 ></td><td width= 512 >"+this.tablesForm.EmailSzefa.value+"</td></tr>");
FotoWin.document.write("</table><p></td></tr></table><p><input type= button  value= Zamknij name= B3  onclick= window.close(); ></div><p align= center ></p>");
}

function disFilds() {
//document.tablesForm.LinkGlowny.disabled = true;
//document.tablesForm.WWW.disabled = true;
//document.tablesForm.WWW.value = 'brak';
//document.tablesForm.LinkOFirmie.disabled = true;
//document.tablesForm.LinkOferta.disabled = true;
//document.tablesForm.LinkKontakt.disabled = true;
//document.tablesForm.Nazwa_s.disabled = true;
//document.tablesForm.Miejscowosc_nastr.disabled = true;
//document.tablesForm.ZakresDzialalnosci.disabled = true;
//document.tablesForm.ZakresDzialalnosciWysz.disabled = true;
}

function disFilds2() {

//document.tablesForm.LinkGlowny2.disabled = true;
//document.tablesForm.LinkGlowny2.value = 'brak';
}

function enaFilds() {
//if(document.tablesForm.LinkGlowny.value=='') document.tablesForm.LinkGlowny.value=document.tablesForm.WWW.value;
//if(document.tablesForm.LinkOFirmie.value=='') document.tablesForm.LinkOFirmie.value='http://www.';
//if(document.tablesForm.LinkOferta.value=='') document.tablesForm.LinkOferta.value='http://www.';
//if(document.tablesForm.LinkKontakt.value=='') document.tablesForm.LinkKontakt.value='http://www.';
//document.tablesForm.WWW.disabled = false;
//if(document.tablesForm.WWW.value=='') document.tablesForm.WWW.value = 'www.';
//if(document.tablesForm.LinkKontakt.value=='') document.tablesForm.LinkGlowny.value = 'www.';
//document.tablesForm.LinkGlowny.disabled = false;
//document.tablesForm.LinkOFirmie.disabled = false;
//document.tablesForm.LinkOferta.disabled = false;
//document.tablesForm.LinkKontakt.disabled = false;
//document.tablesForm.Nazwa_s.disabled = false;
//document.tablesForm.Miejscowosc_nastr.disabled = false;
//document.tablesForm.ZakresDzialalnosci.disabled = false;
//document.tablesForm.ZakresDzialalnosciWysz.disabled = false;
}

function enaFilds2() {
//document.tablesForm.LinkGlowny2.disabled = false;
}

function openWindow()
{
var newWin2 = window.open('winExp.php', 'newWin', 'width=600,height=600,toolbar=0,menubar=0,status=0,scrollbars=0,resizable=0');
}

function openWindow2()
{
var newWin2 = window.open('linkExp.php', 'newWin', 'width=800,height=350,toolbar=0,menubar=0,status=0,scrollbars=0,resizable=0');
}

function go2()
{
   window.open('http://'+document.tablesForm.LinkGlowny.value,'newW');
}
function zliczaj_znaki1()
{
   if(document.tablesForm.ZakresDzialalnoscib.value.length>400)
  {
     alert('Przekroczono dozwoloną ilość znaków (maksymalnie 400 znaków)');
  }
}
function zliczaj_znaki2()
{
   if(document.tablesForm.ZakresDzialalnoscib.value.length>400)
  {
     alert('Przekroczono dozwoloną ilość znaków (maksymalnie 400 znaków)');
  }
}


function Ukryj() 
{ 
if (document.layers) document.layers["Load"].visibility="hidden"; 
if (document.all) document.all["Load"].style.visibility="hidden"; 
} 
