function addMetrikaBGCard(tid,pid)
{
  document.write("<div id=\"q_first_p\" style=\"position:absolute; top:20; left:20; z-index:1; display: none;\">");
  document.write("  <style>");
  document.write("  .q_btn_ad");
  document.write("  {");
  document.write("    font: 11px Tahoma,Verdana, Arial, Helvetica, sans-serif;");
  document.write("    color: #000000;");
  document.write("    height: 19px;");
  document.write("    width: 70px;");
  document.write("    padding-top: 0px;");
  document.write("    background-color: #ffffff;");
  document.write("    border: solid 1px #000000;");
  document.write("  }");
  document.write("  </style>");
  document.write("  <table width=\"500\" cellspacing=\"0\" cellpadding=\"0\" style=\"border: 1px solid #000000;\" bgcolor=\"#F2F1CD\">");
  document.write("  <tr>");
  document.write("  <td style=\"font: 12px Tahoma,Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration: none; padding: 4px;\">");
  document.write("  Здравейте,<br/><br/>За да подобрим нашите услуги и за да разберем дали съдържанието на този сайт е интересно и достатъчно информативно за Вас, провеждаме настоящата анкета. Участието е пожелателно. Попълването и ще отнеме не повече от 1-2 минути.<br/><br/>Ще се радваме, ако участвате.<br/>Благодарим Ви!<br/><br/>Ще вземете ли участие в анкетата?<br/><br/>");
  document.write("  <form><input type=\"button\" value=\"Да\" class=\"q_btn_ad\" onClick=\"window.open('http://www.accent-d.com/metrika/questionary/index.php?tid="+tid+"&pid="+pid+"&lang_id=1&first=yes','questionary','toolbar=no,location=no,menubar=no,directories=no,status=no,copyhistory=no,scrollbars=auto,resizable=no,width=600,height=400,screenX=80,screenY=60'); document.getElementById('q_first_p').style.display = 'none';\">&nbsp;<input type=\"button\" value=\"Не\" class=\"q_btn_ad\" onClick=\"document.getElementById('q_first_p').style.display = 'none';\"></form>");
  document.write("  </td>");
  document.write("  </tr>");
  document.write("  </table>");
  document.write("</div>");

  document.write("  <script type=\"text/javascript\" src=\"//www.accent-d.com/metrika/questionary/q_server/ACD/ACD.js?uri=(http://www.accent-d.com/metrika/questionary/q_server/q_server.php?pid="+pid+"&tid="+tid+")\"></script>");
}

function addMetrikaENCard(tid,pid)
{
  document.write("<div id=\"q_first_p\" style=\"position:absolute; top:20; left:20; z-index:1; display: none;\">");
  document.write("  <style>");
  document.write("  .q_btn_ad");
  document.write("  {");
  document.write("    font: 11px Tahoma,Verdana, Arial, Helvetica, sans-serif;");
  document.write("    color: #000000;");
  document.write("    height: 19px;");
  document.write("    width: 70px;");
  document.write("    padding-top: 0px;");
  document.write("    background-color: #ffffff;");
  document.write("    border: solid 1px #000000;");
  document.write("  }");
  document.write("  </style>");
  document.write("  <table width=\"500\" cellspacing=\"0\" cellpadding=\"0\" style=\"border: 1px solid #000000;\" bgcolor=\"#F2F1CD\">");
  document.write("  <tr>");
  document.write("  <td style=\"font: 12px Tahoma,Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration: none; padding: 4px;\">");
  document.write("  Hello,<br/><br/>It is important for us to know, for example if you found on this web site the information that you searched for. To improve our services we set up a questionary. You can anser all the questions in 1-2 minutes.<br/><br/>We will be very glad if you take part.<br/>Thanks!<br/><br/>Would you like to take part in this questionary?<br/><br/>");                    
  document.write("  <form><input type=\"button\" value=\"Yes\" class=\"q_btn_ad\" onClick=\"window.open('http://www.accent-d.com/metrika/questionary/index.php?tid="+tid+"&pid="+pid+"&lang_id=2&first=yes','questionary','toolbar=no,location=no,menubar=no,directories=no,status=no,copyhistory=no,scrollbars=auto,resizable=no,width=600,height=400,screenX=80,screenY=60'); document.getElementById('q_first_p').style.display = 'none';\">&nbsp;<input type=\"button\" value=\"No\" class=\"q_btn_ad\" onClick=\"document.getElementById('q_first_p').style.display = 'none';\"></form>");
  document.write("  </td>");
  document.write("  </tr>");
  document.write("  </table>");
  document.write("</div>");

  document.write("  <script type=\"text/javascript\" src=\"//www.accent-d.com/metrika/questionary/q_server/ACD/ACD.js?uri=(http://www.accent-d.com/metrika/questionary/q_server/q_server.php?pid="+pid+"&tid="+tid+")\"></script>");
}
