
			function validaCorreo(inputStr){
					// check for the @ char
						var atPos=inputStr.indexOf("@",0);
						var spacePos=inputStr.indexOf(" ",0);
					
						if (spacePos>0)
						{ // no spaces allow
							return false;
						}	
						else if (atPos<0)
						{ // invalid or no @
							return false;
						}
						else
						{
							var pointPos=inputStr.indexOf(".",atPos);
							if (pointPos==-1){// not found
							return false;
						}
						else if (pointPos==inputStr.length-1)
						{ // last position
							return false;
						}
					}
					return true;
			}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
			function validaContacto(theForm){
			
					if (theForm.name.value == ""){
						alert("Por favor, registra tu NOMBRE, necesitamos saber quien eres");
						theForm.name.focus();
						return false;
				}
			
				if (theForm.email.value == ""){
						alert("Por favor ingrese su cuenta de correo electr\xf3nico.");
						theForm.email.focus();
						return false;
				} 
					else if (!validaCorreo(theForm.email.value)){
						alert("La direcci\xf3n de email ingresada no es correcta.");
						theForm.email.focus();
						theForm.email.select();
						return false;
				}
			
					if (theForm.message.value == ""){
						alert("S\xf3lo falta que nos cuentes algo");
						theForm.message.focus();
						return false;
				}
			
			}

