<!-- hide script from older browsers
function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail Address")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail Address")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail Address")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail Address")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail Address")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail Address")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail Address")
		    return false
		 }

 		 return true					
	}


function validateForm(callingform)
{
	
	if(""==document.forms.callingform.email.value)
	{
	alert("Please enter your email address.");
	document.forms.callingform.email.focus(); //sends focus to field
	return false;
	}
	
	if(""==document.forms.callingform.email2.value)
	{
	alert("Please re-enter your email address.");
	document.forms.callingform.email2.focus(); //sends focus to field
	return false;
	}
	
	if(""==document.forms.callingform.name.value)
	{
	alert("Please enter your name.");
	document.forms.callingform.name.focus(); //sends focus to field
	return false;
	}
	
	if(""==document.forms.callingform.phone.value)
	{
	alert("Please enter your phone number.");
	document.forms.callingform.phone.focus(); //sends focus to field
	return false;
	}
	
	if(""==document.forms.callingform.phone2.value)
	{
	alert("Please enter your cell or local number.");
	document.forms.callingform.phone2.focus(); //sends focus to field
	return false;
	}
	
	if(""==document.forms.callingform.therapy_type.value)
	{
	alert("Please enter your requested therapy type.");
	document.forms.callingform.therapy_type.focus(); //sends focus to field
	return false;
	}
	
	if(""==document.forms.callingform.session_length.value)
	{
	alert("Please enter your requested session length.");
	document.forms.callingform.session_length.focus(); //sends focus to field
	return false;
	}
	
	if(""==document.forms.callingform.payment_type.value)
	{
	alert("Please enter your payment type information.");
	document.forms.callingform.payment_type.focus(); //sends focus to field
	return false;
	}
	
	
	
	/*
	var emailID=document.callingform.email
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
	*/

}
-->
