function fnClipboard(macAdrCpy) { document.getElementById('macinput').value = macAdrCpy; var copyText = document.getElementById('macinput'); copyText.select(); document.execCommand('copy'); }; function pasteFromClipboard() { document.getElementById('macinput').value = ''; var pasteText = document.getElementById('macinput'); pasteText.focus(); document.execCommand('paste'); }; function macConvert(macNotationType) { var lmtr = ['x', '-', ':', '.', '-']; var block = [12, 2, 2, 4, 6]; var macAdrAll = []; var len = lmtr.length; var i; var cntr; var macAdrOut = ''; var macAdr = document.getElementById('macinput').value; var macAdrStrp = macAdr.toLowerCase(); macAdrStrp = macAdrStrp.replace(/[^A-Fa-f0-9]/g, ''); if (macAdrStrp.length !== 12) { document.getElementById("macinput").s