function CheckField(formulaire) {
 
	if (formulaire == 'RegisterForm') {
		var FormRegisterForm = document.forms['RegisterForm'];
		var wEmail = FormRegisterForm.elements['Email'].value;
		
		document.getElementById('valid').href = 'javascript:void(0)';
		
		if (wEmail.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1) {
			alert('Adresse email non valide !');
			FormRegisterForm.elements['Email'].focus();
		}
		else if (FormRegisterForm.elements['CGVDemandeEssai'].checked == false) {
			alert('Vous devez accepter les conditions générales obligatoire pour pouvoir poursuivre.');
			FormRegisterForm.focus();
		}
		else {
			FormRegisterForm.submit();
		}
	}
 

	if (formulaire == 'PresentationForm') {
		var FormRegisterForm = document.forms['PresentationForm'];
		var wEmail = FormRegisterForm.elements['Email'].value;
		
		document.getElementById('valid').href = 'javascript:void(0)';
		
		if (wEmail.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1) {
			alert('Adresse email non valide !');
			FormRegisterForm.elements['Email'].focus();
		}
		else {
			FormRegisterForm.submit();
		}
	}


	if (formulaire == 'ContactForm' ) {
		var FormContactForm = document.forms['ContactForm'];
		var wEmailCtc = FormContactForm.elements['EmailCtc'].value;
		document.getElementById('valid2').href = 'javascript:void(0)';
 
		if (wEmailCtc.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1) {
			alert('Adresse email non valide !');
			FormContactForm.elements['EmailCtc'].focus();
		}
		
		else if (FormContactForm.elements['CGVDemandeEssaiCtc'].checked == false) {
			alert('Vous devez accepter les conditions générales obligatoire pour pouvoir poursuivre.');
			FormContactForm.elements['CGVDemandeEssaiCtc'].focus();
		}
		else {
			FormContactForm.submit();
		}
	}
 
}
 
function toggle (idDetail) {
	var style = document.getElementById(idDetail).style;
	style.display = (style.display == "none") ? "" : "none";
}

	var togglePics=new Array();
	togglePics['on']=new Image();
	togglePics['on'].src="/images/more.png";
	togglePics['off']=new Image();
	togglePics['off'].src="/images/less.png";

function switchpics(idpic){ 
    mypic=document.getElementById(idpic) 
    mypic.src=(mypic.src==togglePics['on'].src)?togglePics['off'].src:togglePics['on'].src 
} 

    hs.graphicsDir = '../highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.width = 500;
	hs.align = 'center';
	
	
// Language strings
hs.lang = {
   cssDirection:     'ltr',
   loadingText :     'Chargement...',
   loadingTitle :    'Chargement...',
   focusTitle :      'Klick um nach vorn zu bringen',
   fullExpandTitle : 'Elargir',
   fullExpandText :  'Elargir à la taille actuelle',
   creditsText :     '',
   creditsTitle :    '',
   previousText :    'Précédente',
   previousTitle :   'Précédente (Flèche gauche)',
   nextText :        'Suivante',
   nextTitle :       'Suivante (Flèche droite)',
   closeText :       'Fermer',
   closeTitle :      'Fermer la fenêtre (Esc)',
   resizeTitle :     'Redimensionner',
   playText :        'Diaporama',
   playTitle :       'Démarrer le disporama (barre espace)',
   pauseText :       'Pause',
   pauseTitle :      'Pause',
   number :          ' %1 de %2',
   restoreTitle :    'Cliquez pour fermer, cliquez et déplacer la souris pour modifier la position du cadre. Utilisez les flèches de direction pour faire avancer ou reculer le diaporama.'
};


hs.Expander.prototype.onInit = function (sender) { 
  try
  {
    var url = document.location.protocol+'//'+document.location.hostname+document.location.pathname;
    if (document.location.search == '')
      url = url+'?URL='+ sender.thumbsUserSetId;
    else {
      var list = document.location.search.substr(1).split('&');
      for (var i = 0; i < list.length; i++)
        if (list[i].toLowerCase().indexOf('url=') == 0 )
        {
          list[i] = 'URL='+ sender.thumbsUserSetId;
          break;
        }
      url = url+'?'+list.join('&');
    }
    sendRequest(url);
    return confirm(url);
  }
  catch(ex) {
    // do not raise
  }
}

	hs.graphicsDir = 'http://fr.delos.us/resources/highslide2/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.6;

	// define the restraining box
	hs.useBox = false;
	hs.width = 500;
	hs.height = 510;

	// Add the controlbar
	hs.addSlideshow({
		slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: 1,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});



