function pickAHdr() {
  //getfilelist
  a = new Array(3);
  a[0] = '/_img_/asrhu_hdr1.jpg';
  a[1] = '/_img_/asrhu_hdr2.jpg';
  a[2] = '/_img_/asrhu_hdr3.jpg';
  return a[Math.floor(Math.random()*3)];
}

function loadHdr( kep ) {
  document.getElementById('hdrImg').src = kep;
}

function PlayerPopup(url, name)
{
  	void(window.open(url,name,'width=450, height=480, scrollbars=1, resizable=0'));
}

function TippjatekPopup()
{
	void(window.open('http://asroma.hu/tippjatek','Tippjáték','width=816, height=600, scrollbars=1, resizable=1, location=1, toolbar=1, status=1'));
}

function TabellaPopup(url, name, sorsz)
{
	tHeight = (sorsz * 14) + 70;
	void(window.open(url,name,'width=312, height=' + tHeight + ', scrollbars=1, resizable=0'));
}

function NaptarPopup(url, name)
{
	void(window.open(url,name,'width=310, height=130, scrollbars=0, resizable=0'));
}


function BigPlayerPopup(url, name)
{
	void(window.open(url,name,'width=590, height=585, scrollbars=0, resizable=0'));
}

function ImpressumPopup(url, name)
{
	void(window.open(url,name,'width=380, height=385, scrollbars=no, resizable=no, status=no, toolbar=no, menubar=no, directories=no, location=no'));
}

function EmailPopup(url, name)
{
	void(window.open('http://asroma.hu/email.html','asrhuemail','width=380, height=385, scrollbars=no, resizable=no, status=no, toolbar=no, menubar=no, directories=no, location=no'));
}

function ASRszinekPopup(url, name)
{
	void(window.open('http://asroma.hu/asrszinek.html','asrszinek','width=580, height=570, scrollbars=1, resizable=no, status=no, toolbar=no, menubar=no, directories=no, location=no'));
}

function CikkKepekPopup()
{
	void(window.open('http://asroma.hu/cc/asrhu_kepadmin.php','cikkepek','width=580, height=570, scrollbars=1, resizable=yes, status=yes, toolbar=no, menubar=no, directories=no, location=no'));
}

function NagytablaPUP()
{
	void(window.open('http://asroma.hu/asrhistory_files/html/1982_83/nagytabla.html','Bajnokcsapat','width=1175, height=460, scrollbars=no, resizable=no, status=no, toolbar=no, menubar=no, directories=no, location=no'));
}

function KepPopup(url, name, w, h)
{
	void(window.open(url,name, 'width=' + w + ', height=' + h + ', scrollbars=1, resizable=0'));
}

/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	Written by Bugimus 
	Copyright © 1998-2001 Bugimus, all rights reserved.
	You may use this code for non-commercial use provided you leave this comment block intact
	or credit me in your code.  
	A link back to Bugimus' page would be much appreciated but not required.  
	http://bugimus.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */

function showPic( imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor ) {
	if(imgWidth<=100)imgWidth=100
	if(imgHeight<=100)imgHeight=100
	winHeight=imgHeight;
	w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars=auto,resizable=no,copyhistory=no,width='+imgWidth+',height='+winHeight);
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<STYLE TYPE='text/css'>" );
	w.document.write( "IMG {border-color : "+textColor+";}" );
	w.document.write( "BODY, HTML { margin:0; padding:0; font-family: verdana; font-size : 10px; font-weight: normal; color : "+textColor+"; background-color : "+bgColor+"; }" );
	w.document.write( "</STYLE>" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true\n");
	w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+51)\n");
	w.document.write( "	else if(NN6) self.resizeTo(document.images[0].width+25,document.images[0].height+64)\n");
	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height)\n");
	w.document.write( "	self.focus()\n");
	w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "<style type='text/css'> </style>");
	w.document.write( "</head><body onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<img src='"+imgName+"' border=0 alt='"+imgCaption+"'>" );
	w.document.write( "</body></html>" );
	w.document.close();
}

function openPicture(picPath) {
var x = window.open();
x.document.write('<img src=\"' + picPath + '\" id=\"pic\" />');
x.onload = function() {
var n = document.getElementById('pic');
window.resizeTo(n.width, n.height);
}
return true;
}
