function focusRect(){
	my_link = document.getElementsByTagName("A");
	for(i=0;i<my_link.length;i++){	
		 my_link[i].onfocus = function(){
			 if(this.blur)this.blur();
		 }
	}
	
}	
function $(id) {
	if (document.all) {
   		return document.all[id];
	}else {
   		return document.getElementById(id);
	}
}

function openDiv(src, w, h){
	var w2 = (w/2)*-1;
	var h2 = (h/2)*-1;
	var pics = document.getElementById("pics");
	var background = document.getElementById("background");
	var bigImg = document.getElementById("bigImg");
	image = document.createElement('img');
	p1 = document.createElement('p');
	p1.id = "closeImg";
	p1.className = "p1";
	t1 = document.createTextNode("Cliquer sur l'image pour fermer");
	p1.appendChild(t1);
	
	image.id = 'img';
	image.src = src;
	image.style.width = (w)+"px";
	image.style.height = (h)+"px";
	image.style.cursor = "pointer";
	image.style.border = "10px solid #fff";
	
	background.className = "backgroundOn";
	
	bigImg.style.display = "block";
	bigImg.style.position="absolute";
	bigImg.style.left="50%";
	bigImg.style.top="50%";
	bigImg.style.width= (w+20)+"px";
	bigImg.style.height= (h+20)+"px";
	bigImg.style.marginLeft= (w2-20)+"px";
	bigImg.style.marginTop= (h2-20)+"px";
	bigImg.style.zIndex = "301";
	bigImg.appendChild(image);
	bigImg.appendChild(p1);
	
	input = document.getElementsByTagName("select");
	for(j=0;j<input.length;j++){				
		 input[j].style.visibility = "hidden";
	}
	bigImg.onclick = function(){
		this.style.display="none";
		this.removeChild(image);
		this.removeChild(p1);
		this.className = "backgroundOff";
		background.className = "backgroundOff";
		for(j=0;j<input.length;j++){				
			 input[j].style.visibility = "visible";
		}
		return false;
	}
}
