// JavaScript Document
function enlarge(imagename,x,y,pics,brand)
{	
    myImage = new Image()
    myImage.src = imagename;
	if (x==undefined) x=myImage.width;
	if (y==undefined) y=myImage.height;
	sx = screen.width;
	sy = screen.height;
	px = (sx - x) / 2; py = (sy - y) / 2;
	var OpenWin = this.open("","CtrlWindow","scrollbars=No,resizable=No,width="+x+",height="+y+",left="+px+",top="+py);
	var doc = OpenWin.document;
	doc.write('<html><head><title>Best-Bike</title></head>');
	doc.write('<body leftmargin="0" topmargin="0" bottommargin="0" rightmaring="0" bgcolor="#999999" onClick="self.close();" style="cursor:pointer;">');
	doc.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td width="'+x+'" height="'+y+'">');
	doc.write('<img src="_out_pics.php?id='+imagename+'&table=termekek&pics='+pics+'&q=100&brand='+brand+'" border="0"></td></tr></table>');
	doc.write('</body></html>');
}

function enlarge2(imagename,x,y,pics,brand)
{	
    myImage = new Image()
    myImage.src = imagename;
	if (x==undefined) x=myImage.width;
	if (y==undefined) y=myImage.height;
	sx = screen.width;
	sy = screen.height;
	px = (sx - x) / 2; py = (sy - y) / 2;
	var OpenWin = this.open("","CtrlWindow","scrollbars=No,resizable=No,width="+x+",height="+y+",left="+px+",top="+py);
	var doc = OpenWin.document;
	doc.write('<html><head><title>biketrial.hu</title></head>');
	doc.write('<body leftmargin="0" topmargin="0" bottommargin="0" rightmaring="0" bgcolor="#999999" onClick="self.close();" style="cursor:pointer;">');
	doc.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td width="'+x+'" height="'+y+'">');
	doc.write('<img src="'+imagename+'" border="0"></td></tr></table>');
	doc.write('</body></html>');
}
