function rendelesElemetTorol(url)
{
	var kerdes = confirm("Biztos benne, hogy kiveszi a jegyet a kosárból?");
	if(kerdes) {
		window.location.replace(url);
	}
}

function Is() { //browser leválogatás

 agent = navigator.userAgent.toLowerCase();

 this.agent = navigator.userAgent.toLowerCase();

 this.major = parseInt(navigator.appVersion);

 this.minor = parseFloat(navigator.appVersion);

 this.ns = ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1)));

 this.ns4 = (this.ns && (this.major <= 4) && (this.minor < 5));

 this.ns6 = (this.ns && (this.major >= 5));

 this.ie = (agent.indexOf("msie") != -1);

 this.ie4 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") == -1));

 this.ie5 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5") != -1));

 this.ie6 = (this.ie && (this.major == 4) && (agent.indexOf("msie 6") != -1));

 this.iframe = (this.ie || this.ns6) ;

}



var is = new Is();





function setNewScroll()

{

	document.getElementById('news').setVariable("doScroll", "scroll");

}



function openImageWin(url,w,h,scroll)

{

	if (scroll == 1)
	{
		w = w+30;
	}
	if (h >= screen.availHeight)
	{
		h = screen.availHeight-100;
	}

	var top  = ((screen.availHeight-h)/2)-80;

	var left = ((screen.availWidth-w)/2);

	parem='status=0,menubar=0,resizable=0,copyhistory=no,directories=no,scrollbars='+scroll+',width='+w+',height='+h+',top='+top+',left='+left+'';

	var ywin = window.open(url, "", parem);

	ywin.focus();

}

function openGalleryWin(url,w,h)

{

	h=h+20;

	w=w+200;

	var top  = ((screen.availHeight-h)/2)-80;

	var left = ((screen.availWidth-w)/2);

	parem='status=0,menubar=0,resizable=0,copyhistory=no,directories=no,scrollbars=1,width='+w+',height='+h+',top='+top+',left='+left+'';

	var ywin = window.open(url, "", parem);

	ywin.focus();

}

function openWin(url,w,h)

{

	var top  = ((screen.availHeight-h)/2)-80;

	var left = ((screen.availWidth-w)/2);

	parem='status=0,menubar=0,resizable=0,copyhistory=no,directories=no,scrollbars=yes,width='+w+',height='+h+',top='+top+',left='+left+'';

	var ywin = window.open(url, "c556zxy", parem);

	ywin.focus();

}


function openWin1(url,w,h)

{

	var top  = ((screen.availHeight-h)/2)-80;

	var left = ((screen.availWidth-w)/2);

	parem='status=0,menubar=0,resizable=0,copyhistory=no,directories=no,scrollbars=1,width='+w+',height='+h+',top='+top+',left='+left+'';

	var ywin = window.open(url, "c556zxy", parem);

	ywin.focus();

}


function openWin2(url,w,h)

{

	var top  = ((screen.availHeight-h)/2)-80;

	var left = ((screen.availWidth-w)/2);

	parem='status=0,menubar=0,resizable=0,copyhistory=no,directories=no,scrollbars=1,width='+w+',height='+h+',top='+top+',left='+left+'';

	var ywin = window.open(url, "dsads", parem);

	ywin.focus();

}

function showBigPic(img,width,height)
		{
			var image = img;
			var s1="toolbar=0,location=0,directories=0,status=0,\
		menubar=0,scrollbars="+scroll+",resizable=0, width="+width+",height="+height + ",left=" + (screen.availWidth-width)/2 + ", top=" + (screen.availHeight-height)/2;
			var nyit = window.open("",name,s1);
			nyit.document.open();
			nyit.document.write("<html><head><title>Omega</title></head>")
			nyit.document.write("<body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 marginheight=0 marginwidth=0>");
			nyit.document.write("<a href=javascript:self.close();><img src=" + image + " width=" + width + " height" + height +" border=0 alt='Kattintson a képre az ablak bezárásához.'></a>")
			nyit.document.write("</body></html>");
			nyit.document.close();
			
			nyit.focus();			
		}
