/* email ellenorzo */


<!--

	Browser = navigator.appName;
	Verze = parseInt(navigator.appVersion);
	if ((Browser == "Netscape" && Verze >=3) || (Browser == "Microsoft Internet Explorer" &&
	Verze >= 3)) ScriptsOn = 1;
		else ScriptsOn = 0;

	
	function VarInit() {
		foundError = "";      	
		errText = "";    
		focusF = "name_left";	
	}

	function submit_page_left(form) {
		foundError = false;
		focusF = "";
		errText = "";
		
		if(isFieldBlank(form.name_left)) {
			errText = errText+"Name";
			foundError = true;
			focusF = "name_left";
		}

		if(isFieldBlank(form.email_left)) {
			if(errText == "") {
				errText = "e-mail";
			}
			else {
				errText = errText+", e-mail"
			 }
			foundError = true;
			if (focusF == "") {
			focusF = "email_left";
			}
		}

        	if(foundError == true) {
			alert ('Please fill in the following field(s) :\n\n'+errText);
		}

		if(isFieldBlank(form.email_left) == false) {
			if(isValidEmail(form.email_left) == false) {
				alert("Wrong e-mail address !");
				foundError = true;
				if (focusF == "") {
					focusF="email_left";
				}
			}
		}
	 
		Field_focus(focusF);
}	

	function isFieldBlank(theField)  {
		if(theField.value == "")
			return true;
		else
			return false;
	}

	function isValidEmail(theField) {
		if(theField.value.indexOf('@', 0) == -1)
			return false;
		else
			return true;
	}

	function SendFormLeft() {
		if (foundError == false) 
			return true;
		else
			return false;
	}

	function Field_focus(focusF) {
		if (ScriptsOn) {
			if(focusF == "name_left") {
				document.forms.subsc_left.name_left.focus();
			}
			if(focusF == "email_left") {
				document.forms.subsc_left.email_left.focus();
			}
		} 		
	}
	
//-->