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

<!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>

//form validation--------
function validateContactForm() {
var formID = document.getElementById('contactForm');
// check name
with(formID) {
 if (name.value == "") {
	alert ("Please enter a 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 (echeck(email.value)==false){
	email.value="";
	email.focus();
	return false;
 }
// if (subject.value == "") {
//	alert ("Please enter a subject for the contact form.");
//	subject.focus();
//	return false;
// }
 if (message.value == "") {
	alert ("Please enter a message for the contact form.");
	message.focus();
	return false;
 }
}
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'); 
}

