/////////////////////////////////////////////////////////////////
// Variables a modifier en cas de changement de Serveur Web ou //
// en cas de changement de nom de service.                     //
/////////////////////////////////////////////////////////////////
if(window.location.host.indexOf('arc-intl.com',0) >= 0)
{
	var SITE_ACCUEIL = 'externe';
} 
else
{
	if(window.location.host.substring(0,3) == 'dww' || window.location.host.substring(0,4) == 'dev2'|| window.location.host.substring(0,8) == 'intradev')
	{
		var SITE_ACCUEIL = 'dwwacc.vca';
	} 
	else
	{
		var SITE_ACCUEIL = 'wwwacc.vca';
	}
}
if(window.location.host.substring(0,3) == 'dww' || window.location.host.substring(0,4) == 'dev2')
{
	var SITE = 'dwwmkg.vca';
} 
else
{
	var SITE = 'wwwmkg.arc-intl.com';
}


//=================
// 	checkEmail
//=================   
function checkEmail(EMAIL)
{
	var a = EMAIL.value;
	var test = "" + a;
	for(var k = 0; k < test.length;k++)
	{
		var c = test.substring(k , k+1);
		if(c == "@")
		{
			return true;
		}
	}
	return false;
}   

//=========================
// 	checkMandatory
//=========================
function checkMandatory()
{
   var OkLibelle = true;
   var NomLibelle;
   for(i = 0; i < checkMandatory.arguments.length; i += 1)
   {
     NomLibelle = checkMandatory.arguments[i].name;

     var strText = checkMandatory.arguments[i];

     if((strText.type == 'text') || (strText.type == 'textarea'))
     { 
		  while (strText.value.substring(strText.value.length-1,strText.value.length) == ' ')
		  {
	     	   strText.value = strText.value.substring(0, strText.value.length-1);
		  }
     }
     if(strText.value == '')
     {
       document.forms[0].elements[NomLibelle].focus();
       OkLibelle = false;
     }
   }

   if (OkLibelle == true)
   {
     return true;
   }
   else
   {
     return false;
   }
}