function validate(whichform) {
	var email=document.forms[whichform].email.value;
	var theform = document.forms[whichform];
	var x = email.search('@');
	if (whichform == 'one') {
		if (email =='' || theform.name.value=='' || theform.petname.value=='' || theform.breed.value=='' || theform.address.value=='' || theform.state.value=='' || theform.tel.value=='' || theform.visit.value=='' || theform.date.value=='' || theform.time.value=='') {
			alert('Some required information is missing from the form.1');
			document.forms[whichform].email.focus();
		}else if (x <= 0){
			 alert('Please enter a valid email address.');
			 document.forms[whichform].email.focus();
		}else{
			document.forms[whichform].submit();
		}
	} else if (whichform == 'two') {
		if (email =='' || theform.name.value=='' || theform.petname.value=='' || theform.breed.value=='' || theform.address.value=='' || theform.state.value=='' || theform.tel.value=='' || theform.med1.value=='' || theform.strength1.value=='' || theform.quantity1.value=='') {
			alert('Some required information is missing from the form.2');
			document.forms[whichform].email.focus();
		}else if (x <= 0){
			 	alert('Please enter a valid email address.');
			 	document.forms[whichform].email.focus();
		}else{
			document.forms[whichform].submit();
		}
	}
}