<!--

function checkAll3() 
			{	
		
	var bgBad = "#FDEEB0";
	var txtBad = "#580005"; 

	txt=self.document.forms[0].numtest.value; 
	RN=self.document.forms[0].RN.value;
	subNum=self.document.forms[0].subNum.value;
	if (txt =='') 
			{
		alert("Please enter a number in the anti-spam box.");
		self.document.forms[0].numtest.focus();
        return (false);
	    }
		else
		{
			
			if (txt==(RN-subNum))
			{
				//;
				//  return (true);
				} else {
					alert("Please check your math and enter the correct number in the anti-spam box. \r\n \r\n This is important to discourage spammers.");
						self.document.forms[0].numtest.focus();
					        return (false);
					}

txtmsg=self.document.forms[0].message.value;	
		if ((txtmsg.indexOf("www")>=0)||(txtmsg.indexOf("http")>=0)||(txtmsg.indexOf("WWW")>=0)||(txtmsg.indexOf("HTTP")>=0)||(txtmsg.indexOf("a href")>=0)||(txtmsg.indexOf(".com")>=0)||(txtmsg.indexOf(".COM")>=0)) {
			alert("Sorry- no links may be put in this message \r\n \r\n This is important to discourage spammers."); 
					self.document.forms[0].message.focus();
			        return (false);
		}
//	if (txtmsg =='')  {  MESSAGE NOT REQUIRED
//		alert("Please enter a message.");
	//	self.document.forms[0].message.focus();
  //      return (false);
	//    } 

			
txt1=self.document.forms[0].name1.value;
txt2=self.document.forms[0].name2.value;
txt3=self.document.forms[0].name3.value;
txt4=self.document.forms[0].email1.value;
txt5=self.document.forms[0].email2.value;
txt6=self.document.forms[0].email3.value;
	if (txt1 ==''&&txt4 !='') {
		alert("Please enter your first friend's name. \r\n If you don't know this person, please don't use their email address.\r\n (we do not keep their - or your - information)");
	self.document.forms[0].name1.focus();
       return (false);
	   }
	   	if (txt2 ==''&&txt5 !='') {
		alert("Please enter your second friend's name. \r\n If you don't know this person, please don't use their email address.\r\n (we do not keep their - or your - information)");
	self.document.forms[0].name2.focus();
       return (false);
	   }
	   	if (txt3 ==''&&txt6 !='') {
		alert("Please enter your third friend's name. \r\n If you don't know this person, please don't use their email address.\r\n (we do not keep their - or your - information)");
	self.document.forms[0].name3.focus();
       return (false);
	   }

	if (txt4 ==''&&txt5 ==''&&txt6 =='') {
	alert("Please enter at least one friend's email address. \r\n\r\n (we do not keep their - or your - information)");
	self.document.forms[0].email1.focus();
       return (false);
	   } 
txt1=self.document.forms[0].name.value;
	if (txt1 =='') 
	{
		alert("Please enter your name, so your friends know who you are.");
		self.document.forms[0].name.focus();
     	return (false);
	 }
		}
	
	txt=self.document.forms[0].email1.value;						
 if (txt !='') {
	var badchars="<> ;,'!#$%^&*()+=/\\?";
	for (var i=0; i < txt.length; i++) {
		temp = "" +txt.substring(i, i+1);
		if (badchars.indexOf(temp) != -1) {
			alert("Your e-mail address contains illegal characters.\n\n\tPlease try again.");
			self.document.forms[0].email1.focus();
        	return (false);
		}
	}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Your email address needs to contain an '@' sign.");

		self.document.forms[0].email1.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("Your e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].email1.focus();
        return (false);
	}
	if ((arr[1].charAt(0) == '.') || (arr[1].charAt(arr[1].length-1) == '.')) {
		alert("Sorry your email address needs to be in a bonafide email format, with at least one  period.");
		self.document.forms[0].email1.focus();
        return (false);
	}	
	if ((arr[0].charAt(0) == '.') || (arr[0].charAt(arr[0].length-1) == '.')) {
		alert("Your e-mail address is incomplete (i.e. no \"suffix\" after the dot).\n\n\tPlease try again.");
		self.document.forms[0].email1.focus();
        return (false);
	}					
	if ((arr[1].indexOf('.') > arr[1].length-3) || (arr[1].indexOf('.') == -1)) {
		alert("Your e-mail address must contain an internet domain (i.e. \"yourwebaddress.com\").\n\n\tPlease try again.");
		self.document.forms[0].email1.focus();
        return (false);
	}
	if (txt.indexOf("..") > 0) {
		alert("You have entered an e-mail address containing two (2) dots in a row.\n\n\tPlease try again.");
		self.document.forms[0].email1.focus();
        return (false);
	}
	var tld;
	tld = arr[1].substring(arr[1].lastIndexOf('.'));
	
	if ((tld.length != 3) && (tld != '.com') && (tld != '.edu') && (tld != '.gov') && (tld != '.int') && (tld != '.mil') && (tld != '.org') && (tld != '.net') && (tld != '.info') && (tld != '.biz') && (tld != '.coop') && (tld != '.aero') && (tld !='.arpa') && (tld != '.museum') && (tld != '.name') && (tld != '.pro') && (tld != '.nato') && (tld != '.nom') && (tld != '.firm') && (tld != '.store') && (tld != '.web') && (tld != '.COM') && (tld != '.EDU') && (tld != '.GOV') && (tld != '.INT') && (tld != '.MIL') && (tld != '.ORG') && (tld != '.NET') && (tld != '.INFO') && (tld != '.BIZ') && (tld != '.COOP') && (tld != '.AERO') && (tld !='.ARPA') && (tld != '.MUSEUM') && (tld != '.NAME') && (tld != '.PRO') && (tld != '.NATO') && (tld != '.NOM') && (tld != '.FIRM') && (tld != '.STORE') && (tld != '.WEB')) {
		alert("You have entered an incorrect domain or country code.\n\n\tPlease try again.");
		self.document.forms[0].email1.focus();
        return (false);
	}
 }
 
 txt=self.document.forms[0].email2.value;						
 if (txt !='') {
	var badchars="<> ;,'!#$%^&*()+=/\\?";
	for (var i=0; i < txt.length; i++) {
		temp = "" +txt.substring(i, i+1);
		if (badchars.indexOf(temp) != -1) {
			alert("Your e-mail address contains illegal characters.\n\n\tPlease try again.");
			self.document.forms[0].email2.focus();
        	return (false);
		}
	}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Each email address needs to contain an '@' sign.");

		self.document.forms[0].email2.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("The e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].email2.focus();
        return (false);
	}
	if ((arr[1].charAt(0) == '.') || (arr[1].charAt(arr[1].length-1) == '.')) {
		alert("Sorry your email address needs to be in a bonafide email format, with at least one  period.");
		self.document.forms[0].email2.focus();
        return (false);
	}	
	if ((arr[0].charAt(0) == '.') || (arr[0].charAt(arr[0].length-1) == '.')) {
		alert("The e-mail address is incomplete (i.e. no \"suffix\" after the dot).\n\n\tPlease try again.");
		self.document.forms[0].email2.focus();
        return (false);
	}					
	if ((arr[1].indexOf('.') > arr[1].length-3) || (arr[1].indexOf('.') == -1)) {
		alert("The e-mail address must contain an internet domain (i.e. \"yourwebaddress.com\").\n\n\tPlease try again.");
		self.document.forms[0].email2.focus();
        return (false);
	}
	if (txt.indexOf("..") > 0) {
		alert("You have entered an e-mail address containing two (2) dots in a row.\n\n\tPlease try again.");
		self.document.forms[0].email2.focus();
        return (false);
	}
	var tld;
	tld = arr[1].substring(arr[1].lastIndexOf('.'));
	
	if ((tld.length != 3) && (tld != '.com') && (tld != '.edu') && (tld != '.gov') && (tld != '.int') && (tld != '.mil') && (tld != '.org') && (tld != '.net') && (tld != '.info') && (tld != '.biz') && (tld != '.coop') && (tld != '.aero') && (tld !='.arpa') && (tld != '.museum') && (tld != '.name') && (tld != '.pro') && (tld != '.nato') && (tld != '.nom') && (tld != '.firm') && (tld != '.store') && (tld != '.web') && (tld != '.COM') && (tld != '.EDU') && (tld != '.GOV') && (tld != '.INT') && (tld != '.MIL') && (tld != '.ORG') && (tld != '.NET') && (tld != '.INFO') && (tld != '.BIZ') && (tld != '.COOP') && (tld != '.AERO') && (tld !='.ARPA') && (tld != '.MUSEUM') && (tld != '.NAME') && (tld != '.PRO') && (tld != '.NATO') && (tld != '.NOM') && (tld != '.FIRM') && (tld != '.STORE') && (tld != '.WEB')) {
		alert("You have entered an incorrect domain or country code.\n\n\tPlease try again.");
		self.document.forms[0].email2.focus();
        return (false);
	}
 }
 
  txt=self.document.forms[0].email3.value;						
 if (txt !='') {
	var badchars="<> ;,'!#$%^&*()+=/\\?";
	for (var i=0; i < txt.length; i++) {
		temp = "" +txt.substring(i, i+1);
		if (badchars.indexOf(temp) != -1) {
			alert("Your e-mail address contains illegal characters.\n\n\tPlease try again.");
			self.document.forms[0].email3.focus();
        	return (false);
		}
	}
	var arr;
	arr = txt.split('@');
		
	if (arr.length != 2) {
		alert("Each email address needs to contain an '@' sign.");

		self.document.forms[0].email3.focus();
        return (false);
	}
	if ((arr[0] == "") || (arr[1] == "")) {
		alert("The e-mail address is incomplete.\n\n\tPlease try again.");
		self.document.forms[0].email3.focus();
        return (false);
	}
	if ((arr[1].charAt(0) == '.') || (arr[1].charAt(arr[1].length-1) == '.')) {
		alert("Sorry your email address needs to be in a bonafide email format, with at least one  period.");
		self.document.forms[0].email3.focus();
        return (false);
	}	
	if ((arr[0].charAt(0) == '.') || (arr[0].charAt(arr[0].length-1) == '.')) {
		alert("The e-mail address is incomplete (i.e. no \"suffix\" after the dot).\n\n\tPlease try again.");
		self.document.forms[0].email3.focus();
        return (false);
	}					
	if ((arr[1].indexOf('.') > arr[1].length-3) || (arr[1].indexOf('.') == -1)) {
		alert("The e-mail address must contain an internet domain (i.e. \"yourwebaddress.com\").\n\n\tPlease try again.");
		self.document.forms[0].email3.focus();
        return (false);
	}
	if (txt.indexOf("..") > 0) {
		alert("You have entered an e-mail address containing two (2) dots in a row.\n\n\tPlease try again.");
		self.document.forms[0].email3.focus();
        return (false);
	}
	var tld;
	tld = arr[1].substring(arr[1].lastIndexOf('.'));
	
	if ((tld.length != 3) && (tld != '.com') && (tld != '.edu') && (tld != '.gov') && (tld != '.int') && (tld != '.mil') && (tld != '.org') && (tld != '.net') && (tld != '.info') && (tld != '.biz') && (tld != '.coop') && (tld != '.aero') && (tld !='.arpa') && (tld != '.museum') && (tld != '.name') && (tld != '.pro') && (tld != '.nato') && (tld != '.nom') && (tld != '.firm') && (tld != '.store') && (tld != '.web') && (tld != '.COM') && (tld != '.EDU') && (tld != '.GOV') && (tld != '.INT') && (tld != '.MIL') && (tld != '.ORG') && (tld != '.NET') && (tld != '.INFO') && (tld != '.BIZ') && (tld != '.COOP') && (tld != '.AERO') && (tld !='.ARPA') && (tld != '.MUSEUM') && (tld != '.NAME') && (tld != '.PRO') && (tld != '.NATO') && (tld != '.NOM') && (tld != '.FIRM') && (tld != '.STORE') && (tld != '.WEB')) {
		alert("You have entered an incorrect domain or country code.\n\n\tPlease try again.");
		self.document.forms[0].email3.focus();
        return (false);
	}
 }
}

//-->