function validateContactUs() {
	if(document.theform.contactname.value.length < 1){
		alert('Please enter your name.');
		document.theform.contactname.focus();
		return false;
	}
	else if(document.theform.contactemail.value.length < 6) {
		alert('Please enter your email address.');
		document.theform.contactemail.focus();
		return false;
	}
	return true;
}
function openWindow(url,w,h) {
	thewindow = window.open(url, "thenewwindow", "left=300,top=200,width="+w+",height="+h); 
	thewindow.focus();
}

function changeContactType() {
	//show appointment fields
	if(document.theform.subject.value=="Make an Appointment") {
		for(i=1;i<14;i++) {
			document.getElementById('approw'+i).style.display='';
		}
	} else { //hide appointment fields
		for(i=1;i<14;i++) {
			document.getElementById('approw'+i).style.display='none';
		}		
	}
	
}