var hDomainList = new Array('10minutemail.com',
'2prong.com', '4warding.com', '6url.com', 'afrobacon.com', 'antispam24.de', 'bugmenot.com', 'bumpymail.com',
'bupkiss.net', 'centermail.com', 'centermail.net', 'choicemail1.com', 'deadspam.com', 'despam.it', 'despammed.com',
'discardmail.com', 'discardmail.de', 'disposeamail.com', 'dodgeit.com', 'dodgit.com', 'dontreg.com', 'dontsendmespam.de',
'dumpandjunk.com', 'dumpmail.de', 'e4ward.com', 'emaildienst.de', 'emailias.com', 'emailto.de', 'emailxfer.com',
'emz.net', 'enterto.com', 'fificorp.com', 'fificorp.net', 'front14.org', 'getonemail.com', 'ghosttexter.de',
'gishpuppy.com', 'golfilla.info', 'gorillaswithdirtyarmpits.com', 'greensloth.com', 'guerrillamail.com', 'guerrillamail.net',
'h8s.org', 'haltospam.com', 'hatespam.org', 'hidemail.de', 'iheartspam.org', 'instig8.com', 'ipoo.org', 'jetable.com',
'jetable.net', 'jetable.org', 'kasmail.com', 'killmail.com', 'killmail.net', 'klassmaster.net', 'link2mail.net',
'loftmail.com', 'lortemail.dk', 'mail2rss.org', 'mail333.com', 'mailblocks.com', 'maileater.com', 'mailexpire.com',
'mailfreeonline.com', 'mailmoat.com', 'mailnull.com', 'mailshell.com', 'mailsiphon.com', 'mailzilla.com', 'meinspamschutz.de',
'messagebeamer.de', 'mintemail.com', 'myspamless.com', 'mytrashmail.com', 'neomailbox.com', 'nervmich.net', 'nervtmich.net',
'netmails.com', 'netmails.net', 'netzidiot.de', 'nobulk.com', 'noclickemail.com', 'nospamfor.us', 'nurfuerspam.de',
'oneoffemail.com', 'oopi.org', 'outlawspam.com', 'pancakemail.com', 'poofy.org', 'pookmail.com', 'privacy.net',
'punkass.com', 'put2.net', 'regbypass.com', 'rejectmail.com', 'safersignup.de', 'senseless-entertainment.com', 'shortmail.net',
'sibmail.com', 'slaskpost.se', 'sneakemail.com', 'sofort-mail.de', 'spam.la', 'spamavert.com', 'spambob.com',
'spambob.net', 'spambob.org', 'spambox.us', 'spambox.info', 'spamcon.org', 'spamday.com', 'spamex.com',
'spamfree24.com', 'spamfree24.net', 'spamfree24.org', 'spamgourmet.com', 'spamhole.com', 'spamify.com', 'spaminator.de',
'spamslicer.com', 'spaml.com', 'spammotel.com', 'spamoff.de', 'spamtrail.com', 'tailflames.com', 'tempemail.net',
'tempinbox.com', 'temporarily.de', 'temporaryforward.com', 'temporaryforwarding.com', 'temporaryinbox.com', 'throwaway.de',
'trashmail.com', 'trashmail.net', 'trashmail.org', 'trashmail.de', 'trash-mail.de', 'twinmail.de', 'ubuntwo.com', 'venompen.com',
'wegwerfadresse.de', 'wh4f.org', 'willselfdestruct.com', 'woodyland.org', 'wuzup.net', 'wuzupmail.net', 'wwwnew.eu',
'mx0.wwwnew.eu', 'bodhi.lawlita.com', 'xemaps.com', 'xents.com', 'xmaily.com', 'yep.it', 'yopmail.com',
'zoemail.org', 'fakeinformation.com', 'fastacura.com', 'fastchevy.com', 'fastchrysler.com', 'fastkawasaki.com', 'fastmazda.com',
'fastmitsubishi.com', 'fastnissan.com', 'fastsubaru.com', 'fastsuzuki.com', 'fasttoyota.com', 'fastyamaha.com', 'fuckingduh.com',
'fux0ringduh.com', 'klassmaster.com', 'mailin8r.com', 'mailinator.com', 'mailinator.net', 'mailinater.com', 'mailinator2.com',
'sogetthis.com', '675hosting.com', '675hosting.net', '675hosting.org', '75hosting.com', '75hosting.net', '75hosting.org',
'ajaxapp.net', 'amiri.net', 'amiriindustries.com', 'emailmiser.com', 'etranquil.com', 'etranquil.net', 'etranquil.org',
'gowikibooks.com', 'gowikicampus.com', 'gowikicars.com', 'gowikifilms.com', 'gowikigames.com', 'gowikimusic.com',
'gowikinetwork.com', 'gowikitravel.com', 'gowikitv.com', 'iwi.net', 'myspaceinc.com', 'myspaceinc.net', 'myspaceinc.org',
'myspacepimpedup.com', 'ourklips.com', 'pimpedupmyspace.com', 'rklips.com', 'turual.com', 'upliftnow.com', 'uplipht.com',
'viditag.com', 'viewcastmedia.com', 'viewcastmedia.net', 'viewcastmedia.org', 'wetrainbayarea.com', 'wetrainbayarea.org',
'xagloo.com' );

function QualifyEmailAddress( sInput )
{
	sErr = '';

	if (sInput.indexOf("@") > 0)
	{
		var domain = sInput.substr(sInput.indexOf("@") + 1,500);

		for (sK in hDomainList)
		{
			if (hDomainList[sK] == domain)
			{
				sErr += "In accordance with our Terms and Conditions, we do not accept so-called disposable e-mail addresses for registration with our site. We offer a full explanation for our decision on our Frequently Asked Questions page. We never spam our members and your privacy is always our primary concern. We encourage you to join our site with your real e-mail address. Thanks!\n";
			}
		}
	}

	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	if (sInput.length > 32)
	{
		sErr += "Your email must be 32 characters or less.\n";
	}
	else if (filter.test(sInput) == false)
	{
		sErr += "Invalid email address.  Please enter your own personal valid e-mail address in the form of user@domain.com to continue.\n";
	}
	else if (sInput.indexOf("@domain.com") > -1)
	{
		sErr += "You need to enter your own personal email address.\n";
	}
// The following lines are uncommented if we have sustained deliverability issues to Hotmail or Yahoo.
/*
	else if (sInput.indexOf("hotmail.com") > -1 || sInput.indexOf("msn.com") > -1)
	{
		sErr += "Dear visitor, we regret to inform you that HOTMAIL/MSN is currently having trouble accepting emails from our website which means you may not be able to receive the required email confirmation to access this site. We will try to send you the email anyway but if it doesn't work, please use a different email address such as a free one from Yahoo.com or one provided by your ISP like AOL, Earthlink, etc. Thank you, and sorry for the temporary inconvenience.\n";
	}
	else if (sInput.indexOf("@yahoo.com") > -1)
	{
		sErr += "Dear visitor, we regret to inform you that YAHOO is currently having trouble accepting emails from our website which means you may not be able to receive the required email confirmation to access this site. We will try to send you the email anyway but if it doesn't work, please use a different email address such as a free one from Hotmail.com or one provided by your ISP like AOL, Earthlink, etc. Thank you, and sorry for the temporary inconvenience.\n";
	}
*/
	else if (sInput.substring(0,4) == "www.")
	{
		if (confirm("Are you sure the name " + sInput + " is correct? It might be just " + sInput.substring(4,999) + ". You should probably remove the WWW before proceeding, so please hit Cancel and re-enter the correct email.") == true)
			return true;

	}
	else if (sInput.substr(sInput.length - 3, 3) == ".co")
	{
		if (confirm("Are you sure the email should end in .co? If you meant .com, hit 'cancel' and fix before submitting.") == true)
			return true;

	}

	if( sErr )
	{
		return sErr;
	}
	else
	{
		return 0;
	}
}

