<!--
	
		function validEmail(email)	{

			
			
			invalidChars = " /:,;"							// bad characters

			if (email == "")	{							// blank spaces
				return false
			}
			
			for (i=0; i<invalidChars.length; i++)	{		// starts loop to search for bad characters
				badChar = invalidChars.charAt(i)
				if (email.indexOf(badChar,0) != -1)	{
					return false
				}
			}
			
			atPos = email.indexOf("@",1)					// holds position of @ symbol
			if (atPos == -1)	{
				return false
			}
			
			if (email.indexOf("@",atPos+1)  != -1)	{		// makes sure there is only one @ symbol
				return false
			}
			
			periodPos = email.indexOf(".",atPos)			// is there a . after the @ symbol ?
			if (periodPos == -1)	{
				return false
			}
			
			if (periodPos+3 > email.length)	{				// are there at least two characters after the . ?
				return false
			}
			
			return true
	
		}
		
		
		
		function validFName(fname) {							// Is the First Name field blank?
			if (fname == "") {
				return false
			}
			return true
		}

		function validLName(lname) {							// Is the Last Name field blank?
			if (lname == "") {
				return false
			}
			return true
		}
		
		function validBirthDate(BirthDate) {							// Is the Birth Date field blank?
			if (BirthDate == "") {
				return false
			}
			return true
		}
		
		function validAddress(address) {							// Is the Address field blank?
			if (address == "") {
				return false
			}
			return true
		}

		function validCity(city) {							// Is the City field blank?
			if (city == "") {
				return false
			}
			return true
		}

		function validState(state) {							// Is the State field blank?
			if (state == "") {
				return false
			}
			return true
		}

		function validZip(zip) {							// Is the Organization field blank?
			if (zip == "") {
				return false
			}
			return true
		}

		function validPhone(Phone) {							// Is the Day Phone field blank?
			if (Phone == "") {
				return false
			}
			return true
		}
				
				
		
				
		// alert message
		function submitIt(form)	{
			
			if (!validFName(form.FName.value))	{				// check to see if a Name has been entered
				alert("\241Debe ingresar su nombre!")
				form.FName.focus()
				form.FName.select()
				return false
			}

			if (!validLName(form.LName.value))	{				// check to see if a Name has been entered
				alert("Debe ingresar su apellido")
				form.LName.focus()
				form.LName.select()
				return false
			}
			
			if (!validBirthDate(form.BirthDate.value))	{				// check to see if a BirthDate has been entered
				alert("Debe ingresar su fecha de nacimiento")
				form.BirthDate.focus()
				form.BirthDate.select()
				return false
			}
			
			if (!validAddress(form.Address1.value))	{			// check to see if a Organization has been entered
				alert("Debe ingresar su direcci\363n")
				form.Address1.focus()
				form.Address1.select()
				return false
			}

			if (!validCity(form.City.value))	{			// check to see if a Organization has been entered
				alert("Debe ingresar su ciudad")
				form.City.focus()
				form.City.select()
				return false
			}

			if (!validState(form.State.value))	{			// check to see if a Organization has been entered
				alert("Debe elegir un estado")
				form.State.focus()
				form.State.select()
				return false
			}

			if (!validZip(form.Zip.value))	{			// check to see if a Organization has been entered
				alert("Debe ingresar su c\363digo postal")
				form.Zip.focus()
				form.Zip.select()
				return false
			}
			
			if (!validPhone(form.DayPhone.value))	{			// check to see if Day Phone has been entered
				alert("Debe ingresar su tel\351fono para localizarlo de d\355a")
				form.DayPhone.focus()
				form.DayPhone.select()
				return false
			}
			
			if (!validEmail(form.Email.value))	{				// check to see if the Email is valid
				alert("Debe ingresar una direcci\363n de e-mail v\341lida")
				form.Email.focus()
				form.Email.select()
				return false
			}

			if (form.EmailConfirm.value != form.Email.value) {
				alert("Debe ingresar una direcci\363n de e-mail que concuerde para confirmaci\363n")
				form.EmailConfirm.focus()
				form.EmailConfirm.select()
				return false
			}

						
			return true
		}
	
// -->
