diff --git a/web/zm_html_view_event.php b/web/zm_html_view_event.php
index 2c6523229..4261180d8 100644
--- a/web/zm_html_view_event.php
+++ b/web/zm_html_view_event.php
@@ -119,7 +119,7 @@ function closeWindow()
}
function newWindow(Url,Name,Width,Height)
{
- var Name = window.open(Url,Name,"resizable,width="+Width+",height="+Height);
+ var Win = window.open(Url,Name,"resizable,width="+Width+",height="+Height);
}