//mailto
function noSpam(user,domain) { 
locationstring = "mailto:" + user + "@" + domain; 
window.location = locationstring; 
}

//form validation--------
function validateContactForm() {
var formID = document.getElementById('contactForm');

// check name
with(formID) {
 if (name.value == "") {
	alert ("Please Enter Your Name.");
	name.focus();
	return false;
 }
 // check email address
 if ((email.value==null)||(email.value=="")){
	alert("Please Enter your Email Address.")
	email.focus();
	return false;
 }
 if (message.value == "") {
	alert ("Please enter a message for the contact form.");
	message.focus();
	return false;
 }
 var spamCheck = spam.value.toLowerCase();
 if (spamCheck != "blue") {
	alert ("Please answer the spam question correctly.");
	spam.focus();
	return false;
 }
}
document.getElementById('contactForm').submit();
return true;
}


//generic popup -----------------
function popup(string) { 
window.open(string,'mywindow','width=650,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no'); 
}

