function openimg(img_name,imag)

{
	var newwin;
	
	l = (screen.availWidth-10 - 800) / 2;
  	t = (screen.availHeight-20 - 533) / 2;
	features = "width=800,height=533,left="+l+",top="+t;
	features += ",screenX="+l+",screenY="+t;
	features += ",scrollbars=0,resizable=0,location=0";
	features += ",menubar=0,toolbar=0,status=0";
  
  	newwin=window.open("", "", features);

	newwin.document.write("<html><head><title>"+img_name+"</title><meta http-equiv='imagetoolbar' content='no'></head>");
	
	newwin.document.write("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><table width=0% border=0 cellspacing=0 cellpadding=0>");
	
	newwin.document.write("<tr><td><img src=images/events/"+imag+"></td></tr>");
	
	newwin.document.write("</table></body></html>");
	

	newwin.document.close();
}

function openimg2(img_name,imag)
{
	var newwin;
	
	l = (screen.availWidth-10 - 809) / 2;
  	t = (screen.availHeight-20 - 542) / 2;
	features = "width=809,height=542,left="+l+",top="+t;
	features += ",screenX="+l+",screenY="+t;
	features += ",scrollbars=0,resizable=0,location=0";
	features += ",menubar=0,toolbar=0,status=0";
  
  	newwin=window.open("", "", features);

	newwin.document.write("<html><head><title>"+img_name+"</title><meta http-equiv='imagetoolbar' content='no'></head>");
	
	newwin.document.write("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><table width=0% border=0 cellspacing=0 cellpadding=0>");
	
	newwin.document.write("<tr><td><img src=images/events/"+imag+"></td></tr>");
	
	newwin.document.write("</table></body></html>");
	

	newwin.document.close();
}

