function Popup()
{
  this.Directories = 0;
  this.Location = 0;
  this.Menubar = 0;
  this.Resizable = 0;
  this.Scrollbars = 0;
  this.Status = 0;
  this.Toolbar = 0;
     
  this.Show = function(mypage,myname,w,h)
  {
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',directories='+this.Directories+',location='+this.Location+',menubar='+this.Menubar+',resizable='+this.Resizable+',scrollbars='+this.Scrollbars+',status='+this.Status+',toolbar='+this.Toolbar;      
    win = window.open(mypage,myname,settings)        
  } 
  
  this.LaunchSmartClient = function(mypage)
  {    
    settings = 'height=10,width=10,top=0,left=0,directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0';      
    win = window.open(mypage,'',settings);
    
    //Once the smart client is laucnhed we close the popup window
    setTimeout("win.close();", 15000);    
  } 
  
}
