<!--

function popupWindow(path,name,caption,w,h) {
  var win=null;
  myname = 'centerwindow';
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;
  settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes';
  win=window.open("",myname,settings);
  var popup=win.document;
  popup.open();
  popup.write('<html><body text=#000000 link=#339900 bgColor=#ffffff\n');
  popup.write(' topMargin=0 leftMargin=0 marginheight=0 marginwidth=0>\n');
  popup.write('<center>&nbsp;<p><TABLE cellSpacing=0 cellPadding=2 width=100% border=0>\n');
  popup.write('  <TR>\n');
  popup.write('    <TD vAlign=top width=100% align=center>\n');
  popup.write('      <img src="' + path + '/' + name + '">');
  popup.write('      </TD>\n');
  popup.write('    </TR>\n');
  popup.write('  <TR>\n');
  popup.write('    <TD vAlign=top width=100% align=center>\n');
  popup.write('      <font face="Verdana,Arial" size=2>' + caption + '</font>');
  popup.write('      </TD>\n');
  popup.write('    </TR>\n');
  popup.write('  </TABLE>\n');
  popup.write('</center></body></html>\n');
  popup.close();
  if(window.focus){win.focus();}
}

function verifyPassword() {
  var pass = document.labupdate.labPassword.value;
  var pass2 = document.labupdate.labPassword2.value;
  if ((pass == '') || (pass2 == '')) {
    alert('You can not have a blank password.  Please enter a password to continue.');
    return false;
  }
  if (pass != pass2) {
    alert('Your passwords do not match.  Please retype them and try again.');
    return false;
  }
  if ((pass.length < 4) || (pass.length > 12)) {
    alert('Your password must be between 4 and 12 characters. Please retype them and try again.');
    return false;
  }
  return true;
}

//-->