// Copy contents of field to clipboard
function copyToCB(oField) {
 oField.focus();
 oField.select();
 if (document.all){
  theRange=oField.createTextRange();
  theRange.execCommand("Copy");
 }
}