function afficher(urlToGo)
{
  if (this.wHandle==null)
	{
    this.wHandle = window.open(this.urlBase + urlToGo,this.name,this.properties);  this.wHandle.focus() ;
	}
	else 
	{
    if (this.wHandle.closed==true)
    {
      this.wHandle = window.open(this.urlBase + urlToGo,this.name,this.properties); this.wHandle.focus();
    }
		else
    {
      this.wHandle.location.href= this.urlBase + urlToGo ; this.wHandle.focus() ;
    }
  }
}

function fermer()
{
	if (this.wHandle!=null)
  {
    if (this.wHandle.closed==false)
    {
      this.wHandle.close()
    }
  }
}

function fenetre(wHandle,name,urlBase,properties)
{
	this.wHandle    = wHandle ;
	this.name       = name ;
	this.urlBase    = urlBase ;
	this.properties = properties ;
}

fenetre.prototype.afficher = afficher;
fenetre.prototype.fermer   = fermer;
