function CopyToClipboard(containerid) {
var range = document.createRange();
range.selectNode(document.getElementById(containerid));
window.getSelection().removeAllRanges(range);
window.getSelection().addRange(range);
document.execCommand("copy");
alert("Text Copied to clipboard");
}