function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function isEmail(string) {
	if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		return true;
	else
		return false;
}

function isEmpty(aTextField) {
	if ( (aTextField.value.length==0 ) || (aTextField.value==null) ) 
		return true;
	else
		return false;
}

function checkcontactform() {
	var msg="";
	if ( isEmpty(document.contactform.firstname) )					msg += "- Please enter your first name\n";
	if ( isEmpty(document.contactform.lastname) )						msg += "- Please enter your last name\n";
	if ( isEmpty(document.contactform.email) )							msg += "- Please enter your Email\n";
	else if ( !isEmail(document.contactform.email.value) )	msg += "- Invalid Email address\n";
	if ( isEmpty(document.contactform.comments) )						msg += "- Please fill out the comments\n";

	if ( msg.length > 1 ) {
		alert ( msg );
		return false;
	}
	return true;
}