<!--
	function ss_validation(theForm) 
	{
	
		// email first_name last_name address_one address_two city state zip country phone fax information referral referral_other
		
		var goodTEXT = /^([a-zA-Z\.\-\s]{2,})+$/
		var goodNUM = /^([0-9])+$/
		var goodADDRESS = /^([a-zA-Z0-9\.\,\#\-\s]{4,})+$/
		var goodZIP = /^([0-9]{5})+$/
		var goodEMAIL = /^([a-zA-Z0-9\_\.\-])+@(([a-zA-Z0-9\-])+.)+([a-zA-Z0-9]{2,})+$/
		var goodPHONE = /^([01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4})+$/
		
		if (!goodEMAIL.test(theForm.email.value))
		{
			alert("Please enter a valid \"Email.\"");
			theForm.email.focus();
			return (false);
		}		
		
		/*
		if (!goodTEXT.test(theForm.first_name.value))
		{
			alert("Please enter a valid \"First Name.\"");
			theForm.first_name.focus();
			return (false);
		}
		*/
		
		if (!goodTEXT.test(theForm.last_name.value))
		{
			alert("Please enter a valid \"Last Name.\"");
			theForm.last_name.focus();
			return (false);
		}		
		
		/*
		if (!goodADDRESS.test(theForm.address_one.value))
		{
			alert("Please enter a valid \"Address.\"");
			theForm.address_one.focus();
			return (false);
		}		
		
		if (!goodADDRESS.test(theForm.address_two.value))
		{
			alert("Please enter a valid \"Address.\"");
			theForm.address_two.focus();
			return (false);
		}		
		
		if (!goodTEXT.test(theForm.city.value))
		{
			alert("Please enter a valid \"City.\"");
			theForm.city.focus();
			return (false);
		}		
		
		if (theForm.state.value == "")
		{
			alert("Please enter a valid \"State.\"");
			theForm.state.focus();
			return (false);
		}		
		
		if (!goodNUM.test(theForm.zip.value))
		{
			alert("Please enter a valid \"Zip.\"");
			theForm.zip.focus();
			return (false);
		}		
		
		if (theForm.country.value == "")
		{
			alert("Please enter a valid \"Country.\"");
			theForm.country.focus();
			return (false);
		}		
		
		if (theForm.phone.value == "")
		{
			alert("Please enter a valid \"Phone.\"");
			theForm.phone.focus();
			return (false);
		}		
		
		if (theForm.fax.value == "")
		{
			alert("Please enter a valid \"Fax.\"");
			theForm.fax.focus();
			return (false);
		}	
		*/	
		
		if (theForm.information.value == "")
		{
			alert("Please enter a valid \"Information.\"");
			theForm.information.focus();
			return (false);
		}		
		
		if (theForm.referral.value == "")
		{
			alert("Please enter a valid \"Referral.\"");
			theForm.referral.focus();
			return (false);
		}		
		
		if (theForm.referral.value == "Other" && theForm.referral_other.value == "")
		{
			alert("Please enter a valid \"Referral.\"");
			theForm.referral_other.focus();
			return (false);
		}		
		
		return (true);
				
	}
	
	function cd_validation(theForm) 
	{
	
		// email first_name last_name address_one address_two city state zip country phone fax information referral referral_other
		
		var goodTEXT = /^([a-zA-Z\.\-\s]{2,})+$/
		var goodNUM = /^([0-9])+$/
		var goodADDRESS = /^([a-zA-Z0-9\.\,\#\-\s]{4,})+$/
		var goodZIP = /^([0-9]{5})+$/
		var goodEMAIL = /^([a-zA-Z0-9\_\.\-])+@(([a-zA-Z0-9\-])+.)+([a-zA-Z0-9]{2,})+$/
		var goodPHONE = /^([01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4})+$/
		
		if (!goodEMAIL.test(theForm.email.value))
		{
			alert("Please enter a valid \"Email.\"");
			theForm.email.focus();
			return (false);
		}		
		
		/*
		if (!goodTEXT.test(theForm.first_name.value))
		{
			alert("Please enter a valid \"First Name.\"");
			theForm.first_name.focus();
			return (false);
		}
		*/
		
		if (!goodTEXT.test(theForm.last_name.value))
		{
			alert("Please enter a valid \"Last Name.\"");
			theForm.last_name.focus();
			return (false);
		}		
		
		if (!goodTEXT.test(theForm.organization.value))
		{
			alert("Please enter a valid \"Company or Organization.\"");
			theForm.organization.focus();
			return (false);
		}		
		
		/*
		if (!goodADDRESS.test(theForm.address_one.value))
		{
			alert("Please enter a valid \"Address.\"");
			theForm.address_one.focus();
			return (false);
		}		
		
		if (!goodADDRESS.test(theForm.address_two.value))
		{
			alert("Please enter a valid \"Address.\"");
			theForm.address_two.focus();
			return (false);
		}		
		
		if (!goodTEXT.test(theForm.city.value))
		{
			alert("Please enter a valid \"City.\"");
			theForm.city.focus();
			return (false);
		}		
		
		if (theForm.state.value == "")
		{
			alert("Please enter a valid \"State.\"");
			theForm.state.focus();
			return (false);
		}		
		
		if (!goodNUM.test(theForm.zip.value))
		{
			alert("Please enter a valid \"Zip.\"");
			theForm.zip.focus();
			return (false);
		}		
		
		if (theForm.country.value == "")
		{
			alert("Please enter a valid \"Country.\"");
			theForm.country.focus();
			return (false);
		}		
		
		if (theForm.phone.value == "")
		{
			alert("Please enter a valid \"Phone.\"");
			theForm.phone.focus();
			return (false);
		}		
		
		if (theForm.fax.value == "")
		{
			alert("Please enter a valid \"Fax.\"");
			theForm.fax.focus();
			return (false);
		}	
		*/	
				
		return (true);
				
	}

	function toggle_visibility(id,ref) {
		var e = document.getElementById(id);
		if(document.getElementById(ref).value == 'Other') 
		{
			if(e.style.display == 'none')
				e.style.display = 'block';
		} else {
				e.style.display = 'none';
		}
	}
	
//-->

