
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 ;

//var mapview = new fenetre(null,'pmapview','',"height=540,width=570,screenX=0,left=" + ((screen.width/2)-285) +",screenY=50,top=" + ((screen.height/2)-270) +",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0") ;
var mapview = new fenetre(null,'pmapview','',"height=650,width=650,screenX=0,left=" + ((screen.width/2)-325) +",screenY=50,top=" + ((screen.height/2)-325) +",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,location=no") ;
var mapviewExemple = new fenetre(null,'mapviewExemple','',"height=540,width=570,screenX=0,left=" + ((screen.width/2)-270) +",screenY=50,top=" + ((screen.height/2)-270) +",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0") ;