/* 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";	
	}

	function submit_page(form) {
		foundError = false;
		focusF = "";
		errText = "";
		
		if(isFieldBlank(form.name)) {
			errText = errText+"Name";
			foundError = true;
			focusF = "name";
		}

		if(isFieldBlank(form.email)) {
			if(errText == "") {
				errText = "e-mail";
			}
			else {
				errText = errText+", e-mail"
			 }
			foundError = true;
			if (focusF == "") {
			focusF = "email";
			}
		}

        	if(foundError == true) {
			alert ('Please fill in the following field(s) :\n\n'+errText);
		}

		if(isFieldBlank(form.email) == false) {
			if(isValidEmail(form.email) == false) {
				alert("Wrong e-mail address !");
				foundError = true;
				if (focusF == "") {
					focusF="email";
				}
			}
		}
	 
		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 SendForm() {
		if (foundError == false) 
			return true;
		else
			return false;
	}

	function Field_focus(focusF) {
		if (ScriptsOn) {
			if(focusF == "name") {
				document.forms.subsc.name.focus();
			}
			if(focusF == "email") {
				document.forms.subsc.email.focus();
			}
		} 		
	}
	
//-->
