//********************************************************
// This is the one that goes in the header. It does not 
// seem to work if you have two call to these functions 
// on the same page; hence the duplcate functions.
//********************************************************
// IF AGENTS ARE AVAILABLE:
function agents_available() {
  document.getElementById('smartbutton').innerHTML = '' +
    '<A HREF="" onClick="window.open(\'https://admin.instantservice.com/links/5422/13218\',' + 
    '\'custclient\',\'width=600,height=400,resizable=1,scrollbars=0\');return false;">' + 
    'Enjoy live help online - click now</A><br>';
  return true;
}

// IF AGENTS ARE NOT AVAILABLE:
function agents_not_available() {
  document.getElementById('smartbutton').innerHTML = '' +
    '';
  return true;
}

//********************************************************
// This is the one that goes on the customer service page.
//********************************************************
// IF AGENTS ARE AVAILABLE:
function agents_available2() {
  document.getElementById('smartbutton2').innerHTML = '' +
    '<A HREF="" onClick="window.open(\'https://admin.instantservice.com/links/5422/13218\',' + 
    '\'custclient\',\'width=600,height=400,resizable=1,scrollbars=0\');return false;">' + 
    'Enjoy live help online - click now</A><br>';
  return true;
}

// IF AGENTS ARE NOT AVAILABLE:
function agents_not_available2() {
  document.getElementById('smartbutton2').innerHTML = '' +
    '';
  return true;
}

//********************************************************
// This is the one that goes in the footer.
//********************************************************
// IF AGENTS ARE AVAILABLE:
function agents_available_footer() {
  document.getElementById('smartbutton_footer').innerHTML = '' +
    '<a href="" class="footer_extended" onClick="window.open(\'https://admin.instantservice.com/links/5422/13218\',' + 
    '\'custclient\',\'width=600,height=400,resizable=1,scrollbars=0\');return false;">' + 
    'Live Help</a><br />';
  return true;
}
// IF AGENTS ARE NOT AVAILABLE:
function agents_not_available_footer() {
  document.getElementById('smartbutton_footer').innerHTML = '' +
    '';
  return true;
}