// JavaScript Document
			function CheckEmail (strng) 
			{
				var error="";

				if (strng == "") {
					error = "You didn't enter an E-mail address.";
				}

			    var emailFilter=/^.+@.+\..{2,3}$/;
			    if (!(emailFilter.test(strng))) { 
					error = "Please enter a valid E-mail address.";
				}
				else {
					//test email for illegal characters
					var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
					if (strng.match(illegalChars)) {
    	    			error = "The E-Mail address contains illegal characters.";
    	   			}
    			}
				return error;    
			}
		
			function FormValidate()
			{
				var error;

				if (document.registration.name.value == "")
				{
					alert("You must enter your name before continuing.");
					document.registration.name.focus();
					document.registration.name.select();
					return false;
				}
				if (document.registration.address.value == "")
				{
					alert("You must enter your address before continuing.");
					document.registration.address.focus();
					document.registration.address.select();
					return false;
				}
				if (document.registration.city.value == "")
				{
					alert("You must enter your city before continuing.");
					document.registration.city.focus();
					document.registration.city.select();
					return false;
				}
				if (document.registration.state.value == "")
				{
					alert("You must enter your state before continuing.");
					document.registration.state.focus();
					document.registration.state.select();
					return false;
				}
				if (document.registration.zip.value == "")
				{
					alert("You must enter your zip before continuing.");
					document.registration.zip.focus();
					document.registration.zip.select();
					return false;
				}
				if (document.registration.email.value == "")
				{
					alert("You must enter your email address before continuing.");
					document.registration.email.focus();
					document.registration.email.select();
					return false;
				}
	
				if (!document.registration.SELECTEDPriceRangeDesired1.checked && !document.registration.SELECTEDPriceRangeDesired2.checked && !document.registration.SELECTEDPriceRangeDesired3.checked && !document.registration.SELECTEDPriceRangeDesired4.checked && !document.registration.SELECTEDPriceRangeDesired5.checked)
				{
					alert("You must check atleast one price range before continuing.");
					return false;
				}	
				if (document.registration.thecode.value == "")
				{
					alert("You must enter the CODE before continuing.");
					document.registration.thecode.focus();
					document.registration.thecode.select();
					return false;
				}					
				
		

				return (true);
			}
