// Add target="_blank" to anchors with external link
function newTarget(obj) {
  obj.setAttribute('target', '_blank');
}

function validateEmail(input) {
  return input.value.match(/^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-z]{2,6}$/);
}

function tellafriend(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage + ';template=tellafriend', myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}