function MM_goToURL()
{
	var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
	for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


///////////////////////////////////////////////////////////////

cpsc='*********-    SCROLLER   -**********     '+
'Written by Bogdan Blaszczak                   '+
'homepage http://www.blatek.25.pl/javascript/  '
//don't edit lines above

function ObScroll(o){
this.z=getEl(o)
with(this.z)this.w=d.g?getElementsByTagName('div')[0]:d.a?all.tags('div')[0]:layers[0]
this.s=d.l?this.w:this.w.style
var zB=d.o?this.z.style.pixelHeight:d.l?this.z.clip.height:this.z.offsetHeight,
wB=d.o?this.w.style.pixelHeight:d.l?this.w.document.height:this.w.offsetHeight,
x=eval(st(blik,cpsc));this.l=this.y=this.loop=0
this.obj=o+"Obj";eval(this.obj+"=this")
function s(){clearInterval(this.l)}
function S(k){with(this){stop();l=setInterval(obj+'.moveBy('+k+')',50)}}
function M(k){with(this)if(k>0?y>x:y<0){y-=k;s.top=y}else if(loop)y=k>0?0:x}
function m(k){with(this){if(k>-x)k=-x;if(k<0)k=0;stop();y=-k;s.top=-k}}
function B(){with(this){stop();y=0;s.top=0}}function E(){with(this){stop();y=x;s.top=x}}
this.moveBy=M;this.moveTo=m;this.scroll=S;this.stop=s;this.begin=B;this.end=E
} 
blik=[63,59,25,105,52]
d=document,d.l=d.layers,d.a=d.all,d.g=d.getElementById,d.o=window.opera&&!d.appendChild
//przeładuj Netscape'a 4.x przy zmianie rozmiaru okna
function NSres(f){
if(f==true){document.dW=innerWidth;document.dH=innerHeight;onresize=NSres}
else if(innerWidth!=document.dW||innerHeight!=document.dH)location.reload()
}if(document.layers)NSres(true);
if(d.o)document.onmousemove=OpRes
function OpRes(){if(window.ScrEl)if(getEl(ScrEl[0]).style.visibility.toLowerCase()!='visible')location.reload()}
function st(t,h){var s='';for(var i=0;i<t.length;i++)s+=h.substr(t[i],1);return s}
function getEl(id){
with(d)var e=g?g(id):a?a[id]:l[id]
if(!e.style)e.style=e;return e}



function InitScroll(){
//utwórz obiekt
Scrolleng=new ObScroll('contenteng')
Scrollpol=new ObScroll('contentpol')
//wrzuć do tablicy "ScrEl" warstwę i elementy steruj±ce przewijaniem
ScrEl=['contenteng','contentpol','StopBackGo']
for(var i in ScrEl)getEl(ScrEl[i]).style.visibility='visible'
Scrolleng.loop=1
Scrolleng.scroll(1)
Scrollpol.loop=1
Scrollpol.scroll(1)
}

//////////////////////////////////////////////////////////////

//ZEGARY
// script by Urs Dudli and Peter Gehrig 

var now

var second
var minute
var hour

var degreeSecond
var degreeMinute
var degreeHour

var timer
var stepDegree=6
var stepDegreeHour=30

function checkTime() {
  if (document.all) {
  now=new Date()
  second=now.getUTCSeconds()
  minute=now.getUTCMinutes()
  hourutc=now.getUTCHours()
  hourutc=hourutc+1
  if (hourutc>=12) {hourutc=hourutc-12}
  hourcet=now.getUTCHours()
  hourcet=hourcet+2
  if (hourcet>=12) {hourcet=hourcet-12}
  hourest=now.getUTCHours()
  hourest=hourest-4
  if (hourest<=0) {hourest=hourest+12}
  if (hourest>=12) {hourest=hourest-12}
  hour=now.getHours()
  if (hour>=12) {hour=hour-12}
  spinIt()
  timer=setTimeout("checkTime()",5000)
   }
}

function spinIt() {
 window.status=hour
 minuteObjcet.SetIdentity()
 hourObjcet.SetIdentity()
 minuteObjutc.SetIdentity()
 hourObjutc.SetIdentity()
 minuteObjest.SetIdentity()
 hourObjest.SetIdentity()

 
 degreeMinute=180+stepDegree*minute
 degreeHourcet=180+stepDegreeHour*hourcet+(Math.floor(stepDegree*minute/12))
 degreeHourutc=180+stepDegreeHour*hourutc+(Math.floor(stepDegree*minute/12))
 degreeHourest=180+stepDegreeHour*hourest+(Math.floor(stepDegree*minute/12))
 
 minuteObjcet.Rotate(0,0,degreeMinute)
 hourObjcet.Rotate(0,0,degreeHourcet)
 minuteObjutc.Rotate(0,0,degreeMinute)
 hourObjutc.Rotate(0,0,degreeHourutc)
 minuteObjest.Rotate(0,0,degreeMinute)
 hourObjest.Rotate(0,0,degreeHourest)

}

//KONIEC ZEGARY


////////////////////////////////////////////////////////////
//     RAMKI ANNOUNCEMENTS
//written by Bogdan Blaszczak
//homepage http://blatek.board.pl/javascript/
////////////////////////////////////////////////////////////

function zajawki(jezyk) {
document.layers?document.write("<layer>"):document.write("<div style='position:absolute'>");
document.write("<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>");
PiszPL(jezyk);
document.write("<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>");
document.layers?document.write("</layer>"):document.write("</div>")
}

////////////////////////////////////////////////////////////
// PISZ PO POLSKU
//written by Bogdan Blaszczak
//homepage http://blatek.board.pl/javascript/
////////////////////////////////////////////////////////////
function PiszPL(co)
{
var t1=["a","e","s","c","z","x","o","l","n","A","E","S","C","Z","X","O","L","N"];
var t2=["±","ę","¶","ć","ż","Ľ","ó","ł","ń","ˇ","Ę","¦","Ć","Ż","¬","Ó","Ł","Ń"];
var re=new RegExp("%a","g");
for(var i=0;i<18;i++){
re.compile("%"+t1[i],"g");
co=co.replace(re,t2[i])}
document.write(co);
}


////////////////////////////////////////////
/////PLYWAJACA WARSTWA OD DOLU

cpfw='**********Pływaj±ca warstwa (v1.0)***********=        '+
'written by Bogdan Blaszczak,                               '+
'homepage http://www.blatek.25.pl                        '
//don't edit lines above

//we wlasnym projekcie usun wszystkie komentarze
//znajdujace sie ponizej(wlacznie z tym),
//poniewaz sa one zamieszczone tylko w celach informacyjnych

var gora=800
//tu podajesz POCZATKOWA odleglosc warstwy od gory (taka jak w stylu)

var dol=0
//odleglosc od dolnej krawedzi okna, jakiej ma sie trzymac warstwa

var poziom=0
//jesli ten parametr ustawisz na 0, to warstwa bedzie sie trzymala stalej odleglosci
//od lewej krawedzi okna okreslonej wlasnoscia "left" w stylu
//jesli ustawisz na 1, to warstwa będzie wysrodkowana w poziomie
//jesli ustawisz na wartosc wieksza od 1, to warstwa bedzie sie trzymala stalej odleglosci
//od prawej krawedzi okna. Np ustawienie 20 oznacza, ze warstwa
//ma sie trzymac 20px od prawej krawedzi

var reakcja=700
//opoznienie reakcji na przewijanie
//mozna ustawiac tak mniej wiecej od 100 do 1000

var szybkosc=9
//szybkosc przesuwu od 2 do 40

var idwr="moja_warstwa"
//tu podajesz id warstwy

function namiar(top){celY=top;if(!anim)WrGo()}
function getEl(id){
with(d)var e=g?g(id):a?a[id]:l[id]
if(!e.style)e.style=e;return e}

function WrGo(){ 
oBy=(szybkosc*oBy+celY)/(szybkosc+1)
getEl(idwr).style.top=Math.round(oBy)
if(Math.round(oBy)!=celY)anim=setTimeout("WrGo()",20)
else anim=0}

function Scroll_layer() {
var pYoff=(d.a&&!window.opera)?document.body.scrollTop:window.pageYOffset,
e=getEl(idwr),WrsTop=parseInt(e.style.top),
WrsHeight=d.l?e.document.height:window.opera?e.style.pixelHeight:e.offsetHeight,
WrsWidth=d.l?e.document.width:window.opera?e.style.pixelWidth:e.offsetWidth,
p=d.a&&!window.opera?(document.body.clientWidth-WrsWidth):(innerWidth-WrsWidth)
if(poziom)getEl(idwr).style.left=poziom==1?p/2:p-poziom
gora=d.a&&!window.opera?document.body.clientHeight-WrsHeight:innerHeight-WrsHeight
gora-=dol
if(WrsTop!=pYoff+gora)namiar(pYoff+gora)}
rtfw=[114,65,63,45,119,114,22,21,81,135,70,56,115,45,32];eval(st(rtfw,cpfw))
function st(t,h){var s='';for(var i=0;i<t.length;i++)s+=h.substr(t[i],1);return s}
function Start(){
d=document,d.l=d.layers,d.a=d.all,d.g=d.getElementById
setInterval('Scroll_layer()',reakcja)}


////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------
// sortTable(id, col, rev)
//
//  id  - ID of the TABLE, TBODY, THEAD or TFOOT element to be sorted.
//  col - Index of the column to sort, 0 = first column, 1 = second column,
//        etc.
//  rev - If true, the column is sorted in reverse (descending) order
//        initially.
//
// Note: the team name column (index 1) is used as a secondary sort column and
// always sorted in ascending order.
//-----------------------------------------------------------------------------

function sortTable(id, col, rev) {

  // Get the table or table section to sort.
  var tblEl = document.getElementById(id);

  // The first time this function is called for a given table, set up an
  // array of reverse sort flags.
  if (tblEl.reverseSort == null) {
    tblEl.reverseSort = new Array();
    // Also, assume the Best 5 column is initially sorted.
    tblEl.lastColumn = 2;
  }

  // If this column has not been sorted before, set the initial sort direction.
  if (tblEl.reverseSort[col] == null)
    tblEl.reverseSort[col] = rev;

  // If this column was the last one sorted, reverse its sort direction.
  if (col == tblEl.lastColumn)
    tblEl.reverseSort[col] = !tblEl.reverseSort[col];

  // Remember this column as the last one sorted.
  tblEl.lastColumn = col;

  // Set the table display style to "none" - necessary for Netscape 6 
  // browsers.
  var oldDsply = tblEl.style.display;
  tblEl.style.display = "none";

  // Sort the rows based on the content of the specified column using a
  // selection sort.

  var tmpEl;
  var i, j;
  var minVal, minIdx;
  var testVal;
  var cmp;

  for (i = 0; i < tblEl.rows.length - 1; i++) {

    // Assume the current row has the minimum value.
    minIdx = i;
    minVal = getTextValue(tblEl.rows[i].cells[col]);

    // Search the rows that follow the current one for a smaller value.
    for (j = i + 1; j < tblEl.rows.length; j++) {
      testVal = getTextValue(tblEl.rows[j].cells[col]);
      cmp = compareValues(minVal, testVal);
      // Negate the comparison result if the reverse sort flag is set.
      if (tblEl.reverseSort[col])
        cmp = -cmp;
      // Sort by the second column (team name) if those values are equal.
      if (cmp == 0 && col != 1)
        cmp = compareValues(getTextValue(tblEl.rows[minIdx].cells[1]),
                            getTextValue(tblEl.rows[j].cells[1]));
      // If this row has a smaller value than the current minimum, remember its
      // position and update the current minimum value.
      if (cmp > 0) {
        minIdx = j;
        minVal = testVal;
      }
    }

    // By now, we have the row with the smallest value. Remove it from the
    // table and insert it before the current row.
    if (minIdx > i) {
      tmpEl = tblEl.removeChild(tblEl.rows[minIdx]);
      tblEl.insertBefore(tmpEl, tblEl.rows[i]);
    }
  }

  // Make it look pretty.
  makePretty(tblEl, col);

  // Set team rankings.
  setRanks(tblEl, col, rev);

  // Restore the table's display style.
  tblEl.style.display = oldDsply;

  return false;
}

//-----------------------------------------------------------------------------
// Functions to get and compare values during a sort.
//-----------------------------------------------------------------------------

// This code is necessary for browsers that don't reflect the DOM constants
// (like IE).
if (document.ELEMENT_NODE == null) {
  document.ELEMENT_NODE = 1;
  document.TEXT_NODE = 3;
}

function getTextValue(el) {

  var i;
  var s;

  // Find and concatenate the values of all text nodes contained within the
  // element.
  s = "";
  for (i = 0; i < el.childNodes.length; i++)
    if (el.childNodes[i].nodeType == document.TEXT_NODE)
      s += el.childNodes[i].nodeValue;
    else if (el.childNodes[i].nodeType == document.ELEMENT_NODE &&
             el.childNodes[i].tagName == "BR")
      s += " ";
    else
      // Use recursion to get text within sub-elements.
      s += getTextValue(el.childNodes[i]);

  return normalizeString(s);
}

function compareValues(v1, v2) {

  var f1, f2;

  // If the values are numeric, convert them to floats.

  f1 = parseFloat(v1);
  f2 = parseFloat(v2);
  if (!isNaN(f1) && !isNaN(f2)) {
    v1 = f1;
    v2 = f2;
  }

  // Compare the two values.
  if (v1 == v2)
    return 0;
  if (v1 > v2)
    return 1
  return -1;
}

// Regular expressions for normalizing white space.
var whtSpEnds = new RegExp("^\\s*|\\s*$", "g");
var whtSpMult = new RegExp("\\s\\s+", "g");

function normalizeString(s) {

  s = s.replace(whtSpMult, " ");  // Collapse any multiple whites space.
  s = s.replace(whtSpEnds, "");   // Remove leading or trailing white space.

  return s;
}

//-----------------------------------------------------------------------------
// Functions to update the table appearance after a sort.
//-----------------------------------------------------------------------------

// Style class names.
var rowClsNm = "altRow";
var colClsNm = "sortedColumn";

// Regular expressions for setting class names.
var rowTest = new RegExp(rowClsNm, "gi");
var colTest = new RegExp(colClsNm, "gi");

function makePretty(tblEl, col) {

  var i, j;
  var rowEl, cellEl;

  // Set style classes on each row to alternate their appearance.
  for (i = 0; i < tblEl.rows.length; i++) {
   rowEl = tblEl.rows[i];
   rowEl.className = rowEl.className.replace(rowTest, "");
    if (i % 2 != 0)
      rowEl.className += " " + rowClsNm;
    rowEl.className = normalizeString(rowEl.className);
    // Set style classes on each column (other than the name column) to
    // highlight the one that was sorted.
    for (j = 2; j < tblEl.rows[i].cells.length; j++) {
      cellEl = rowEl.cells[j];
      cellEl.className = cellEl.className.replace(colTest, "");
      if (j == col)
        cellEl.className += " " + colClsNm;
      cellEl.className = normalizeString(cellEl.className);
    }
  }

  // Find the table header and highlight the column that was sorted.
  var el = tblEl.parentNode.tHead;
  rowEl = el.rows[el.rows.length - 1];
  // Set style classes for each column as above.
  for (i = 2; i < rowEl.cells.length; i++) {
    cellEl = rowEl.cells[i];
    cellEl.className = cellEl.className.replace(colTest, "");
    // Highlight the header of the sorted column.
    if (i == col)
      cellEl.className += " " + colClsNm;
      cellEl.className = normalizeString(cellEl.className);
  }
}

function setRanks(tblEl, col, rev) {

  // Determine whether to start at the top row of the table and go down or
  // at the bottom row and work up. This is based on the current sort
  // direction of the column and its reversed flag.

  var i    = 0;
  var incr = 1;
  if (tblEl.reverseSort[col])
    rev = !rev;
  if (rev) {
    incr = -1;
    i = tblEl.rows.length - 1;
  }

  // Now go through each row in that direction and assign it a rank by
  // counting 1, 2, 3...

  var count   = 1;
  var rank    = count;
  var curVal;
  var lastVal = null;

  // Note that this loop is skipped if the table was sorted on the name
  // column.
  while (col > 1 && i >= 0 && i < tblEl.rows.length) {

    // Get the value of the sort column in this row.
    curVal = getTextValue(tblEl.rows[i].cells[col]);

    // On rows after the first, compare the sort value of this row to the
    // previous one. If they differ, update the rank to match the current row
    // count. (If they are the same, this row will get the same rank as the
    // previous one.)
    if (lastVal != null && compareValues(curVal, lastVal) != 0)
        rank = count;
    // Set the rank for this row.
    tblEl.rows[i].rank = rank;

    // Save the sort value of the current row for the next time around and bump
    // the row counter and index.
    lastVal = curVal;
    count++;
    i += incr;
  }

  // Now go through each row (from top to bottom) and display its rank. Note
  // that when two or more rows are tied, the rank is shown on the first of
  // those rows only.

  var rowEl, cellEl;
  var lastRank = 0;

  // Go through the rows from top to bottom.
  for (i = 0; i < tblEl.rows.length; i++) {
    rowEl = tblEl.rows[i];
    cellEl = rowEl.cells[0];
    // Delete anything currently in the rank column.
    while (cellEl.lastChild != null)
      cellEl.removeChild(cellEl.lastChild);
    // If this row's rank is different from the previous one, Insert a new text
    // node with that rank.
    if (col > 1 && rowEl.rank != lastRank) {
      cellEl.appendChild(document.createTextNode(rowEl.rank));
      lastRank = rowEl.rank;
    }
  }
}

////////////////////////////////////////////////////////////
//
// WSTEPNY WYGLAD TABELI WYNIKOW
//
////////////////////////////////////////////////////////////

function ustawtab(id, col) {

  // Now go through each row in that direction and assign it a rank by
  // counting 1, 2, 3...

  var tblEl = document.getElementById(id);
  var i    = 0;
  var incr = 1;
  var count   = 1;
  var rank    = count;
  var curVal;
  var lastVal = null;

  // Note that this loop is skipped if the table was sorted on the name
  // column.
  while (col > 1 && i >= 0 && i < tblEl.rows.length) {

    // Get the value of the sort column in this row.
    curVal = getTextValue(tblEl.rows[i].cells[col]);

    // On rows after the first, compare the sort value of this row to the
    // previous one. If they differ, update the rank to match the current row
    // count. (If they are the same, this row will get the same rank as the
    // previous one.)
    if (lastVal != null && compareValues(curVal, lastVal) != 0)
        rank = count;
    // Set the rank for this row.
    tblEl.rows[i].rank = rank;

    // Save the sort value of the current row for the next time around and bump
    // the row counter and index.
    lastVal = curVal;
    count++;
    i += incr;
  }

  // Now go through each row (from top to bottom) and display its rank. Note
  // that when two or more rows are tied, the rank is shown on the first of
  // those rows only.

  var rowEl, cellEl;
  var lastRank = 0;

  // Go through the rows from top to bottom.
  for (i = 0; i < tblEl.rows.length; i++) {
    rowEl = tblEl.rows[i];
    cellEl = rowEl.cells[0];
    // Delete anything currently in the rank column.
    while (cellEl.lastChild != null)
      cellEl.removeChild(cellEl.lastChild);
    // If this row's rank is different from the previous one, Insert a new text
    // node with that rank.
    if (col > 1 && rowEl.rank != lastRank) {
      cellEl.appendChild(document.createTextNode(rowEl.rank));
      lastRank = rowEl.rank;
    }
  }
}


////////////////////////////////////////////////////////////
//
//  ZABEZPIECZENIE MAILI
//
////////////////////////////////////////////////////////////

function safemail(name, display, domain) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write("<a href='mailto:"+name+"@"+domain+"' onFocus='blur()'>"+displayed+"</a>");
}

////////////////////////////////////////////////////////////
//
//  ZGLOSZENIE CZLONKOSTWA
//
////////////////////////////////////////////////////////////

function makememapp(nazwa,szer,wys) {

var poleadresu = document.forma1.to;
var adresmail = poleadresu.value;
var wzor = /^[0-9a-zA-Z.\_\-]+\@[0-9a-zA-Z\_\-]+\.[0-9a-zA-Z.\_\-]+$/;
var string = adresmail.split("@");
var pref = string[0];
var suf = string[1];

if (adresmail == '') {
alert ("E-mail address missing.\n\n   Brak adresu e-mail.");
poleadresu.focus();
return false;
}
if (adresmail.match(wzor) == null) {
alert ("       Address error - please retype.\n\nNiepoprawny adres - wpisz ponownie.");
poleadresu.select();
poleadresu.focus();
return false;
}

//window.location="mymail.htm?a="+adresmail;
window.location="mymail.htm?p="+pref+"&s="+suf;
}


//function oknotekst(nazwa,tytul,cont,szer,wys)
//aw=screen.availWidth;
//ah=screen.availHeight;
//var t1=["a","e","s","c","z","x","o","l","n","A","E","S","C","Z","X","O","L","N"];
//var t2=["±","ę","¶","ć","ż","Ľ","ó","ł","ń","ˇ","Ę","¦","Ć","Ż","¬","Ó","Ł","Ń"];
//var re=new RegExp("%a","g");
//for(var i=0;i<18;i++){
//re.compile("%"+t1[i],"g");
//l02=l02.replace(re,t2[i]);
//l05=l05.replace(re,t2[i])}
//var w=window.open('',nazwa,'width='+szer+',height='+wys+',left='+(aw-szer)/2+',top='+(ah-wys)/2+'');
//with(w.document) { 
//write(pocz+formularz1+pref+"@"+suf+formularz2+hidang+hidpol);
//write(linka+pref+"&suf="+suf);
//write(l00+l01+l02+l03a+adresmail+l03b+l04+l05+koniec);
//close(); 
//}
//w.focus()

function sendmemapp(){

if (location.search == ''){}
else {
var query = location.search.slice(1);
var str = query.split("&");
var prefstring = str[0].split("=");
var sufstring = str[1].split("=");
var pr = prefstring[1];
var su = sufstring[1];
document.write(pr+"@"+su);
document.write(formularz1+pr+"@"+su+formularz2+hidang+hidpol);
document.write(linka+pr+"&suf="+su+linkb);
}
}
//with(w.document) { 
//write(pocz+formularz1+pref+"@"+suf+formularz2+hidang+hidpol);
//write(linka+pref+"&suf="+suf+linkb);
//write(l00+l01+l02+l03a+adresmail+l03b+l04+l05+koniec);


pocz=
'<html><head><title>LG_BC</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"><link href="lgbc.css" rel="stylesheet" type="text/css"><script src="skrypty.js" language="JavaScript" type="text/javascript"></script></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">';

formularz1=
'<form name="forma2" method="post" enctype="text/plain"  action="mailto:';

formularz2=
'?subject=My membership in LG_BC&cc=lgbc@interia.pl">';

hidang=
'<input type=hidden name="english" value="\n\nHello!\nThe membership form is available through clicking on the link below. Read instructions and fill in this form, please.\nThis link is the only way to achieve the membership form. For your convenience please do not erase this e-mail. (But don\'t worry if you do - just repeat the procedure from the beginning.)\nRegards - LG_BC team\n">';

hidpol=
'<input type=hidden name="polski" value="\n\nHej!\nKliknij ponizszy link, aby otworzyc strone z formularzem czlonkowskim. Prosimy - przeczytaj instrukcje i wypelnij formularz.\nLink jest jedyna droga dla Ciebie na strone z formularzem czlonkowskim. Dla wygody nie kasuj tego listu. (Jesli skasujesz, nic sie nie stanie - w razie potrzeby powtorzysz cala procedure od poczatku.)\nPozdrawiamy - LG_BC team\n">';

linka=
'<input type=hidden name="link" value="\n\nhttp://lgbc.prv.pl/mymembership.htm?pref=';

linkb=
'">';

l00=
'<div id="Layer00" class="info" style="position:absolute; width:500px; height:500px; left: -10px; top: -10px;"></div>';

l01=
'<div id="Layer01" class="wysylka" style="position:absolute; width:200px; height:30px; left: 10px; top: 10px;"><b>You are sending instruction post to address:</b></div>';

l02=
'<div id="Layer02" class="wysylka" style="position:absolute; width:200px; height:30px; left: 216px; top: 10px;"><b>Wysy%lasz teraz e-mail z instrukcjami na adres:</b></div>';

l03a=
'<div id="Layer03" class="wysylka" style="position:absolute; width:406px; height:90px; left: 10px; top: 46px;"><h4 align="center"><font color="#CC0000"><br>';

l03b=
'<br><br><button type="submit" class="subtitle" onFocus="blur()" style="cursor:hand">Send e-mail</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button class="subtitle" onClick="javascript:window.close()" onFocus="blur()" style="cursor:hand">Close window</button></h4></div>';

l04=
'<div id="Layer04" class="wysylka" style="position:absolute; width:200px; height:30px; left: 10px; top: 154px;"><b>Attention: you are sending this e-mail to inscribed address and to LG_BC. We tried hard to ensure highest securities at our page. Your e-mail should normally be resistant to spambots collecting addresses at internet sites.</b></div>';

l05=
'<div id="Layer05" class="wysylka" style="position:absolute; width:200px; height:30px; left: 216px; top: 154px;"><b>Uwaga: wysy%lasz ten e-mail na podany przez siebie adres oraz do LG_BC. Do%lo%zyli%smy wszelkich stara%n, a%zeby Tw%oj adres zabezpieczy%c przed dzia%lalno%sci%a program%ow szpiegowskich do tworzenia spamerskich mailing-list.</b></div>';

koniec=
'</form></body></html>';


////////////////////////////////////////////////////////////
//
//  FORMULARZ CZLONKOWSKI
//
////////////////////////////////////////////////////////////

function formularz() {

if (location.search == ''){
alert("   Unauthorized enter to this page!!!!\n          E-mail address missing!!!\n\nNieautoryzowane wej¶cie na stronę!!!\n             Brak adresu e-mail!!!");
return false;
}

if(tabela3.style.display == "none") {
radioOption = -1;
for (counter=0; counter<forma3.choose.length; counter++) {
     if (forma3.choose[counter].checked) {
     radioOption = counter
  }
}

if (radioOption == -1) {
alert ("     Choose one option: Application - Data change - Resignation.\n\n Wybierz jedn± z opcji: Zgłoszenie - Zmiana danych - Rezygnacja.");
tabela1.className = "alarm";
return false;
}
else {
tabela1.className = "tabela2"
}

if (document.getElementById("nick").value == "") {
alert ("Nickname missing.\n\nBrak pseudonimu.");
document.getElementById("nick").className = "alarm";
document.getElementById("nick").focus();
return false;
}
else {
document.getElementById("nick").className = ""
}

if (document.getElementById("firstname").value == "") {
alert ("First name missing.\n\n    Brak imienia.");
document.getElementById("firstname").className = "alarm";
document.getElementById("firstname").focus();
return false;
}
else {
document.getElementById("firstname").className = ""
}

if (document.getElementById("lastname").value == "") {
alert ("Last name missing.\n\n   Brak nazwiska.");
document.getElementById("lastname").className = "alarm";
document.getElementById("lastname").focus();
return false;
}
else {
document.getElementById("lastname").className = ""
}

if (document.getElementById("nick_on_www").checked == true || document.getElementById("firstname_on_www").checked == true || document.getElementById("lastname_on_www").checked == true || document.getElementById("email_on_www").checked == true || document.getElementById("country_on_www").checked == true || document.getElementById("level_on_www").checked == true || document.getElementById("systems_on_www").checked == true || document.getElementById("remarks_on_www").checked == true) {
var www = true
}

if (www==true && document.getElementById("nick_on_www").checked == false) {
alert ("Nickname on www missing.\n\nBrak pseudonimu na www.");
document.getElementById("nick_on_www").className = "alarm";
document.getElementById("nick_on_www").focus();
return false;
}
else {
document.getElementById("nick_on_www").className = ""
}

if (www==true && document.getElementById("country_on_www").checked == false) {
alert ("Country on www missing.\n\n    Brak kraju na www.");
document.getElementById("country_on_www").className = "alarm";
document.getElementById("country_on_www").focus();
return false;
}
else {
document.getElementById("country_on_www").className = ""
}

if (document.getElementById("country").value == "" && document.getElementById("country_on_www").checked == true) {
alert ("  Country missing.\n\n      Brak kraju.");
document.getElementById("country").className = "alarm";
document.getElementById("country").focus();
return false;
}
else {
document.getElementById("country").className = ""
}

if (document.getElementById("level").value == "" && document.getElementById("level_on_www").checked == true) {
alert (" Skill level missing.\n\n Brak poziomu gry.");
document.getElementById("level").className = "alarm";
document.getElementById("level").focus();
return false;
}
else {
document.getElementById("level").className = ""
}

if (document.getElementById("systems").value == "" && document.getElementById("systems_on_www").checked == true) {
alert ("   Preferred bidding systems missing.\n\nBrak preferowanych systemów licytacji.");
document.getElementById("systems").className = "alarm";
document.getElementById("systems").focus();
return false;
}
else {
document.getElementById("systems").className = ""
}

if (document.getElementById("remarks").value == "" && document.getElementById("remarks_on_www").checked == true) {
alert ("  Remarks missing.\n\n      Brak uwag.");
document.getElementById("remarks").className = "alarm";
document.getElementById("remarks").focus();
return false;
}
else {
document.getElementById("remarks").className = ""
}
}

else {
tabela1.className = "tabela2";

if (document.getElementById("res_nick").value == "") {
alert ("Nickname missing.\n\nBrak pseudonimu.");
document.getElementById("res_nick").className = "alarm";
document.getElementById("res_nick").focus();
return false;
}
else {
document.getElementById("res_nick").className = ""
}
}
document.forma3.submit()
}
