var win = null;

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 contactpagenotfound(a,b,c,d,e){
  eval("window.location.href='mailto:"+ a + "@" + b + "." + c + "?subject=Page Not Found Notification - " + d + "'");
}

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

function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}


