function JednostkaWzrost(){
//document.edytuj.anons_dodaj_wzrost.value=document.edytuj.anons_dodaj_wzrost.value+"cm";
//document.write(document.edytuj.anons_dodaj_wzrost.value);
document.write("dd");
}


function cel_towarzyski(){
var cel=document.query.cel_query.value;
  if ( cel == "towarzyski" ) {
     document.query.op_szukaj_mezczyzny.value="";
     document.query.stancywilny_query.value="";
     document.query.kraj_query.value="POLSKA";
    }
}

function IloscDzieci(){
var ilosc_dzieci = document.forms[0].elements[3].value;

if ( ilosc_dzieci == 0 ) {
document.forms[0].elements[4].value = 'x';
}

if ( ilosc_dzieci == 1 ) {
document.forms[0].elements[4].value = 'dziewczynka';
}

if ( ilosc_dzieci == 2 ) {
document.forms[0].elements[4].value = 'dziewczynka_i_chlopiec';
}

}

function WiekDzieci(){
<!-- document.forms[0].elements[4].value = document.forms[0].elements[4].value+"cm"; -->
var plec=document.forms[0].elements[4].value;
var ilosc_dzieci = document.forms[0].elements[3].value;

if (plec == 'dziewczynka_i_chlopiec' &&  ilosc_dzieci =='2' ) {
document.forms[0].elements[5].value = 'Wiek chłopca: \nWiek dziewczynki: ';
}
else {
document.forms[0].elements[5].value = '';
}
}


function drukuj(){
if (!window.print){
alert("Musisz mieć NS4.x lub IE5,\naby użyć przycisku drukowania!")
return
}
window.print()
}

function pokaz_mapke1() {
var popup = window.open("upp.php","popup",'width=247,height=305,top=100,left=100,titlebar=no');
var d = popup.document;	
popup.defaultStatus = "- - - MAPKA - - -";
var czas;
d.write('<HTML><HEAD>');
d.write('<TITLE>- - - MAPKA - - -</TITLE></HEAD>');
d.write('<SCRIPT LANGUAGE=\"JavaScript\">');
d.write('function ChangePage() {');
d.write(' window.close(); }');
d.write('function subPage() {');
d.write('setTimeout("ChangePage()",'+czas+');}');
d.write('<\/SCRIPT>');
d.write('<style><!--');
d.write('#n {color:#000000; font-size:10px; font-weight:bold; font-family: Arial,Helvetica;}');
d.write('--></style>');
d.write('<BODY leftmargin="0" BOTTOMMARGIN="0" topmargin="0" marginwidth="0" marginheight="0" BGCOLOR="ffffff" LINK="ffffff" VLINK="ffffff" onLoad="subPage();">');
d.write('<SCRIPT LANGUAGE=\"JavaScript\">\n<!-- //\n');
d.write('document.write (\'<IMG SRC=http://'+mapka+'  border=0 height=269 width=240 BORDER=0 ALT=""><FONT style=\"font-family: Verdana; font-size: 8pt; color: #000080; border: 0 outset #000080\"><CENTER>- - - MAPKA DOJAZDOWA - - -</span></CENTER></TD></TR></TABLE>\');\n');
d.write('// -->\n<\/SCRIPT>');
d.write('<\/BODY><\/HTML>');
d.close();
};


function pokaz_mapke() {
var popup = window.open("upp.php","popup",'width=347,height=700,top=100,left=100,titlebar=yes,toolbar=yes');
var d = popup.document;	
};


    var hellotext="Panel Administracyjny ..."
    var thetext=""
    var started=false
    var step=0
    var times=1

    function welcometext()
    {
      times--
      if (times==0)
      {
        if (started==false)
        {
          started = true;
          window.status = "hellotext";
          setTimeout("anim()",1);
        }
        thetext = hellotext;
      }
    }

    function showstatustext(txt)
    {
      thetext = txt;
      setTimeout("welcometext()",4000)
      times++
    }

    function anim()
    {
      step++
      if (step==7) {step=1}
      if (step==1) {window.status='>==='+thetext+'===<'}
      if (step==2) {window.status='=>=='+thetext+'==<='}
      if (step==3) {window.status='>=>='+thetext+'=<=<'}
      if (step==4) {window.status='=>=>'+thetext+'<=<='}
      if (step==5) {window.status='==>='+thetext+'=<=='}
      if (step==6) {window.status='===>'+thetext+'<==='}
      setTimeout("anim()",200);
    }

function wypelnijdodaj(pole)
{
mywin=window.open('uppdodaj.php?pole='+escape(pole),'Note','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=450,height=250');
} 

function wypelnijedytuj(pole)
{
mywin=window.open('uppedytuj.php?pole='+escape(pole),'Note','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=450,height=250');
} 

function wypelnijdodajtowarzyskie(pole)
{
mywin=window.open('upptowarzyskie.php?pole='+escape(pole),'Note','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=450,height=250');
} 




function initArray()
{
this.length = initArray.arguments.length
for (var i=0;i<this.length;i++)
this[i+1] = initArray.arguments[i]
} // end initArray.

function LastMod(LANGU) {
if ( LANGU == 'PL' ) {
var DOWArray = new initArray("niedziela", "poniedziałek", "wtorek", "środa",
"czwartek", "piątek", "sobota");
var MOYArray = new initArray("stycznia", "lutego", "marca", "kwietnia", "maja",
"czerwca", "lipca", "sierpnia","września", "października", "listopada",
"grudnia");
var LastModDate = new Date(document.lastModified);

var i; //zmienna pomocnicza do sprawdzania y2kbug

document.write("<b>Ostatnia aktualizacja</b>:");
document.write(DOWArray[(LastModDate.getDay()+1)],", ");
document.write(LastModDate.getDate()," ");
document.write(MOYArray[(LastModDate.getMonth()+1)]," ");
}



if ( LANGU == 'EN' ) {
var DOWArray = new initArray("sunday", "monday", "tuesday", "wednesday",
"thursday", "friday", "saturday");
var MOYArray = new initArray("january", "february", "march", "april", "may",
"june", "july", "august","september", "october", "december","november","december");
var LastModDate = new Date(document.lastModified);

var i; //zmienna pomocnicza do sprawdzania y2kbug

document.write("<b>Last modified</b>:");
document.write(DOWArray[(LastModDate.getDay()+1)],", ");
document.write(LastModDate.getDate()," ");
document.write(MOYArray[(LastModDate.getMonth()+1)]," ");
}

if ( LANGU == 'IT' ) {
var DOWArray = new initArray("sunday", "monday", "tuesday", "wednesday",
"thursday", "friday", "saturday");
var MOYArray = new initArray("january", "february", "march", "april", "may",
"june", "july", "august","september", "october", "december","november","december");
var LastModDate = new Date(document.lastModified);

var i; //zmienna pomocnicza do sprawdzania y2kbug

document.write("<b>Ultimo aggiornamento</b>:");
document.write(DOWArray[(LastModDate.getDay()+1)],", ");
document.write(LastModDate.getDate()," ");
document.write(MOYArray[(LastModDate.getMonth()+1)]," ");
}


if ( LANGU == 'GE' ) {
var DOWArray = new initArray("sunday", "monday", "tuesday", "wednesday",
"thursday", "friday", "saturday");
var MOYArray = new initArray("january", "february", "march", "april", "may",
"june", "july", "august","september", "october", "december","november","december");
var LastModDate = new Date(document.lastModified);

var i; //zmienna pomocnicza do sprawdzania y2kbug

document.write("<b>Last modified</b>:");
document.write(DOWArray[(LastModDate.getDay()+1)],", ");
document.write(LastModDate.getDate()," ");
document.write(MOYArray[(LastModDate.getMonth()+1)]," ");
}

//START sprawdzanie wyswietlania daty przez przegladarki IE i NN
i=LastModDate.getYear();
if (i<1900) {i=i+1900;}
document.write(i,",");
//STOP sprawdzanie wyswietlania daty przez przegladarki IE i NN
}



