function contact(a,b,c,d,e){
  while (d.indexOf("&") > 0){
    d = d.replace('&', 'and');
  }
  if (e != "") {
    eval("window.location.href='mailto:" + d + " " + e + " <" + a + "@" + b + "." + c + ">'");
  }
  else {
    eval("window.location.href='mailto:" + d + " <" + a + "@" + b + "." + c + ">'");
  }
}

function contact_user(a,b,c){
  eval("window.location.href='mailto:" + a + "@" + b + "." + c + "'");
}

function contact__user(a,b){
  eval("window.location.href='mailto:" + a + "@" + b + "'");
}

function noenter() {
  return !(window.event && window.event.keyCode == 13);
}

function OpenMapWindow(mapURL,winName,features) {
  win = window.open(mapURL,winName,features);
  win.window.focus();
}

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