function spawnWindow(url, windowname, attributes) {
var urlString = url;
 if (urlString.indexOf(".pdf")!=-1){
    remote = window.open(url,windowname, attributes);
    remote.location = url;
  } 
  else {
    remote = window.open(url,windowname, attributes);
    }
  remote.focus();
  if (remote.opener == null) {
    remote.opener = window;
  }
}

function spawnReview1Window(url) {
  help = spawnWindow(
    url,
    "review_window",
    "width=415,height=675,screenX=10,screenY=10,top=10,left=10,resizable=yes,toolbar=no,scrollbars=yes");
}

function spawnArticleWindow(url) {
  help = spawnWindow(
    url,
    "article_window",
    "width=420,height=900,screenX=10,screenY=10,top=10,left=10,resizable=yes,toolbar=no,scrollbars=yes");
}

function spawnArticle2Window(url) {
  help = spawnWindow(
    url,
    "article_window",
    "width=577,height=900,screenX=10,screenY=10,top=10,left=10,resizable=yes,toolbar=no,scrollbars=yes");
}


