function copycon()
{
var tempval = $("#txtAdCode").get(0);
tempval.focus();
tempval.select();
if (document.all)
{
therange = eval(tempval).createTextRange();
therange.execCommand("Copy");
}
}
{
var tempval = $("#txtAdCode").get(0);
tempval.focus();
tempval.select();
if (document.all)
{
therange = eval(tempval).createTextRange();
therange.execCommand("Copy");
}
}