function MM_findObj(n, d)
{
	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 && document.getElementById)
		x=document.getElementById(n);
	return x;
}

function MM_swapImage()
{
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for (i=0;i<(a.length-2);i+=3)
	{
		if ((x=MM_findObj(a[i]))!=null)
		{
			document.MM_sr[j++]=x;
			if (!x.oSrc)
				x.oSrc=x.src;
			x.src=a[i+2];
		}
	}
}

function MM_swapImgRestore()
{
	var i,x,a=document.MM_sr;
	for (i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
		x.src=x.oSrc;
}

function MM_preloadImages()
{
	var d=document;
	if (d.images)
	{
		if (!d.MM_p)
			d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		for (i=0; i<a.length; i++)
		{
			if (a[i].indexOf("#")!=0)
			{
				d.MM_p[j]=new Image;
				d.MM_p[j++].src=a[i];
			}
		}
	}
}

function switchLang(lang)
{
	if (lang)
		self.location=self.location.pathname+'?id_lang='+lang;
}

function switchCountry(country,domain,page)
{
	page = (page ? page : 1);
	if (country && domain)
	{
		if (country == 'japan')
		{
			window.open('http://www.jvc-victor.co.jp');
			return;
		}
		else if (country.length > 2)
		{
			country = country.substr(0,2);
		}
		else if (country.length == 2)
		{
			page = countryPage;
		}
		else
		{
			alert('Wrong choice');
			return;
		}
		if (page && domain && country)
			self.location = '/'+domain+'/'+country+'/article.'+page+'.html';
	}
}

function goDoc(id)
{
	var id;
	document.location.href = '/jpe/root/core/D000' + id;
}

function doBlink()
{
	var blink = document.all.tags("BLINK")
		for (var i=0;i<blink.length;i++)
			blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "";
}

function startBlink()
{
	if (document.all)
		setInterval("doBlink()",1000);
}

function checksubform()
{
	alert(document.forms[0]);
	return false;
}

function addBookmark(bookmark_title)
{
	var bookmark_url = document.location.href;
	if (navigator.appName == 'Netscape')
	{
		window.sidebar.addPanel(bookmark_title,bookmark_url,"");
	}
	else if (navigator.appName == 'Microsoft Internet Explorer')
	{
		window.external.AddFavorite(bookmark_url,bookmark_title);
	}
	else if (navigator.appName == 'Opera')
	{
		var elem = document.createElement('a');
		elem.setAttribute('href',bookmark_url);
		elem.setAttribute('title',bookmark_title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}
	else
	{
		return true;
	}
}

function PopUp(mypage, myname, w, h, scroll)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4)
		{
			win.window.focus();
		}
}

function PopUpResizable(mypage, myname, w, h, scroll)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4)
		{
			win.window.focus();
		}
}

function popize(element,width,height,scrollbar)
{
	if (element == null || typeof element.nodeName == 'undefined' || element.nodeName != 'A' || typeof element.getAttributeNode == 'undefined'  || (width != null && parseInt(width) == 'NaN') || (height != null && parseInt(height) == 'NaN'))
	{
		return true;
	}
	if (width == null && height == null && scrollbar == null)
	{
		width=500;
		height=500;
		window.open(element.getAttributeNode('href').nodeValue,'_blank','width='+width+','+'height='+height+','+'left=0,top=0,scrollbars=yes,resizable=yes');
	}
	else
	{
		window.open(element.getAttributeNode('href').nodeValue,parseInt(Math.random()*99999999)+'new','width='+width+','+'height='+height+','+'left=0,top=0,scrollbars=yes,resizable=yes');
	}
	return false;
}

var noresize;

function autoSize()
{
	if (!noresize)
	{
		if(document.body.scrollHeight>650)
		{
			window.setTimeout("window.resizeTo(document.body.scrollWidth+50, 6500)",1000);
		}
		else
		{
			document.body.style.overflow='hidden';
			window.setTimeout("window.resizeTo(document.body.scrollWidth, document.body.scrollHeight+125)",1000);
		}
	}
	return true;
}

function glossaire(id,connVar,appliVar)
{
	var uri;
	var id;
	var connVar;
	var appliVar;
	if (id)
		uri = '/;glossaire;glossaire;default;'+connVar+appliVar+'?nosearch=1&idx='+id;
	else
		uri = '/;glossaire;glossaire;default;'+connVar+appliVar;
	PopUpResizable(uri, 'Glossaire', '300', '250', 'yes');
}

function toggleBox(szDivID, iState)		// 1 visible, 0 hidden
{
	if(document.layers)					// NN 4+
	{
		document.layers[szDivID].visibility = iState ? "show" : "hide";
		document.layers[szDivID].display = iState ? "block" : "none";
	}
	else if(document.getElementById)	// Gecko (NN 6) & IE 5+
	{
		var obj = document.getElementById(szDivID);
		if (obj)
		{
		obj.style.visibility = iState ? "visible" : "hidden";
		obj.style.display = iState ? "block" : "none";
		}
	}
	else if(document.all)				// IE 4
	{
		document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
		document.all[szDivID].style.display = iState ? "block" : "none";
	}
}

function switchAllLayers(e)
{
	var handler;
	var childs;
	
	e = (e ? e : 'productContent');

	childs = (msie ? document.getElementById(e).children : document.getElementById(e).childNodes);

	for (x=0; x<childs.length; x++)
	{
		try
		{
			handler = (document.getElementById ? document.getElementById(childs[x].id) : document.all[childs[x].id]);
			handler.style.display = (  handler.style.display  == 'block' ? 'none' : 'block');
			handler.style.visibility = ( handler.style.visibility =='hidden' ? 'visible' : 'hidden');
		}
		catch(e)
		{
		}
	}
}

var istoggled = true;
var seuil = 199;
var savedPos;


function toggleAllLayers(e)
{
	var handler;
	var childs;

	
	e = (e ? e : 'productContent');

	childs = (msie ? document.getElementById(e).children : document.getElementById(e).childNodes);

	for (x=0; x<childs.length; x++)
	{
		try
		{
			handler = (document.getElementById ? document.getElementById(childs[x].id) : document.all[childs[x].id]);
			// handler.style.display = (  handler.style.display  == 'block' ? 'none' : 'block');
			// handler.style.visibility = ( handler.style.visibility =='hidden' ? 'visible' : 'hidden');
			
			if (handler.innerHTML.length > seuil)

			{
			if (istoggled && (handler.style.visibility == 'visible') )
				savedPos = handler.id;

			handler.style.visibility = istoggled  ? 'visible' : 'hidden';
			handler.style.display =  istoggled  ? 'block' : 'none';
			}
		}
		catch(e)
		{
		}
	}

	istoggled=!istoggled;

}

function toggleLayer (e,initit,f)
{
	var handler;
	var childs;
	f = (f ? f : 'productContent');
	childs = (msie ? document.getElementById(f).children : document.getElementById(f).childNodes);
	if ( (document.getElementById('pminit')) && (!initit) )
	{
		document.getElementById('pminit').setAttribute('className', 'pmoff');
		document.getElementById('pminit').setAttribute('class', 'pmoff');
	}
	for (x=0; x<childs.length; x++)
	{
		try
		{
			handler = (document.getElementById ? document.getElementById(childs[x].id) : document.all[childs[x].id]);
			handler.style.display = (childs[x].id == e ? 'block' : 'none');
			handler.style.visibility = (childs[x].id == e ? 'visible' : 'hidden');
		}
		catch(e)
		{
		}
	}
}

var notoggle = false;

function initToggleLayer (e,f,g,h)
{
	var handler;
	var childs;
	var err;

	if (notoggle)
		return;

	h = (h ? h : 'productMenu');
	g = (g ? g : 'productContent');
	f = (f ? f : 'productPresentation');
	childs = (msie ? document.getElementById(h).children : document.getElementById(h).childNodes);
	if (document.getElementById('pminit'))
	{
		document.getElementById('pminit').setAttribute('className', 'active');
		document.getElementById('pminit').setAttribute('class', 'active');
		document.getElementById('pminit').setAttribute('className', 'pmon');
		document.getElementById('pminit').setAttribute('class', 'pmon');
	}
	var str = '';
	var firstLayer = true;
	var toto;
	var content;
	childs = (msie ? document.getElementById(h).children : document.getElementById(h).childNodes);
	for (x=0; x<childs.length; x++)
	{
		if (childs[x].id)
		{
			try
			{
				handler = (document.getElementById ? document.getElementById(childs[x].id).style : document.all[childs[x].id].style);
			}
			catch(e)
			{
			}
			if (handler)
			{
				var toto = (msie ? childs[x].children : childs[x].childNodes);
				content = '';
				for (z=0;z<toto.length; z++)
				{
					if ( (toto[z].innerHTML != 'undefined') && (toto[z].innerHTML != '')  )
					{
						//alert('-'+toto[z].innerHTML+'-');
						content += toto[z].innerHTML;
					}
				}
				//alert(content);
				var hasContent = (content.length ? true : false);
				if (hasContent && firstLayer)
				{
					firstLayer = false;
					handler.display='block';
				}
				else
				{
					handler.display='none';
				}
			}
		}
	}
	toggleLayer(f,true);
}

function formsManagement()
{
	for (x=0; x<document.forms.length; x++)
	{
		try
		{
			document.forms[x].attachEvent('onsubmit',formControl);
			//alert("Attaching controls ...");
		}
		catch(e)
		{
		}
	}
}

function formControl()
{
	var handler = event.srcElement;
	var errormsg = '';
	var radioControl = new Array();
	//alert("Loading controls ...");
	if (handler)
	{
		var oForm = handler.all;
		for (x=0; x< oForm.length; x++)
		{
			try
			{
				if (oForm[x].type == 'radio' && oForm[x].mandatory == 'on')
				{
					var myradio = oForm[x].name;
					var hradio = document.getElementsByName(myradio);
					var sradio = false;
					for (y=0; y<hradio.length; y++)
					{
						if (hradio[y].checked == true)
							sradio = true;
					}
					if (!sradio)
					{
						if (!radioControl[oForm[x].name])
							errormsg += ' - ' + oForm[x].name.replace(/_/," ").toUpperCase() + '\n';
						radioControl[oForm[x].name] = true;
					}
				}
				else if ( ( (oForm[x].type == 'select-one') || (oForm[x].type == 'select-multiple') ) && oForm[x].mandatory == 'on')
				{
					if ( ( oForm[x].selectedIndex == -1)  || (!oForm[x].options[oForm[x].selectedIndex].value) )
					{
						errormsg += ' - ' + oForm[x].name.replace(/_/," ").toUpperCase() + '\n';
					}
				}
				else if (oForm[x].mandatory == 'on' && !oForm[x].value && oForm[x].name)
					errormsg += ' - ' + oForm[x].name.replace(/_/," ").toUpperCase() + '\n';
			}
			catch(e)
			{
			}
		}
	}
	if (errormsg)
	{
		alert('Vous devez obligatoirement saisir :\n\n'+errormsg);
		return false;
	}
	else
	{
		return true;
	}
}

function checkmail(email)
{
	arobase = false;
	point = false;
	for (i=0; i<email.length; i++)
	{
		if (email.substr(i,1) == '@') arobase = true;
		if (arobase && email.substr(i,1) == '.') point = true;
	}
	return arobase && point;
}

function submit_searchForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Type your search here") chaine += "one or more keyword(s) to perform your search!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_DE()
{
	titre = "Sie müssen eingeben ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Geben Sie hier Ihren Suchbegriff ein") chaine += "eines oder mehr Begriffe, um Ihre Suche durchzuführen!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_ES()
{
	titre = "Debe introducir ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Introduzca aquí su búsqueda") chaine += "una o más palabras clave para realizar la búsqueda!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Rechercher") chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_IT()
{
	titre = "Devi scrivere ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Inserisci la tua ricerca") chaine += "una o più parole chiave per eseguire la ricerca!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_advancedSearchForm()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.advancedSearchForm.search_string.value == 0 || document.forms.advancedSearchForm.search_string.value == "Saisissez un ou plusieurs mot(s) clé(s)") chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche avancée !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.advancedSearchForm.submit();
}

function submit_advancedSearchForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (document.forms.advancedSearchForm.search_string.value == 0 || document.forms.advancedSearchForm.search_string.value == "Type your search here") chaine += "one or more keyword(s) to perform your advanced search!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.advancedSearchForm.submit();
}

function submit_advancedSearchForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.advancedSearchForm.search_string.value == 0 || document.forms.advancedSearchForm.search_string.value == "Saisissez votre recherche ici") chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche avancée !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.advancedSearchForm.submit();
}

function submit_newsletterForm()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.newsletterForm.email.value) || document.forms.newsletterForm.email.value == "Saisissez votre adresse email") chaine += "une adresse email valide pour vous inscrire à la lettre d'information !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterForm.submit();
}

function submit_newsletterForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.newsletterForm.email.value) || document.forms.newsletterForm.email.value == "Type your email here") chaine += "a valid email address to subscribe to the newsletter!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterForm.submit();
}

function submit_newsletterForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.newsletterForm.email.value) || document.forms.newsletterForm.email.value == "Saisissez votre email ici") chaine += "une adresse email valide pour vous inscrire de la lettre d'information !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterForm.submit();
}

function submit_unsubscribeForm()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.unsubscribeForm.email.value) || document.forms.unsubscribeForm.email.value == "Saisissez votre adresse email") chaine += "une adresse email valide pour vous désinscrire de la lettre d'information !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.unsubscribeForm.submit();
}

function submit_unsubscribeForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.unsubscribeForm.email.value) || document.forms.unsubscribeForm.email.value == "Type your email here") chaine += "a valid email address to unsubscribe to the newsletter!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.unsubscribeForm.submit();
}

function submit_sendToFriendForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.sendToFriendForm.name.value == 0) chaine += "     - vos prénom et nom\n";
	if (!checkmail(document.forms.sendToFriendForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.sendToFriendForm.targetname.value == 0) chaine += "     - les prénom et nom de votre ami(e)\n";
	if (!checkmail(document.forms.sendToFriendForm.targetemail.value)) chaine += "     - l'adresse email de votre ami(e)\n";
	if (document.forms.sendToFriendForm.subject.value == 0) chaine += "     - le sujet de votre message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.sendToFriendForm.submit();
}

function submit_sendToFriendForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.sendToFriendForm.name.value == 0) chaine += "     - your first name and family name\n";
	if (!checkmail(document.forms.sendToFriendForm.email.value)) chaine += "     - your email address\n";
	if (document.forms.sendToFriendForm.targetname.value == 0) chaine += "     - your friend's first name and family name\n";
	if (!checkmail(document.forms.sendToFriendForm.targetemail.value)) chaine += "     - your friend's email address\n";
	if (document.forms.sendToFriendForm.subject.value == 0) chaine += "     - the subject of your message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.sendToFriendForm.submit();
}

function submit_sendToFriendForm_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.sendToFriendForm.name.value == 0) chaine += "     - vos prénom et nom\n";
	if (!checkmail(document.forms.sendToFriendForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.sendToFriendForm.targetname.value == 0) chaine += "     - les prénom et nom de votre ami(e)\n";
	if (!checkmail(document.forms.sendToFriendForm.targetemail.value)) chaine += "     - l'adresse email de votre ami(e)\n";
	if (document.forms.sendToFriendForm.subject.value == 0) chaine += "     - le sujet de votre message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.sendToFriendForm.submit();
}

function submit_recommendToFriendForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.recommendToFriendForm.name.value == 0) chaine += "     - vos prénom et nom\n";
	if (!checkmail(document.forms.recommendToFriendForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.recommendToFriendForm.targetname.value == 0) chaine += "     - les prénom et nom de votre ami(e)\n";
	if (!checkmail(document.forms.recommendToFriendForm.targetemail.value)) chaine += "     - l'adresse email de votre ami(e)\n";
	if (document.forms.recommendToFriendForm.subject.value == 0) chaine += "     - le sujet de votre message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.recommendToFriendForm.submit();
}

function submit_recommendToFriendForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.recommendToFriendForm.name.value == 0) chaine += "     - your first name and family name\n";
	if (!checkmail(document.forms.recommendToFriendForm.email.value)) chaine += "     - your email address\n";
	if (document.forms.recommendToFriendForm.targetname.value == 0) chaine += "     - your friend's first name and family name\n";
	if (!checkmail(document.forms.recommendToFriendForm.targetemail.value)) chaine += "     - your friend's email address\n";
	if (document.forms.recommendToFriendForm.subject.value == 0) chaine += "     - the subject of your message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.recommendToFriendForm.submit();
}

function submit_loginForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.loginForm.code_client.value == 0 || document.forms.loginForm.code_client.value == "Votre identifiant") chaine += "     - votre identifiant\n";
	if (document.forms.loginForm.pwd_client.value == 0 || document.forms.loginForm.pwd_client.value == "Votre mot de passe") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginForm.submit();
}

function submit_loginForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.loginForm.code_client.value == 0 || document.forms.loginForm.code_client.value == "Identifier") chaine += "     - your identifier\n";
	if (document.forms.loginForm.pwd_client.value == 0 || document.forms.loginForm.pwd_client.value == "Password") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginForm.submit();
}

function submit_loginFormHome()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.loginFormHome.code_client.value == 0 || document.forms.loginFormHome.code_client.value == "Identifiant") chaine += "     - votre identifiant\n";
	if (document.forms.loginFormHome.pwd_client.value == 0 || document.forms.loginFormHome.pwd_client.value == "Password") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormHome.submit();
}

function submit_loginFormHome_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.loginFormHome.code_client.value == 0 || document.forms.loginFormHome.code_client.value == "Identifier") chaine += "     - your identifier\n";
	if (document.forms.loginFormHome.pwd_client.value == 0 || document.forms.loginFormHome.pwd_client.value == "Password") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormHome.submit();
}

function submit_loginFormUsers()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginFormUsers.email.value) || document.forms.loginFormUsers.email.value == "Email") chaine += "     - votre adresse email\n";
	if (document.forms.loginFormUsers.password.value == 0 || document.forms.loginFormUsers.password.value == "Password") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormUsers_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginFormUsers.email.value) || document.forms.loginFormUsers.email.value == "Email") chaine += "     - your email address\n";
	if (document.forms.loginFormUsers.password.value == 0 || document.forms.loginFormUsers.password.value == "Password") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormUsers_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginFormUsers.email.value) || document.forms.loginFormUsers.email.value == "Email") chaine += "     - votre adresse email\n";
	if (document.forms.loginFormUsers.password.value == 0 || document.forms.loginFormUsers.password.value == "Mot de passe") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormDealers()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.dealer_customer_id.value == 0 || document.forms.loginFormDealers.dealer_customer_id.value == "Identifiant client") chaine += "     - votre identifiant client\n";
	if (document.forms.loginFormDealers.dealer_user_name.value == 0 || document.forms.loginFormDealers.dealer_user_name.value == "Nom d'utilisateur") chaine += "     - votre nom d'utilisateur\n";
	if (document.forms.loginFormDealers.dealer_password.value == 0 || document.forms.loginFormDealers.dealer_password.value == "Password") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function submit_loginFormDealers_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.as_customer_id.value == 0 || document.forms.loginFormDealers.as_customer_id.value == "Customer ID") chaine += "     - your customer ID\n";
	if (document.forms.loginFormDealers.as_user_name.value == 0 || document.forms.loginFormDealers.as_user_name.value == "User name") chaine += "     - your user name\n";
	if (document.forms.loginFormDealers.as_password.value == 0 || document.forms.loginFormDealers.as_password.value == "Password") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function submit_loginFormDealers_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.as_customer_id.value == 0 || document.forms.loginFormDealers.as_customer_id.value == "N° de client") chaine += "     - votre n° de client\n";
	if (document.forms.loginFormDealers.as_user_name.value == 0 || document.forms.loginFormDealers.as_user_name.value == "Nom d'utilisateur") chaine += "     - votre nom d'utilisateur\n";
	if (document.forms.loginFormDealers.as_password.value == 0 || document.forms.loginFormDealers.as_password.value == "Mot de passe") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function submit_registerForm()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.registerForm.email.value)) chaine += "une adresse email valide pour vous enregistrer !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registerForm.submit();
}

function submit_registerForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.registerForm.email.value)) chaine += "a valid email address to register!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registerForm.submit();
}

function submit_registrationForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (!checkmail(document.forms.registrationForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.registrationForm.first_name.value == 0) chaine += "     - votre prénom\n";
	if (document.forms.registrationForm.family_name.value == 0) chaine += "     - votre nom\n";
	if (document.forms.registrationForm.password1.value == 0) chaine += "     - votre mot de passe\n";
	if (document.forms.registrationForm.password2.value == 0) chaine += "     - la confirmation de votre mot de passe\n";
	if (document.forms.registrationForm.password1.value != 0 && document.forms.registrationForm.password2.value != 0 && document.forms.registrationForm.password1.value != document.forms.registrationForm.password2.value) chaine += "     - le même mot de passe dans les deux champs prévus à cet effet\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registrationForm.submit();
}

function submit_registrationForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (!checkmail(document.forms.registrationForm.email.value)) chaine += "     - your email address\n";
	if (document.forms.registrationForm.first_name.value == 0) chaine += "     - your first name\n";
	if (document.forms.registrationForm.family_name.value == 0) chaine += "     - your family name\n";
	if (document.forms.registrationForm.password1.value == 0) chaine += "     - your password\n";
	if (document.forms.registrationForm.password2.value == 0) chaine += "     - the confirmation of your password\n";
	if (document.forms.registrationForm.password1.value != 0 && document.forms.registrationForm.password2.value != 0 && document.forms.registrationForm.password1.value != document.forms.registrationForm.password2.value) chaine += "     - the same password in both corresponding fields\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registrationForm.submit();
}

function submit_registrationForm_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (!checkmail(document.forms.registrationForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.registrationForm.first_name.value == 0) chaine += "     - votre prénom\n";
	if (document.forms.registrationForm.family_name.value == 0) chaine += "     - votre nom\n";
	if (document.forms.registrationForm.password1.value == 0) chaine += "     - votre mot de passe\n";
	if (document.forms.registrationForm.password2.value == 0) chaine += "     - la confirmation de votre mot de passe\n";
	if (document.forms.registrationForm.password1.value != 0 && document.forms.registrationForm.password2.value != 0 && document.forms.registrationForm.password1.value != document.forms.registrationForm.password2.value) chaine += "     - le même mot de passe dans les champs correspondants\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registrationForm.submit();
}

function submit_passwordForgottenForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.passwordForgottenForm.email.value)) chaine += "your email address!\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.passwordForgottenForm.submit();
}

function submit_passwordForgottenForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.passwordForgottenForm.email.value)) chaine += "votre adresse email !\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.passwordForgottenForm.submit();
}

function submit_logInDetailsForgottenForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.logInDetailsForgottenForm.name_of_company.value == 0) chaine += "     - the name of your company\n";
	if (document.forms.logInDetailsForgottenForm.firstname.value == 0) chaine += "     - your firstname\n";
	if (document.forms.logInDetailsForgottenForm.surname.value == 0) chaine += "     - your surname\n";
	if (!checkmail(document.forms.logInDetailsForgottenForm.email.value)) chaine += "     - your email address\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.logInDetailsForgottenForm.submit();
}

function submit_logInDetailsForgottenForm_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.logInDetailsForgottenForm.name_of_company.value == 0) chaine += "     - le nom de votre société\n";
	if (document.forms.logInDetailsForgottenForm.firstname.value == 0) chaine += "     - votre prénom\n";
	if (document.forms.logInDetailsForgottenForm.surname.value == 0) chaine += "     - votre nom\n";
	if (!checkmail(document.forms.logInDetailsForgottenForm.email.value)) chaine += "     - votre adresse email\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.logInDetailsForgottenForm.submit();
}

function submit_annuSearchForm1()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.annuSearchForm1.contact_firstname.value == 0) chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche dans l'annuaire téléphonique !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.annuSearchForm1.submit();
}

function submit_annuSearchForm1_EN()
{
	titre = "You must type ";
	chaine = "";
	if (document.forms.annuSearchForm1.contact_firstname.value == 0) chaine += "one or more keyword(s) to perform your sear