window.onload = newWinLinks;

function newWinLinks() {
  for (var i=0; i<document.links.length; i++) {
    if (document.links[i].className == "newWin") {
      document.links[i].onclick = newWindow;
    }
    if (document.links[i].className == "newWin2") {
      document.links[i].onclick = newWindow2;
    }
    if (document.links[i].className == "newWin3") {
      document.links[i].onclick = newWindow3;
    }
  }
}

function newWindow() {
   var restWindow = window.open(this.href, "restWin","width=400,height=322");
   restWindow.focus();
   return false;
}

function newWindow2() {
   var restWindow = window.open(this.href, "restWin2","scrollbars=yes,width=530,height=600");
   restWindow.focus();
   return false;
}

function newWindow3() {
   var restWindow = window.open(this.href, "restWin3","scrollbars=yes,width=1050,height=615");
   restWindow.focus();
   return false;
}