function DepartementObject()
{
	this.Departement = null;
	this.SousDepartement = null;
	this.SousSousDepartement = null;
	this.Image = null;
	this.Name = null;
	this.Url = null;
	this.Id = null;
	
	this.load = function(departement, sousDepartement, sousSousDepartement, image, name, url, id)
	{
		this.Departement = departement;
		this.SousDepartement = sousDepartement;
		this.SousSousDepartement = sousSousDepartement;
		this.Image = image;
		this.Name = name;
		this.Url = url;
		this.Id = id;
	}
	
	this.getCode = function()
	{
		return this.Departement + this.SousDepartement + this.SousSousDepartement;
	}
	
	this.getQuerystring = function(firstChar)
	{
		return String.Format("{0}Departement={1}&SousDepartement={2}&SousSousDepartement={3}&Image={4}&Name={5}&Url={6}&Id={7}",
					  firstChar,
					  this.Departement,
					  this.SousDepartement,
					  this.SousSousDepartement,
					  this.Image,
					  this.Name,
					  this.Url,
					  this.Id);
	}
	this.loadFromQuerystring = function(Querystring)
	{
		var departement, sousDepartement, sousSousDepartement, image, name, url, id;
		var QSVariables = Querystring.split("&");
		
		for (var i = 0; i < QSVariables.length; i++)
		{
			var tmpArray = QSVariables[i].split("=");
			var VarName = tmpArray[0];
				VarName = VarName.substring(0, 1).toLowerCase() + VarName.substring(1);
			var VarValue = tmpArray[1];
			
			eval(String.Concat("{0} = {1};", VarName, VarValue))
		}
		
		this.load(departement, sousDepartement, sousSousDepartement, image, name, url, id);
	}
}






















