<!--

// ----------------- UJ JAVASCRIPT

var logo;
var xOff = 5;
var yOff = 1230;
var buli=1036785600;

var timerID = null;
var timerRunning = false;

/*
Write To Layer
c Eddie Traversa (nirvana.media3.net)
To add more shock to your site, visit www.DHTML Shock.com
*/

function writetoLyr(name, message) {
    if (document.layers) {
        document.layers[name].document.close();
        document.layers[name].document.write(message);
        document.layers[name].document.close();
    } else {
        if (document.all) {
            eval("document.all." + name + ".innerHTML='" + message + "'");
        } else {
            document.getElementById(name).innerHTML = message;
        }
    }
}

function stopclock() 
 {
   if (timerRunning) clearTimeout(timerID);
   timerRunning = false;
 }

function startclock() 
 {
  // Make sure the clock is stopped
  stopclock();
  // kiszamoljuk mennyi a difi a szerver es a kliens kozt
  gmtDate=new Date();
  clienttime=Math.round(gmtDate.valueOf()/1000);
  diff=servertime-clienttime;
  forgo=0;
  showtime();
 }

function showtime()
 {
   gmtDate=new Date();
   clienttime=Math.round(gmtDate.valueOf()/1000);
   ossz_mp=buli-(clienttime+diff);
   nap=Math.floor(ossz_mp/(24*60*60)); 
   ossz_mp=ossz_mp-(nap*24*60*60);
   ora=Math.floor(ossz_mp/(60*60));    
   ossz_mp=ossz_mp-(ora*60*60);
   perc=Math.floor(ossz_mp/60);        
   ossz_mp=ossz_mp-(perc*60);
   mp=ossz_mp;                         
//   alert(mp);
  
   tmp="&nbsp;&nbsp;&nbsp; még ";
   if (nap!=0)  { tmp=tmp+nap+" nap "; } 
   if (ora!=0)  { tmp=tmp+ora+" óra "; } 
   if (perc!=0) { tmp=tmp+perc+" perc "; } 
   if (mp!=0)    { tmp=tmp+mp+" másodperc "; } 
   tmp=tmp+"van vissza a jubileumi buliig";
   if (clienttime>buli) { tmp="&nbsp;&nbsp;&nbsp;már megy a buli!!!"; }
   tmp2="<br/><IMG SRC=\"kepek/t1x1.gif\" WIDTH=\"100\" HEIGHT=\"10\" ALT=\"\">";
//   document.cd.cdi.value=tmp;
   writetoLyr("countd",tmp+tmp2);
   timerID = setTimeout("showtime()",1000);
   timerRunning = true;
 }

function initall()
 {
//   var count=GetCookie('count');
//   if (count==null) { inittop100(); }
//   initgolyok();
   logo_init();
   if (servertime<buli) { startclock(); }
 }


function logo_init()
{
  logo = getLayer("logo");
//  showLayer(logo);
  setInterval('updateLogo()', 20);
}

function updateLogo() 
{
  var x, y;
  // Resposition logo.
//  x = getPageScrollX() + getWindowWidth()  - getWidth(logo)  - xOff;
//  y = getPageScrollY() + getWindowHeight() - getHeight(logo) - yOff;
  x =  ((getWindowWidth()-800)/2) +getWidth(logo)+ xOff;
//  x = getWidth(logo)  + xOff;
  y = getHeight(logo) + yOff;
//  if (getPageScrollY()>(yOff-50)) { showLayer(logo); } else { hideLayer(logo); }
  hideLayer(logo);
  moveLayerTo(logo, x, y);
}

 function open_reklam()
  {
    window.open('reklam.htm', 'reklam', 'resizable=no,width=333,height=495,scrollbars=no');
    return true;
  }

function check_sms(x)
 {                                        
//   alert(document.smsbox.szamlalo.valueOf);
//   alert(document.smsbox.smstartalom.value.length);
   if (document.smsbox.smstartalom.value.length==0)
    {
      alert("Üres SMS-t nem lehet elküldeni...");
      tmp=false;
    } else 
    if (document.smsbox.smstartalom.value.length>160)
     { 
       alert("Az üzenet hosszabb, mint 160 karakter. Sajnos nem lehet elküldeni...");
       tmp=false;
     } else
     {
       tmp=confirm("Biztos el akarod küldeni?");
     }
   return tmp;
 }

function count_chars(x)
 {                                        
//   alert(document.smsbox.szamlalo.valueOf);
   document.smsbox.szamlalo.value=160-document.smsbox.smstartalom.value.length;
   return true;
 }

function emailcheck(x,y)
{
// alert(document.forms[x].elements[y].value); 
 if (
      (document.forms[x].elements[y].value.indexOf("@",0)<1) ||
      (document.forms[x].elements[y].value=="")
    )
     { alert("Kérlek próbáld meg újra! Ez nem jó e-mail cím!"); return false; }
 return true;
}

function ws(x)
 {
  var tmp=x;
  if (tmp=='def') { tmp=''; }
  window.status=tmp;
  return true;
 }

// ----------------- REGI JAVASCRIPT

promo2001url="./";
filenames = new Array("hirek","koncertek","albumok","felallas","tortenet","sajto","kapcsolat")
isNetscape = (navigator.appName.indexOf("Netscape")>=0)?1:0;

function underdev()
 {
   alert("Ez még fejlesztés alatt áll...:))");
   return false;
 }

function alttxt(n)
{
 if (n==1) tmp="hírek";
 if (n==2) tmp="koncertek";
 if (n==3) tmp="albumok";
 if (n==4) tmp="felállás";
 if (n==5) tmp="történet";
 if (n==6) tmp="sajtó";
 if (n==7) tmp="kapcsolat";
 return tmp;
}

function aktiv(ezt,mode)
{
 var num=0;
 if (ezt=="A") num=1;
 if (ezt=="B") num=2;
 if (ezt=="C") num=3; 
 if (ezt=="D") num=4;
 if (ezt=="E") num=5;
 if (ezt=="F") num=6;
 if (ezt=="G") num=7;
 if (mode==0) 
  {                                                 
   document.images[ezt].src="kepek/gombok/"+filenames[num-1]+".gif"; 
   write_status('def');
  }
 if (mode==1) 
  { 
   document.images[ezt].src="kepek/gombok/"+filenames[num-1]+"_be.gif"; 
   write_status(alttxt(num));
  } 
 return true;
}

//////////////////////////////////////////////////////////////////////////////
// GETLASTMODI 
//////////////////////////////////////////////////////////////////////////////

function lz(x)
{
 if (x<10) { x='0'+x; }
 return x;
}

function getlastmodi()
{
 honap=new Array(12);
 honap[0]="január"; honap[1]="február"; honap[2]="március"; honap[3]="április";
 honap[4]="május"; honap[5]="június"; honap[6]="július"; honap[7]="augusztus";
 honap[8]="szeptember"; honap[9]="október"; honap[10]="november"; honap[11]="december";
 napok=new Array(7);
 napok[0]="vasárnap"; napok[1]="hétfő"; napok[2]="kedd"; napok[3]="szerda";
 napok[4]="csütörtök"; napok[5]="péntek"; napok[6]="szombat";
 lastmoddate = new Date(document.lastModified);
 ev=lastmoddate.getFullYear();
 if (ev<1990) { ev=ev+100; lastmoddate.setYear(ev) }  // EXPLORER miatt
 honap=honap[lastmoddate.getMonth()];
 nap=lastmoddate.getDate();
 iknap=napok[lastmoddate.getDay()];
 ora=lz(lastmoddate.getHours());
 perc=lz(lastmoddate.getMinutes());
 mperc=lz(lastmoddate.getSeconds());
 document.write(ev,' ',honap,' ',nap,'. (',iknap,') - ',ora,':',perc,':',mperc);
 return true;
}

/////////////////////////////////// GOLYOK ///////////////////////////////

function MoveHandler(evnt)
{
 if (netscape) 
 {
  Xpos = evnt.pageX ;
  Ypos = evnt.pageY ;
 }
}

function animateLogo()
{
 if (netscape) 
 {
  yBase = window.innerHeight/4;
  xBase = window.innerWidth/4;
  for ( j = 0 ; j < 6 ; j++ ) 
  {
   document.layers[j].top = Ypos +
   Math.cos((10*Math.sin(currStep/(60+j)))+j*60)*yBase*(Math.sin(20+currStep/10)+0.2)*Math.cos((currStep + j*15)/20)/2;
   document.layers[j].left =Xpos +
   Math.sin((10*Math.sin(currStep/60))+j*60)*xBase*(Math.sin(20+currStep/4)+0.1)*Math.cos((currStep + j*25)/20)/2;
  }
  currStep += step;
  setTimeout("animateLogo()", 5) ;
 }
}



function eoh()
 {
  document.write('<CENTER><BR><DIV CLASS="eoh">');
  document.write('copyright (c) 2000-2001<BR>');
  document.write('black-out & <A HREF=mailto:wiktor@freemail.hu?subject=:wiktor:design:black-out:>wiktor</A><BR>all rights reserved');
  document.write('</SCRIPT><BR><BR></DIV>');
  return true;
 }


function eoh2()
{
 document.write('<CENTER><BR><DIV CLASS="eoh">');
 document.write('All Rights Reserved &nbsp;&nbsp;');
 document.write('Copyright &copy 2000-2001 - Black-Out &nbsp;&nbsp;<BR>');
// document.write('info: <A TARGET=\"main\" HREF=\"mailto:black-out@blackout.hu?subject=:black-out:\">Black-Out</A>&nbsp;&nbsp;&nbsp;');
 document.write('webmaster: <A TARGET=\"main\" HREF=\"mailto:wiktor@blackout.hu?subject=:wiktor:design:black-out:\">wiktor</A><BR>');
// if (!isNetscape)
//  {
//    document.write('Utolsó módosítás: ');
//    document.write('<SCRIPT language=\"Javascript\">');
//    // document.write(' document.write(document.lastModified);');
//    document.write(' getlastmodi();');
//  }
 document.write('</SCRIPT><BR><BR></DIV>');
 return true;
}


<!-- vege -->

function votesubmit() {	
	var s = document.getElementById('vote'); 
	if (s.selectedIndex == 0) {
		alert('Válassz egy nótát!');
		return false;
	} else {
		return true;
	}
}

