function launchapplet(gui,city)
{
   var sWidth = screen.availWidth;
   var sHeight = screen.availHeight;

   var client = "";
   var app = navigator.appVersion.toLowerCase();

   if (app.indexOf("macintosh")>-1) client = "applet";
   else if (navigator.appName=="Netscape") client = "navigator";
   else client = "explorer";

   if (sWidth==null)
     sWidth = document.body.clientWidth;

   if (sHeight==null)
     sHeight = document.body.clientHeight;

   sWidth -= 50;
   sHeight -= 50;

   var argStr = "width=" + sWidth + ",height=" + sHeight;
   argStr += ",menubar=0,scrollbars=0,status=1,resizable=0,toolbar=0";

   var enterStr = "http://rumsey.metropolisnewmedia.com/servlet/Enter?gui=" + gui + "&city=" + city + "&client=" + client;

   if (client=="applet")
     document.location=enterStr + "&width=" + sWidth + "&height=" + sHeight;
   else
   {
        var aWin = window.open(enterStr + "&width=" + (sWidth-20) + "&height=" + (sHeight-20),"",argStr);
        aWin = null;
   }



}
