//Uj ablak a kepeknek
function ujAblak(szelesseg,magassag,cim)
  {
    ablak=window.open(""+cim+"","picture","toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,width="+szelesseg+",height="+magassag+"");
    ablak.document.write("<html><head><title>ArchivNet</title></head>");
    ablak.document.write("<body bgcolor='#FFFDCA' leftmargin='0' topmargin='0'>");
    ablak.document.write("<img src='"+cim+"'>");
    ablak.document.write("<center><form>");
    ablak.document.write("<input type=submit onclick='window.close()'>");
    ablak.document.write("</form></center>");
    ablak.document.write("</body></html>");
  }

//Vicctar evek linkek feltoltese
function felTolt()
  {
    document.writeln("<body bgcolor='#CCCC99' leftmargin='5' topmargin='5'>");
    document.writeln("<p><center><font style='font-weight:bold' face='Arial' size='4' color='#0000FF'>Vicctár</font></center></p>");
    for(var i=1945;i<=1989;i++)
      document.writeln("<center><a href='cikk.html#"+i+"' target='cikk'>"+i+"</a><br></center>");
    document.writeln("</body>");
  }

//Uzenetek megjelenitese
function uzen(uzenet)
  {
    alert(uzenet);
  }

//Utolso modositas datuma
function modosit()
  {
    var honapok=new Array("január","február","március","április","május","június","július","augusztus","szeptember","október","november","december");
    var napok=new Array("vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat");
    var modosult=new Date(document.lastModified);

    document.write("<font size=-4>");
    if(modosult.getYear()<100)
      document.write("19");
    document.write(modosult.getYear()+".&nbsp;");
    document.write(honapok[modosult.getMonth()]+"&nbsp;");
    if(modosult.getDate()<10)
      document.write("0");
    document.write(modosult.getDate()+".&nbsp;");
    document.write(napok[modosult.getDay()]+"&nbsp;");
    if(modosult.getHours()<10)
      document.write("0");
    document.write(modosult.getHours()+":");
    if(modosult.getMinutes()<10)
      document.write("0");
    document.write(modosult.getMinutes());
    document.write("</font>");
  }
  
//Böngésző detektálás
  function keret()
    {
	  if(navigator.appName=="Netscape")
	    {
          document.writeln("<frameset cols='*,813,*' frameborder='0' border='0' framespacing='0' scroll='yes'>");
          document.writeln("<frame name='bal' src='empty.html' scrolling='no'>");
          document.writeln("<frame name='main' src='mains.html' scrolling='yes'>");
          document.writeln("<frame name='jobb' src='empty.html' scrolling='no'>");
          document.writeln("</frameset>");
		}
	  else if(navigator.appName=="Microsoft Internet Explorer")
	    {
          document.writeln("<frameset cols='*,813,*' frameborder='0' border='0' framespacing='0' scroll='yes'>");
          document.writeln("<frame name='bal' src='empty.html' scrolling='no'>");
          document.writeln("<frame name='main' src='main.html' scrolling='yes'>");
          document.writeln("<frame name='jobb' src='empty.html' scrolling='no'>");
          document.writeln("</frameset>");
		}
	}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function impressz_DoFSCommand(command, args) {
  var impresszObj = InternetExplorer ? impressz : document.impressz;
  //
  // Place your code here...
  //
 	
		newWindow=window.open(args,'',"statusbar,personalbar,locationbar,width=600,height=300");
		newWindow.focus();

}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub impressz_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call impressz_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}



