function vopen(place, name, height, width, scroll, resize)
{
   if ((height == null) || (height == ""))
      {
      height = 480;
      }
   if ((width == null) || (width == ""))
      {
      width = 640;
      }
   if ((scroll == null) || (scroll == ""))
      {
      scroll = "yes";
      }
   if ((resize == null) || (resize == ""))
      {
      resize = "yes";
      }
	var url;
  
   var atts;
   atts = "height=" + height + ",width=" + width + ",resizable=" + resize + ",scrollbars=" + scroll;
   window.open(place, null, atts);
}

/*
function popup(url,name,windowWidth,windowHeight)
{
   myleft=(screen.width)?(screen.width-windowWidth)/2:100;
   mytop=(screen.height)?(screen.height-windowHeight)/2:100;
   properties = "width="+windowWidth+",height="+windowHeight+",scrollbars=yes, top="+mytop+",left="+myleft;
   window.open(url,name,properties)
}
*/

function vopen2(place, name, height, width, scroll, resize)
{
   myleft=(screen.width)?(screen.width-width)/2:100;
   mytop=(screen.height)?(screen.height-height)/2:100;

   if ((height == null) || (height == ""))
      {
      height = 480;
      }
   if ((width == null) || (width == ""))
      {
      width = 640;
      }
   if ((scroll == null) || (scroll == ""))
      {
      scroll = "yes";
      }
   if ((resize == null) || (resize == ""))
      {
      resize = "yes";
      }
	var url;
  
   var atts;
   atts = "height=" + height + ",width=" + width + ",resizable=" + resize + ",scrollbars=" + scroll+", top="+mytop+",left="+myleft;
   var myWindow = window.open(place, null, atts);

   return myWindow;
}
