// include1.js



//---Popup Window---
//
// Usage:
// in <head>: <script type="text/javascript" src="include1.js"></script>
// in <a>: <a href="example.html" type="popup">Your text</a>

popup = null;
function thepopup(url) {
if (popup && !popup.closed) { popup.close() }
popup = window.open(url,"popup","width=730,height=600,menubar,scrollbars,resizable");
popup.focus();
return false;
}

function get_anchors() {
anchors = document.getElementsByTagName('a');
for (var i=0; i<anchors.length; i++) {
if (anchors[i].getAttribute('type') == 'popup') {
anchors[i].onclick = function(){ return thepopup(this.href) }
}
}
}
window.onload = get_anchors;


function gotools(form){

  i=form.tools.selectedIndex;
  opt=form.tools.options[i].value;

  form.reset();
  //window.focus();
  document.body.focus();

  //ret=alert(opt);
  if(opt=="mismatch"){
    window.open('tools/mismatch.html','rftools').focus();
    }

}
//--- Hide Email Addresses from Harvesters---
  function MakeEmail(em1, em2) {
    if (em1 && em2) {
      email=em1 + '@' + em2
      document.write('<a href=\"mailto:' + email +'\">' + email + '</a>');
    }
    else {
      document.write(' -- No email address supplied -- ');
    }
  }