/* SCRIPTS PIERRE GUIGARD | DW


*/
function openLink(url)
{
	window.open(url);
}

function initHide(id)
{
	document.getElementById(id).style.display = "none";
}

hideId = "";

function hideShow(id)
{
	document.getElementById(id).style.display = "block";
	if(hideId)
	{
		document.getElementById(hideId).style.display = "none";
	}
	if(hideId != id)
	{
		hideId = id;
	} else {
		hideId = "";
	}
}
function hideInfo (idInfo)
{
	document.getElementById(idInfo).style.display = "none";
}

function PopupImage(img) 
{
	titre="Maison P. Guigard";
	w=open("",'image','width=640,height=480,toolbar=no,scrollbars=no,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

// fonction qui vérifie que les conditions générales sont bien acceptées
function VerifCondition(case_coche)
{
	if(case_coche.checked==false)
	{
		alert('Vous devez cocher la case de validation des conditions générales de vente pour passer au paiement.');
		
		return false;
	}
	else
	{
		return true;
	}
}
