function validate()
{
	if(form1.yourname.value!="")
	{
		if(form1.practicename.value!="")
		{
			if(form1.practiceid.value!="")
			{
				if(form1.email.value!="")
				{
					em = form1.email.value;
					if(em.indexOf("@") < 0 )
					{
						alert('You have not entered a valid email address');
						return false;
					}
					if(form1.tel.value!="")
					{
						return true;
					}
				}
			}
		}
	}
	alert('Please fill out all contact details before sending this form');	
	return false;
}


function domainwantedChanged()
{
	dw = form1.domainwanted.value;
	if(dw=="yes")
		form1.domain.value=" --- type your preferred domain name here ---";
	else
		form1.domain.value="";
}

function contactChanged()
{
	cw = form1.contactwanted.value;
	if(cw=="email")
	{
		form1.contacttime.value="";
		form1.contactday.value="";
	}
	else
	{
		form1.contacttime.value="Any time";
		form1.contactday.value="Any day";
	}
}
function timeChanged()
{
	cw = form1.contactwanted.value;
	if(cw=="email")
	{
		ct = form1.contacttime.value;
		cd = form1.contactday.value;
		if((ct!="")||(cd!=""))
		{
			form1.contactwanted.value="call";
			if(ct=="")
				form1.contacttime.value="Any time";
			if(cd=="")
				form1.contactday.value="Any day";
		}
	}
}

