// JavaScript Document

function CheckLoginDE() 
{
	alert("Info: \nBitte melden Sie sich an, damit Sie Artikel in den Warenkorb legen können. Denn nur als registrierter Vistan-Kunde können Sie Artikel in unserem Shop bestellen. ");
};

function CheckLoginEN() 
{
	alert("Info: \nPlease log in so you can place items in the shopping cart. For only as a registered customer, you can order Vistan items in our store. ");
};

function CheckLoginFR() 
{
	alert("Info: \nS'il vous plaît Connectez-vous pour que vous puissiez article au panier. Pour seulement en tant que client enregistré, vous pouvez commander des articles dans notre magasin Vistan. ");
};



function KatInfoDE() 
{
	alert("Info: \nBitte melden Sie sich mit Ihrer Kundennummer an, um den Katalog downloaden zu können. \nWenn Sie noch kein registrierter Optiker sind, erhalten Sie Ihre Login Daten direkt bei Vistan (siehe rechte Spalte).");
};

function KatInfoEN() 
{
	alert("Info: \nPlease login with your account number as to download the catalogue. \nIn case you are not a registered optician yet, you will receive the login details directly from VISTAN (see right column).");
};

function KatInfoFR() 
{
	alert("Afin de télécharger le catalogue, connectez-vous en utilisant votre identifiant et mot de passe. \nSi n’avez pas encore ces coordonnées, veuillez nous contacter (voir colonne de droite).");
};


 


function CheckCountry() 
{
	if ( document.formular.person_country.value != document.formular.delivery_country.value )
	{		
		alert("Eine Lieferung ist nur in das Land möglich in dem auch ihr Firmensitz ist!");
		return false;
	}

};

function ChangeValue(FieldName)
{
	document.formular.elements[FieldName].value = 0;
};


function CheckColorSizeAndCountDE(FormularName, FieldNameColor, FieldNameSize, FieldNameQty)
{
	if(document.forms[FormularName].elements[FieldNameColor].value == "Farbwahl")
	{
		alert("Bitte wählen Sie eine Farbe aus!");
		return false;
	}
	else if(document.forms[FormularName].elements[FieldNameSize].value == "Größenwahl")
	{
		alert("Bitte wählen Sie eine Größe aus!");
		return false;
	}
	else if(document.forms[FormularName].elements[FieldNameQty].value == "" )
	{
		alert("Bitte geben Sie die gewünschte Anzahl ein!");
		return false;
	}
};


function CheckColorSizeAndCountEN(FormularName, FieldNameColor, FieldNameSize, FieldNameQty)
{
	if(document.forms[FormularName].elements[FieldNameColor].value == "Farbwahl")
	{
		alert("Please select a colour!");
		return false;
	}
	else if(document.forms[FormularName].elements[FieldNameSize].value == "Größenwahl")
	{
		alert("Please select a size!");
		return false;
	}
	else if(document.forms[FormularName].elements[FieldNameQty].value == "" )
	{
		alert("Please enter the quantity as required!");
		return false;
	}
};

function CheckColorSizeAndCountFR(FormularName, FieldNameColor, FieldNameSize, FieldNameQty)
{
	if(document.forms[FormularName].elements[FieldNameColor].value == "Farbwahl")
	{
		alert("Sélectionnez une couleur!");
		return false;
	}
	else if(document.forms[FormularName].elements[FieldNameSize].value == "Größenwahl")
	{
		alert("Sélectionnez une taille!");
		return false;
	}
	else if(document.forms[FormularName].elements[FieldNameQty].value == "" )
	{
		alert("Indiquer la quantité désirée!");
		return false;
	}
};
