
var newWindow=new Object;
newWindow.closed=true;

function newWindowopener(eventInfo,dateInfo, timeInfo, details)
{
  if (!newWindow.closed){
    newWindow.close();
  }
  
  var window_features="width=500,height=400,status=0,menubar=0,toolbar=0,menubar=0,scrollbars=1,resizable=1";
  var copy="Hungry Hound &copy; 2005-2007, All Rights Reserved";
  var eventHed="Upcoming Event at Hungry&nbsp;Hound&nbsp;Boutique&nbsp;&amp;&nbsp;Grooming!";
  newWindow=window.open("","",window_features);
  newWindow.document.write("<html><head><title>"+eventHed+"</title>");
  newWindow.document.writeln("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/eventStyle.css\">");
  newWindow.document.writeln("</head><body>");
  newWindow.document.writeln("<h3>" + eventHed + "</h3><div id=\"event\">");
  newWindow.document.writeln("<h4>"+eventInfo+"</h4>");
  newWindow.document.writeln("<h4>"+dateInfo+"</h4><h4>"+timeInfo+"</h4><p class=\"detail\">" + details + "</p><div id=\"cpy\">"+ copy+"</div>") ;
  newWindow.document.write("<a href=\"#\" onclick=\"self.close()\">");
  newWindow.document.write("Return</a></p></div>");
  newWindow.document.writeln("</body></html>");
  newWindow.document.close();
  newWindow.focus();
}
