var newWind;
function openwindow(cPicture,nWidth,nHeight){
	var output;
	nWidth+=50;
	nHeight+=100;
	newWind=window.open("","winnam","height="+nHeight+",width="+nWidth+",scrollbars=0,resizable=1,top=10,left=10");
	newWind.resizeTo(nWidth,nHeight);
	nWidth-=50;
	nHeight-=100;
	output="<html><head><link rel='stylesheet' href='/style.css' type='text/css'><title>Huntraco</title></head><body bgcolor='#ffffff' text='#000000' link='#e13200' alink='#e94b00' vlink='#e94b00'><center>";
	output+="<img src='"+cPicture+"' width='"+nWidth+"' height='"+nHeight+"' border='0'>";
	output+="<br><br><a href='javascript:self.close()'>ablak bezárása</a>";
	output+="</center></body></html>";
	newWind.document.write(output);
	newWind.document.close();
	newWind.focus();	 
}

function openflash(cPicture,nWidth,nHeight){
	var output;
	nWidth+=50;
	nHeight+=100;
	newWind=window.open("","winnam","height="+nHeight+",width="+nWidth+",scrollbars=0,resizable=1,top=10,left=10");
	newWind.resizeTo(nWidth,nHeight);
	nWidth-=50;
	nHeight-=100;
	output="<html><head><link rel='stylesheet' href='/style.css' type='text/css'><title>Huntraco</title></head><body bgcolor='#ffffff' text='#000000' link='#e13200' alink='#e94b00' vlink='#e94b00'><center>";
	output+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width="+nWidth+" height="+nHeight+">";
 	output+="<param name=movie value='"+cPicture+"'><param name=quality value=high><param name=bgcolor value=#ffffff>";
 	output+="<embed src='"+cPicture+"' quality=high bgcolor=#ffffff  width="+nWidth+" height="+nHeight+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash'></embed></object>";
	//output+="<img src='"+cPicture+"' width='"+nWidth+"' height='"+nHeight+"' border='0'>";
	output+="<br><br><a href='javascript:self.close()'>ablak bezárása</a>";
	output+="</center></body></html>";
	newWind.document.write(output);
	newWind.document.close();
	newWind.focus();	 
}
