window.alert = function(string){
	boxId = (new Date()).getTime();
	box = document.createElement("DIV");
	box.id = "alertBox_"+boxId;
	box.className="alertBox";
	
	topBox = document.createElement("DIV");
	topBox.className = "top";
	topBox.innerHTML = "<a href=\"javascript:showSelect();document.body.removeChild(document.getElementById('alertBox_"+boxId+"'));void(0)\" class=\"close\"></a>Information";
	box.appendChild(topBox);
	
	middleBox = document.createElement("DIV");
	middleBox.className = "middle";
	string = string.replace(/\n/g,"<br/>")
	middleBox.innerHTML = string + "<br/><br/><input type='button' value='valider' onclick='showSelect();document.body.removeChild(document.getElementById(\"alertBox_"+boxId+"\"));void(0)'>";
	box.appendChild(middleBox);
	
	bottomBox = document.createElement("DIV");
	bottomBox.className = "bottom";	
	box.appendChild(bottomBox);
	
	document.body.appendChild(box);
	hideSelect();
};

hideSelect = function(){
if(document.all && parseInt(navigator.appVersion.split(";")[1].replace("MSIE","")) < 7)
	{
	allSelect = document.getElementsByTagName('SELECT');
	for(i=0;i<allSelect.length;i++)
	allSelect[i].style.visibility="hidden";
	}
};

showSelect = function(){
if(document.all && parseInt(navigator.appVersion.split(";")[1].replace("MSIE","")) < 7)
	{
	allSelect = document.getElementsByTagName('SELECT');
	for(i=0;i<allSelect.length;i++)
	allSelect[i].style.visibility="visible";
	}
};
