function phoneORemail(){

window.okTrigger = false;		//this toggles whether the form submits or not
dFeedback = 'Please fill in either a phone number or an email address,\n so we can respond to your email.';
								//message to the user if no phone and no email has been entered
for (i=0;i<document.forms.length; i++)					//loops through all forms on a page
	for (j=0;j<document.forms[i].elements.length; j++){	//loops through all elements in a form
		dElem = document.forms[i].elements[j];			//the current element being examined
		if ((dElem.name == 'phone' || dElem.name =='email') && dElem.value != '')	
										//is the element named phone OR email AND is it filled out?
			window.okTrigger = true;	//if so, we can allow the form to submit
	}
if (window.okTrigger==false)			//if not, display our message to the user
	alert(dFeedback);
}