function textCounter(field, maxlimit) {
  if (field.value.length > maxlimit)
  field.value = field.value.substring(0, maxlimit);
}

function validateForm() {

//if (document.contactform.business.value == "") {
//alert('Please fill out your business name.');
//return false;
//}

if (document.contactform.name.value == "") {
alert('Please fill out your contact name.');
return false;
}

//if (document.contactform.city.value == "") {
//alert('Please fill out the city where you live in.');
//return false;
//}

//if (document.contactform.country.value == "") {
//alert('Please fill out the country where you live in.');
//return false;
//}

if ((document.contactform.email.value == "") || 
(document.contactform.email.value.indexOf('@') == -1) || 
(document.contactform.email.value.indexOf('.') == -1)) {
alert('Please fill out an correct email address.');
return false;
}

if (document.contactform.security_code.value == "") {
	alert('Please copy the security code in the entry field.');
return false;
}

//if (document.contactform.phone.value == "") {
//alert('Please fill out the phone number we can reach you at.');
//return false;
//}

return true;
}//validateForm