function showhidefiche()
{
	if(document.getElementById('productdesc'))
	{
		state = document.getElementById('productdesc').style.display;
		document.getElementById('productdesc').style.display = (state=='' ? 'none':'');
		document.getElementById('productfiche').style.display = (state=='' ? '':'none');
		var regRoll = new RegExp("^(.+_)([01])\.(jpg|gif)$", "g");
		m = regRoll.exec(document.getElementById('productfichebtn').src);
		document.getElementById('productfichebtn').src = m[1] + (state==''?'1.':'0.') + m[3];
	}
}

function presubmitcontact()
{
	
	if(document.getElementById('contactname').value=='' || document.getElementById('email-address').value=='' || document.getElementById('enquiry').value=='')
	{
		alert('Merci de renseigner les informations obligatoires.');
		return false;
	}
	return true;
}
function hideIntro()
{
	document.getElementById('intro').style.display = 'none';
	document.body.style.overflow = '';

}
function html2js(chaine)
{
	aRemplacer = /&eacute;/g;
	chaine = chaine.replace(aRemplacer, '�')
	aRemplacer = /&egrave;/g;
	chaine = chaine.replace(aRemplacer, '�')
	aRemplacer = /&agrave;/g;
	chaine = chaine.replace(aRemplacer, '�')
	return chaine;
}
