<!-- HOVER (IE) -->
if(!window.Event)
{
	document.onmouseover = function()
	{
		x=window.event.srcElement
		if(x.className == "submit" || x.className == "submit_IE") x.className = "submithover_IE";
		if(x.tagName == "INPUT" && (x.className == "textfield" || x.className == "textfield_IE")) x.className = "textfieldhover_IE";
	}
	
	document.onmouseout=function()
	{
		if(x.className == "submit" || x.className == "submithover_IE") x.className = "submit_IE";
		if(x.tagName == "INPUT" && (x.className == "textfield" || x.className == "textfieldhover_IE")) x.className = "textfield_IE";
	}
}
<!-- FIN HOVER (IE) -->

/*function openimg( data, width )
{
	window.open(data, "Visualisation", "left=50, top=50, scrollbars=no, resizable=no, width="+width+", height=700");
}*/

function openimg( data )
{
	i1 = new Image;
	i1.src = data;
	html = "<html><head><title>Visualisation</title></head><body leftmargin='0' marginwidth='0' topmargin='0' onblur='self.close()' onclick='self.close()' marginheight='0'><center><img src='"+data+"' border='0' alt='cliquez ici pour fermer la fenêtre' name='imageTest' onload='window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)'></center></body></html>";
	popupImage = window.open("", "_blank", "toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1");
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
}

/// AJAX ///

var xhr = null; 

function getXhr()
{
	if(window.XMLHttpRequest)xhr = new XMLHttpRequest(); 
	
	else if(window.ActiveXObject)
  	{ 
 		try
		{
     		xhr = new ActiveXObject("Msxml2.XMLHTTP");
    	}
		
		catch (e) 
     	{
     		xhr = new ActiveXObject("Microsoft.XMLHTTP");
    	}
	}
	else 
	{
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		xhr = false; 
	}
}

function Show(div, id, thm)
{
	if(document.getElementById("detail" + div).style.visibility == "hidden")
	{
		document.getElementById("detail" + div).style.visibility = "visible";
		document.getElementById("detail" + div).style.display = "block";
		document.getElementById("img" + div).src = "images/puce2.png";
		
		getXhr()
		xhr.onreadystatechange = function()
		{
			if(xhr.readyState == 4 && xhr.status == 200)
			{
				document.getElementById("detail" + div).innerHTML = xhr.responseText;
			}
		}
		
		xhr.open("GET","./?act=dtheme&id="+id+"&idthm="+thm, true);
		xhr.send(null);
	}
	else
	{
		document.getElementById("detail" + div).style.visibility = "hidden";
		document.getElementById("detail" + div).style.display = "none";
		document.getElementById("img" + div).src = "images/puce.png";
	}
}

function show_conf(id)
{
	document.getElementById("show_conference_" + id).style.visibility = "visible";
	document.getElementById("show_conference_" + id).style.display = "block";
}

function hide_conf(id)
{
	document.getElementById("show_conference_" + id).style.visibility = "hidden";
	document.getElementById("show_conference_" + id).style.display = "none";
}

function verif_cgv()
{
	if(document.form.cgv.checked == true)
	{
		return true;
	}
	else
	{
		alert("Vous devez accepter les conditions générales de vente");
		return false;
	}
}