function Email_Validator(email , name)
   {
		var objEmail = email
	// ###############################################################################
	// Check to see if the email address contains 5 or more characters, contains an @ sign and has
	// at least one "." in it
       if (objEmail.value.length < 6 || objEmail.value.indexOf('@', 0) <= 0 || objEmail.value.indexOf('.',0) <= 0 )
   		 {
			alert("Your " + name + " specified is not in the correct e-mail format.");
            objEmail.focus();
            return (false);
		  }
		  
	// ###############################################################################
	// Check for inavlid characters
	    var invalidchar = " ~`!#$%^&*()=+\|{}[]:;'<>,?/" + '"'
		var strEmail = objEmail.value
		
		for (var i = 0; i < invalidchar.length; i++)
		   {
		   	   for (var x = 0; x < strEmail.length; x++)
		          {
				    if (invalidchar.charAt(i) == strEmail.charAt(x))
					   {
				        alert("Your " + name + " contains this " +  "\" " + strEmail.charAt(x) + " \"" + " invalid character.");
                        objEmail.focus();
                        return (false);
					   }
			      }
		   }
		  
	// ###############################################################################
    // Check to see if the email address starts with an "@" or "."
	   if (objEmail.value.charAt(0) == "@")
		 {
		    alert("The " + name + " can not start with an \"@\" sign.");
            objEmail.focus();
            return (false);
		 }
	   if (objEmail.value.charAt(0) == ".")
		 {
			alert("The " + name + " can not start with an \".\" sign.");
            objEmail.focus();
            return (false);
		  }
		  
		  
	// ###############################################################################
	// Check to see if the email address contains a "." at the third or fourth character from the end
		if (objEmail.value.charAt(objEmail.value.length - 3) != ".")
		  {
			if (objEmail.value.charAt(objEmail.value.length - 4) != ".")
			  {
			     alert("The " + name + " specified does not have the correct domain extention,\n Example: \".com\" .");
			     //alert("Character " + objEmail.value.charAt(objEmail.value.length - 3) + "\n" + "Character " + objEmail.value.charAt(objEmail.value.length - 4) + "\n")
			     objEmail.focus();
                 return (false);
			  }
		   }
		  
	// ###############################################################################
	// Check to see if the email address contains a "." or "@" after the last "."
		 
	    var invalidchar = ".@"
		var strEmail = objEmail.value
		
		for (var i = 0; i < invalidchar.length; i++)
		   {
		   	 for (var x = (strEmail.length - 2); x < strEmail.length; x++)
		        {
				   if (invalidchar.charAt(i) == strEmail.charAt(x))
				     {
				       alert("Your " + name + " contains this " +  "\" " + strEmail.charAt(x) + " \"" + " invalid character after the last \".\" \n Example: \".co.\" or \".co@\" .");
                       objEmail.focus();
                       return (false);
				     }
			    }
		   }
		  
		  
	// ###############################################################################
	// Check for second instence of the "@" sign
	
		var intAtsign = objEmail.value.indexOf("@")
		intAtsign = intAtsign + 1
		if (objEmail.value.indexOf('@',intAtsign) >= 1)
		  {
		    alert("There are to many \"@\" characters in the " + name + " email address");
            objEmail.focus();
            return (false);
		   } 
			
	// ###############################################################################
	// Check to see if there is a "." before and after the "@" sign
	
		var intAtsign = objEmail.value.indexOf("@")
	    var intbefore = intAtsign - 1
		var intafter = intAtsign + 1
		
		if (objEmail.value.charAt(intbefore) == ".") //|| objEmail.value.charAt(intafter) == ".")
		  {
			alert("There is a \".\" before the \"@\" sign in " + name + ".");
            objEmail.focus();
            return (false);
		   }
		if (objEmail.value.charAt(intafter) == ".")
		  {
			 alert("There is a \".\" after the \"@\" sign in " + name + ".");
             objEmail.focus();
             return (false);
		   }
		   
	// ###############################################################################
	// Check to see if there is a "." before and after the ".", see if there are any ".."
		
		if (objEmail.value.indexOf("..") > 0)
		   {
		      alert("There are two \".\" together \n Example: \"..\" in " + name + ".");
              objEmail.focus();
              return (false);
		   }
		return(true)		
	}   
//-->
