function openJobWindow(url)  {
win = window.open(url, 'Job','toolbar=no,location=no,resizable=yes,scrollbars=yes,width=400,height=300');
win.focus();
}

function openCandidateWindow(url)  {
win = window.open(url, 'Candidate','menubar=yes,statusbar=yes,toolbar=no,location=yes,resizable=yes,scrollbars=yes');
win.focus();
}


function openHelpWindow(url)  {
win = window.open(url, "Help",'toolbar=no,location=no,resizable=yes,scrollbars=yes,width=450,height=600');
win.focus();
}


function submitNextMatch(f) {
// foreach checked checkbox, add a hidden variable in the new form
   f.target = 'content';
   f.action.value = 'nextmatch';
   f.submit();
}

function confirmSubmit(msg, url) {
   if (confirm(msg)) {
      this.location = url;
   }
}

function loadFrames(page1, page2) {
   framecode = "<frameset rows='10%,*'>"
   + "<frame name=controls src='" + page1 + "'>"
   + "<frame name=candidate src='" + page2 + "'>"
   + "</frameset>";
   
   page = window.open("");
   page.document.open();
   page.document.write(framecode);
   page.document.close();
}

function printpage(framename) {
   //framename.focus();   // NOTE: scuttlebutt on deja says IE5 must first focus
   framename.print();
}

function annotateCandidate(source, branch, id) {
   var msg = 'annotate ' + source + '/' + branch + '/' + id;
   alert(msg);
}
function seeOrig(source, branch, id) {
   var msg = 'original: ' + source + '/' + branch + '/' + id;
   alert(msg);
}
