function doPopups() {
  if (!document.getElementsByTagName) return false;
  var links = document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("newpage")) {
      links[i].onclick = function() {
        window.open(this.href);
        return false;
      }
    }
  }
}
window.onload=function(){
doPopups();
}
function formValidation(form){
if(notEmpty(form.name) && notEmpty(form.email) && notEmpty(form.phone)){
return true;
}
return false;
}
function notEmpty(elem){
var str = elem.value;
if(str.length == 0){
alert("You must fill in all required fields (*)");
return false;
} else {
return true;
}
}

