function loadScript_form(url){

  if (document.getElementById('wcform_script') == null) {
  var script = document.createElement("script");
  script.type = "text/javascript";
      script.id = "wcform_script";

    if (script.readyState){   /*IE*/
      script.onreadystatechange = function(){
          if (script.readyState == "loaded" ||
                  script.readyState == "complete"){
              script.onreadystatechange = null;
                  init_form();
                  window.dispatchEvent(new Event('wcxReady'));
          }
      };
  } else {  
      script.onload = function(){
        init_form();
        window.dispatchEvent(new Event('wcxReady'));
      };
  }

  script.src = url;
  document.getElementsByTagName("head")[0].appendChild(script);
  }
}


function init_form(){
  if (typeof (wcbox) !== 'undefined') {
      wcbox.init({ 
          
        assetHost: "https://wcentrix.net",
        accountID: "De4096",
        wcboxID: "84eb742d4d0e4e1597294b34fbf978ce",
        tabTooltip: "Contacto",
        tabImageURL: "Contacto",
        tabColor: "#FF9900",
        language: "es",
        allowedDomains: '[]',
      hide_tab: true
      });
  } 
}

loadScript_form("https://f.wcentrix.com/tabhelp/external/wcbox-dist/wcbox.v4.js");
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", "https://f.wcentrix.com/tabhelp/external/wcbox-dist/wcbox.v4.css");
document.getElementsByTagName("head")[0].appendChild(fileref);
