function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
  window.scroll(0, 0);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById
  (n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
  
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

<!-- Begin POP-UP SIZES AND OPTIONS CODE

// OPTIONS

var view_width 		= 730		// FAQ POPUP HEIGHT
var view_height 	= 600		// FAQ POPUP HEIGHT

var scrollbarS 	= "0"		// TURN ON FAQ SCROLLBARS "1" FOR ON "0" FOR OFF

// START POPUP CODE

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + scrollbarS + ',location=0,statusbar=0,menubar=0,resizable=1,width='+view_width+',height='+view_height+'');");
}

//  End -->

function validation()
{
var email   = document.form.email.value;
//var verif   = /^[a-zA-Z0-9_-.]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,3}$/
 if ((email.indexOf('@',0)==-1) || (email.indexOf('.',0)==-1))
   {
   alert("Votre email est incorrect");
   return false;
   }
else
   {
   return true;
   }  
}

function CheckForm(theform)
{
if (theform.civilite.value=="select")
	{
		alert('Veullez indiquer votre titre');
		theform.civilite.focus();
		return false;
	}
	if (theform.nom.value=='')
	{
		alert('Veullez indiquer votre nom');
		theform.nom.focus();
		return false;
	}
	if (theform.prenom.value=='')
	{
		alert('Veullez indiquer votre prénom');
		theform.prenom.focus();
		return false;
	}
	if (theform.societe.value=='')
	{
		alert('Veullez indiquer le nom de votre société');
		theform.societe.focus();
		return false;
	}
	if (theform.fonction.value=="select")
	{
		alert('Veullez indiquer votre fonction')
		theform.fonction.focus();
		return false
	}
	if (theform.metier.value=="select")
	{
		alert('Veullez indiquer votre métier');
		theform.metier.focus();
		return false;
	}
	if (theform.client.value=="select")
	{
		alert('Veullez indiquer si vous êtes client de Sodem System');
		theform.client.focus();
		return false;
	}
	if (theform.mode_connaissance_1.value=="select")
	{
		alert('Veullez indiquer comment vous avez connu Sodem System');
		theform.mode_connaissance_1.focus();
		return false;
	}
	if (theform.adresse.value=='')
	{
		alert('Veullez indiquer votre adresse');
		theform.adresse.focus();
		return false;
	}
	if (theform.cp.value=='')
	{
		alert('Veullez indiquer le code postal');
		theform.cp.focus();
		return false;
	}
	if (theform.ville.value=='')
	{
		alert('Veullez indiquer votre ville');
		theform.ville.focus();
		return false;
	}
	if (theform.pays.value=="code_pays")
	{
		alert('Veullez indiquer votre pays');
		theform.pays.focus();
		return false;
	}
	if (theform.telephone.value=='')
	{
		alert('Veullez indiquer votre numéro de téléphone');
		theform.telephone.focus();
		return false;
	}
	if (theform.email.value=='')
	{
		alert('Veullez indiquer votre adresse email');
		theform.email.focus();
		return false;
	}
	
		return validation();
}

function validation()
{
var email   = document.form.email.value;
//var verif   = /^[a-zA-Z0-9_-.]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,3}$/
 if ((email.indexOf('@',0)==-1) || (email.indexOf('.',0)==-1))
   {
   alert("please enter a valid e-mail");
   return false;
   }
else
   {
   return true;
   }  
}

function CheckFormUK(theform)
{
if (theform.civilite.value=="select")
	{
		alert('Please enter your title');
		theform.civilite.focus();
		return false;
	}
	if (theform.nom.value=='')
	{
		alert('Please enter your name');
		theform.nom.focus();
		return false;
	}
	if (theform.prenom.value=='')
	{
		alert('Please enter your first name');
		theform.prenom.focus();
		return false;
	}
	if (theform.societe.value=='')
	{
		alert('Please enter the name of your company');
		theform.societe.focus();
		return false;
	}
	if (theform.fonction.value=="select")
	{
		alert('Please enter your job title')
		theform.fonction.focus();
		return false
	}
	if (theform.metier.value=="select")
	{
		alert('Please enter your business area');
		theform.metier.focus();
		return false;
	}
	if (theform.client.value=="select")
	{
		alert('Please indicate if you are a client');
		theform.client.focus();
		return false;
	}
	if (theform.mode_connaissance_1.value=="select")
	{
		alert('Please indicate how you have heard of Sodem System');
		theform.mode_connaissance_1.focus();
		return false;
	}
	if (theform.adresse.value=='')
	{
		alert('Please complete this field');
		theform.adresse.focus();
		return false;
	}
	if (theform.cp.value=='')
	{
		alert('Please complete this field');
		theform.cp.focus();
		return false;
	}
	if (theform.ville.value=='')
	{
		alert('Please complete this field');
		theform.ville.focus();
		return false;
	}
	if (theform.pays.value=="code_pays")
	{
		alert('Please complete this field');
		theform.pays.focus();
		return false;
	}
	if (theform.telephone.value=='')
	{
		alert('Please complete this field');
		theform.telephone.focus();
		return false;
	}
	if (theform.email.value=='')
	{
		alert('Please complete this field');
		theform.email.focus();
		return false;
	}
	
		return validationUK();
}

