function submit_as_order(mode)
{
	var msg = '';
	if (mode == 1)
	{
		if (!document.forms.orderForm.tcs.checked)
			msg+="\n-You have to agree Terms & conditions of sale";
	}
	else
	{
		if (document.forms.orderForm.shippingaddress.selectedIndex < 0)
			msg+="\n-Shipping address is mandatory";

		if (document.forms.orderForm.order_reference.value == '')
			msg+="\n-Your order reference is mandatory";
	}

	if (msg)
	{
		msg = "Please fill-in the following fields : \n"  +msg + "\n";
		alert(msg);
		return (false);
	}
	else
		document.forms.orderForm.submit();
}

function submit_updateNewsletterProfileForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.updateNewsletterProfileForm.country.value == 0) chaine += "     - your country\n";
	if (document.forms.updateNewsletterProfileForm.language.value == 0) chaine += "     - your language\n";
	if (document.forms.updateNewsletterProfileForm.title.value == 0) chaine += "     - your title\n";
	if (document.forms.updateNewsletterProfileForm.firstname.value == 0) chaine += "     - your first name\n";
	if (document.forms.updateNewsletterProfileForm.lastname.value == 0) chaine += "     - your last name\n";
	if (document.forms.updateNewsletterProfileForm.company.value == 0) chaine += "     - your company name\n";
	if (document.forms.updateNewsletterProfileForm.address.value == 0) chaine += "     - your address\n";
	if (document.forms.updateNewsletterProfileForm.zipcode.value == 0) chaine += "     - your postal code\n";
	if (document.forms.updateNewsletterProfileForm.town.value == 0) chaine += "     - your town\n";
	if (document.forms.updateNewsletterProfileForm.interested_in_technology.checked != true && document.forms.updateNewsletterProfileForm.interested_in_pro_video.checked != true && document.forms.updateNewsletterProfileForm.interested_in_pro_surveillance.checked != true && document.forms.updateNewsletterProfileForm.interested_in_corporate_information.checked != true && document.forms.updateNewsletterProfileForm.interested_in_edgy_stuff.checked != true) chaine += "     - a least one field of interest\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.updateNewsletterProfileForm.submit();
}

function submit_newsletterForm_DE()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.newsletterForm.email.value) || document.forms.newsletterForm.email.value == "Bitte E-Mail Adresse eingeben") chaine += "a valid email address to subscribe to the newsletter!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterForm.submit();
}

function submit_loginFormUsers_DE()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginFormUsers.email.value) || document.forms.loginFormUsers.email.value == "E-Mail ID") chaine += "     - your email address\n";
	if (document.forms.loginFormUsers.password.value == 0 || document.forms.loginFormUsers.password.value == "Passwort") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormDealers_DE()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.as_customer_id.value == 0 || document.forms.loginFormDealers.as_customer_id.value == "Kunden ID") chaine += "     - your customer ID\n";
	if (document.forms.loginFormDealers.as_user_name.value == 0 || document.forms.loginFormDealers.as_user_name.value == "Benutzer ID") chaine += "     - your user name\n";
	if (document.forms.loginFormDealers.as_password.value == 0 || document.forms.loginFormDealers.as_password.value == "Passwort") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function submit_newsletterForm_ES()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.newsletterForm.email.value) || document.forms.newsletterForm.email.value == "Introduzca su correo aquí") chaine += "a valid email address to subscribe to the newsletter!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterForm.submit();
}

function submit_loginFormUsers_ES()
{
	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 == "Contrasena") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormDealers_ES()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.as_customer_id.value == 0 || document.forms.loginFormDealers.as_customer_id.value == "ID de cliente") chaine += "     - your customer ID\n";
	if (document.forms.loginFormDealers.as_user_name.value == 0 || document.forms.loginFormDealers.as_user_name.value == "ID usuario") chaine += "     - your user name\n";
	if (document.forms.loginFormDealers.as_password.value == 0 || document.forms.loginFormDealers.as_password.value == "Contrasena") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function recupVar(nomVariable)
{
	var infos = location.href.substring(location.href.indexOf("?")+1, location.href.length)+"&";
	if (infos.indexOf("#")!=-1)
		infos = infos.substring(0,infos.indexOf("#"))+"&";
	var variable = 0;
	{
		nomVariable = nomVariable + "=";
		var taille = nomVariable.length;
		if (infos.indexOf(nomVariable)!=-1)
			variable = infos.substring(infos.indexOf(nomVariable)+taille,infos.length).substring(0,infos.substring(infos.indexOf(nomVariable)+taille,infos.length).indexOf("&"));
	}
	return variable;
}

function submit_proHD_Microsite_Form_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.proHD_Microsite_Form.title.value == 0) chaine += "     - your title\n";
	if (document.forms.proHD_Microsite_Form.firstname.value == 0) chaine += "     - your first name\n";
	if (document.forms.proHD_Microsite_Form.surname.value == 0) chaine += "     - your surname\n";
	if (document.forms.proHD_Microsite_Form.company.value == 0) chaine += "     - your company name\n";
	if (!checkmail(document.forms.proHD_Microsite_Form.email.value)) chaine += "     - your email address\n";
	if (document.forms.proHD_Microsite_Form.telephone.value == 0) chaine += "     - your telephone number\n";
	if (document.forms.proHD_Microsite_Form.address.value == 0) chaine += "     - your address\n";
	if (document.forms.proHD_Microsite_Form.city.value == 0) chaine += "     - your city\n";
	if (document.forms.proHD_Microsite_Form.postcode.value == 0) chaine += "     - your post code\n";
	if (document.forms.proHD_Microsite_Form.country.value == 0) chaine += "     - your country\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.proHD_Microsite_Form.submit();
}

function submit_proHD_Microsite_Form_DE()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.proHD_Microsite_Form.title.value == 0) chaine += "     - your title\n";
	if (document.forms.proHD_Microsite_Form.firstname.value == 0) chaine += "     - your first name\n";
	if (document.forms.proHD_Microsite_Form.surname.value == 0) chaine += "     - your surname\n";
	if (document.forms.proHD_Microsite_Form.company.value == 0) chaine += "     - your company name\n";
	if (!checkmail(document.forms.proHD_Microsite_Form.email.value)) chaine += "     - your email address\n";
	if (document.forms.proHD_Microsite_Form.telephone.value == 0) chaine += "     - your telephone number\n";
	if (document.forms.proHD_Microsite_Form.address.value == 0) chaine += "     - your address\n";
	if (document.forms.proHD_Microsite_Form.city.value == 0) chaine += "     - your city\n";
	if (document.forms.proHD_Microsite_Form.postcode.value == 0) chaine += "     - your post code\n";
	if (document.forms.proHD_Microsite_Form.country.value == 0) chaine += "     - your country\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.proHD_Microsite_Form.submit();
}

function submit_proHD_Microsite_Form_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.proHD_Microsite_Form.title.value == 0) chaine += "     - votre civilité\n";
	if (document.forms.proHD_Microsite_Form.firstname.value == 0) chaine += "     - votre prénom\n";
	if (document.forms.proHD_Microsite_Form.surname.value == 0) chaine += "     - votre nom\n";
	if (document.forms.proHD_Microsite_Form.company.value == 0) chaine += "     - le nom de votre société\n";
	if (!checkmail(document.forms.proHD_Microsite_Form.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.proHD_Microsite_Form.telephone.value == 0) chaine += "     - votre numéro de téléphone\n";
	if (document.forms.proHD_Microsite_Form.address.value == 0) chaine += "     - votre adresse\n";
	if (document.forms.proHD_Microsite_Form.city.value == 0) chaine += "     - votre ville\n";
	if (document.forms.proHD_Microsite_Form.postcode.value == 0) chaine += "     - votre code postal\n";
	if (document.forms.proHD_Microsite_Form.country.value == 0) chaine += "     - votre pays\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.proHD_Microsite_Form.submit();
}

function submit_proHD_Microsite_Form_ES()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.proHD_Microsite_Form.title.value == 0) chaine += "     - your title\n";
	if (document.forms.proHD_Microsite_Form.firstname.value == 0) chaine += "     - your first name\n";
	if (document.forms.proHD_Microsite_Form.surname.value == 0) chaine += "     - your surname\n";
	if (document.forms.proHD_Microsite_Form.company.value == 0) chaine += "     - your company name\n";
	if (!checkmail(document.forms.proHD_Microsite_Form.email.value)) chaine += "     - your email address\n";
	if (document.forms.proHD_Microsite_Form.telephone.value == 0) chaine += "     - your telephone number\n";
	if (document.forms.proHD_Microsite_Form.address.value == 0) chaine += "     - your address\n";
	if (document.forms.proHD_Microsite_Form.city.value == 0) chaine += "     - your city\n";
	if (document.forms.proHD_Microsite_Form.postcode.value == 0) chaine += "     - your post code\n";
	if (document.forms.proHD_Microsite_Form.country.value == 0) chaine += "     - your country\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.proHD_Microsite_Form.submit();
}

function submit_proHD_Microsite_Form_IT()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.proHD_Microsite_Form.title.value == 0) chaine += "     - your title\n";
	if (document.forms.proHD_Microsite_Form.firstname.value == 0) chaine += "     - your first name\n";
	if (document.forms.proHD_Microsite_Form.surname.value == 0) chaine += "     - your surname\n";
	if (document.forms.proHD_Microsite_Form.company.value == 0) chaine += "     - your company name\n";
	if (!checkmail(document.forms.proHD_Microsite_Form.email.value)) chaine += "     - your email address\n";
	if (document.forms.proHD_Microsite_Form.telephone.value == 0) chaine += "     - your telephone number\n";
	if (document.forms.proHD_Microsite_Form.address.value == 0) chaine += "     - your address\n";
	if (document.forms.proHD_Microsite_Form.city.value == 0) chaine += "     - your city\n";
	if (document.forms.proHD_Microsite_Form.postcode.value == 0) chaine += "     - your post code\n";
	if (document.forms.proHD_Microsite_Form.country.value == 0) chaine += "     - your country\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.proHD_Microsite_Form.submit();
}

function submit_proHD_Microsite_Form_RU()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.proHD_Microsite_Form.title.value == 0) chaine += "     - your title\n";
	if (document.forms.proHD_Microsite_Form.firstname.value == 0) chaine += "     - your first name\n";
	if (document.forms.proHD_Microsite_Form.surname.value == 0) chaine += "     - your surname\n";
	if (document.forms.proHD_Microsite_Form.company.value == 0) chaine += "     - your company name\n";
	if (!checkmail(document.forms.proHD_Microsite_Form.email.value)) chaine += "     - your email address\n";
	if (document.forms.proHD_Microsite_Form.telephone.value == 0) chaine += "     - your telephone number\n";
	if (document.forms.proHD_Microsite_Form.address.value == 0) chaine += "     - your address\n";
	if (document.forms.proHD_Microsite_Form.city.value == 0) chaine += "     - your city\n";
	if (document.forms.proHD_Microsite_Form.postcode.value == 0) chaine += "     - your post code\n";
	if (document.forms.proHD_Microsite_Form.country.value == 0) chaine += "     - your country\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.proHD_Microsite_Form.submit();
}

function submit_newsletterUnsubscriptionForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.newsletterUnsubscriptionForm.email.value)) chaine += "a valid email address to unsubscribe to the newsletter!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterUnsubscriptionForm.submit();
}

function submit_newsletterUnsubscriptionForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.newsletterUnsubscriptionForm.email.value)) chaine += "une adresse email valide pour vous désinscrire de la lettre d'information !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterUnsubscriptionForm.submit();
}
