var aboutSslText = new Object();
var aboutTrustText = new Object();

var SslLink = new Object();
var TrustLink = new Object();

var SslBlurbText = new Object();
var verifySslText = new Object();

  verifySslText["zh_cn"] = "&#39564;&#35777;";
  verifySslText["zh_tw"] = "&#39511;&#35657;";
  verifySslText["da"] = "KONTROLLER";
  verifySslText["nl"] = "BEVESTIGEN";
  verifySslText["en"] = "VERIFY";
  verifySslText["fr"] = "V&#233;rifier";
  verifySslText["de"] = "Best&#228;tigen";
  verifySslText["it"] = "Verificare";
  verifySslText["ja"] = "&#12463;&#12522;&#12483;&#12463;&#12375;&#12390;&#26908;&#35388;";
  verifySslText["ko"] = "&#51064;&#51613;";
  verifySslText["pt"] = "Verificar";
  verifySslText["es"] = "Verificar";
  verifySslText["sv"] = "Verifiera";

  aboutSslText["zh_cn"] = "&#20851;&#20110; SSL &#35748;&#35777;&#20851;&#20110; SSL &#35748;&#35777;";
  aboutSslText["zh_tw"] = "&#38364;&#26044; SSL &#35469;&#35657;";
  aboutSslText["da"] = "Om SSL-certifikater";
  aboutSslText["nl"] = "Informatie over SSL-certificaten";
  aboutSslText["en"] = "ABOUT SSL CERTIFICATES";
  aboutSslText["fr"] = "&#192; propos des certificats SSL";
  aboutSslText["de"] = "&#220;ber SSL-Zertifikate";
  aboutSslText["it"] = "Informazioni sui certificati SSL";
  aboutSslText["ja"] = "SSL&#12395;&#12388;&#12356;&#12390;";
  aboutSslText["ko"] = "SSL &#51064;&#51613;&#49436; &#51221;&#48372;";
  aboutSslText["pt"] = "Sobre certificados SSL";
  aboutSslText["es"] = "Acerca de los certificados SSL";
  aboutSslText["sv"] = "Om SSL-certifikat";

  aboutTrustText["zh_cn"] = "&#20851;&#20110;&#32447;&#19978;&#20449;&#20219;";
  aboutTrustText["zh_tw"] = "&#38364;&#26044;&#32218;&#19978;&#20449;&#29992;";
  aboutTrustText["da"] = "OM TILLID ONLINE";
  aboutTrustText["nl"] = "OVER VEILIG INTERNETTEN";
  aboutTrustText["en"] = "ABOUT TRUST ONLINE";
  aboutTrustText["fr"] = "&#193; PROPOS DE LA CONFIANCE EN LIGNE";
  aboutTrustText["de"] = "&#220;BER ONLINE-VERTRAUEN";
  aboutTrustText["it"] = "INFORMAZIONI SUL CONCETTO DI FIDUCIA ONLINE";
  aboutTrustText["ja"] = "&#20449;&#29992;&#12391;&#12365;&#12427;&#12458;&#12531;&#12521;&#12452;&#12531;&#21462;&#24341;&#12395;&#12388;&#12356;&#12390;";
  aboutTrustText["ko"] = "&#50728;&#46972;&#51064; &#49888;&#47280; &#51221;&#48372;";
  aboutTrustText["pt"] = "SOBRE A CONFIAN&#199;A ON-LINE";
  aboutTrustText["es"] = "ACERCA DE LA CONFIANZA EN LINEA";
  aboutTrustText["sv"] = "OM F&#214;RTROENDE ONLINE";

  SslLink["zh_cn"] = "http://www.verisign.com/products-services/security-services/ssl/ssl-information-center/";
  SslLink["zh_tw"] = "http://www.verisign.com/products-services/security-services/ssl/ssl-information-center/";
  SslLink["da"] = "http://www.verisign.dk/products-services/security-services/ssl/ssl-information-center/";
  SslLink["nl"] = "http://www.verisign.com/products-services/security-services/ssl/ssl-information-center/";
  SslLink["fr"] = "http://www.verisign.fr/products-services/security-services/ssl/ssl-information-center/";
  SslLink["de"] = "http://www.verisign.de/ssl/ssl-information-center/";
  SslLink["it"] = "http://www.verisign.com/products-services/security-services/ssl/ssl-information-center/";
  SslLink["ja"] = "http://www.verisign.com/products-services/security-services/ssl/ssl-information-center/";
  SslLink["ko"] = "http://www.verisign.com/products-services/security-services/ssl/ssl-information-center/";
  SslLink["pt"] = "http://www.verisign.com/products-services/security-services/ssl/ssl-information-center/";
  SslLink["es"] = "http://www.verisign.es/products-services/security-services/ssl/ssl-information-center/";
  SslLink["sv"] = "http://www.verisign.se/products-services/security-services/ssl/ssl-information-center/";
  SslLink["en"] = "http://www.verisign.com/ssl-certificate/";

  TrustLink["zh_cn"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["zh_tw"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["da"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["nl"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["fr"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["de"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["it"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["ja"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["ko"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["pt"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["es"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["sv"] = "http://www.verisign.com/verisign-trust-seal";
  TrustLink["en"] = "http://www.verisign.com/verisign-trust-seal";

  SslBlurbText["zh_cn"] = "This site chose VeriSign <a href=\"" + SslLink["zh_cn"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["zh_tw"] = "This site chose VeriSign <a href=\"" + SslLink["zh_tw"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["da"] = "This site chose VeriSign <a href=\"" + SslLink["da"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["nl"] = "This site chose VeriSign <a href=\"" + SslLink["nl"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["en"] = "This site chose VeriSign <a href=\"" + SslLink["en"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["fr"] = "This site chose VeriSign <a href=\"" + SslLink["fr"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["de"] = "This site chose VeriSign <a href=\"" + SslLink["de"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["it"] = "This site chose VeriSign <a href=\"" + SslLink["it"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["ja"] = "This site chose VeriSign <a href=\"" + SslLink["ja"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["ko"] = "This site chose VeriSign <a href=\"" + SslLink["ko"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";
  SslBlurbText["pt"] = "This site chose VeriSign <a href=\"" + SslLink["pt"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications."; 
  SslBlurbText["es"] = "This site chose VeriSign <a href=\"" + SslLink["es"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications."; 
  SslBlurbText["sv"] = "This site chose VeriSign <a href=\"" + SslLink["sv"] + "\" target=\"_blank\">SSL</a> for secure e-commerce and confidential communications.";

  function selectSealCode() {
     document.form.S1.focus();
     document.form.S1.select();
     return false;
  }

  function GenerateString() {

    var type1;
	var host;
    var size;
    var use_flash;
    var transparent;
    var language;
    var pickup_code;
    var badhost = "Bitte geben Sie den Common Name (CN) ein.\nDer Common Name muss mit dem Common Name\ndes SSL-Zertifikates übereinstimmen.";

    type1 = document.form.TYPE.value;
	host = document.form.T1.value;

    size = document.form.SIZE.value;

    use_flash = (document.form.FORMAT.value == 'FLASH') ? "YES" : "NO";

    transparent = (use_flash == 'YES') ? "YES" : "NO";

    language = document.form.LA.value;

    document.form.S1.value = "";
	
  //Verify that common name is not null
   if ((host==null)||(host=="")) {
      alert(badhost);
      return false;
   }

   //Verify that there are no consecutive periods in common name
   if (host.indexOf('..') > -1) {
      alert(badhost);
      return false;
   }

   var host2 = host.split(".");
   if (host2.length < 2) {
      alert(badhost);
      return false;
   }

   for (var i=0; i<host2.length; i++) {
      if (host2[i].length < 1) {
         alert(badhost);
         return false;
      }
   }

    pickup_code = "<script type=\"text\/javascript\" src=\"https://seal.verisign.com/getseal?host_name=";
    pickup_code += host;
    pickup_code += "&amp;size=" +  size;
    pickup_code += "&amp;use_flash=" + use_flash;
    pickup_code += "&amp;use_transparent=" + transparent;
    pickup_code += "&amp;lang=" + language + "\"";
    pickup_code += "><\/script>";

    if (document.form.TYPE.value == "ssl") {
       //document.form.S1.value = "<table width=\"290\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" title=\"&#220;berzeugen Sie sich selbst! Diese Website benutzt VeriSign SSL-Verschl&#252;sselung, um die Online-Transaktionen und vertrauliche Informationen zu sch&#252;tzen.\">\n<tr>\n<td width=\"135\" align=\"center\" valign=\"top\">" + pickup_code + "</td>\n<td width=\"155\" valign=\"middle\" style=\"font:11px/16px Helvetica,Verdana,Arial,sans-serif;\">" + SslBlurbText[language] + "</td>\n</tr>\n<tr>\n<td  align=\"center\" valign=\"top\"><a href=\"" + SslLink[language] + "\" target=\"_blank\" style=\"color:#000000; text-decoration:none; font:bold 7px verdana,sans-serif; letter-spacing:.5px; text-align:center; margin:0px; padding:0px;\">" + aboutSslText[language] + "</a></td>\n<td width=\"155\">&nbsp;</td>\n</tr>\n</table>";
   // } else {
    //   document.form.S1.value = "<table width=\"135\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" title=\"&#220;berzeugen Sie sich selbst! Diese Website benutzt VeriSign SSL-Verschl&#252;sselung, um die Online-Transaktionen und vertrauliche Informationen zu sch&#252;tzen.\">\n<tr>\n<td width=\"135\" align=\"center\" valign=\"top\">" + pickup_code + "<br />\n<a href=\"" + SslLink[language] + "\" target=\"_blank\"  style=\"color:#000000; text-decoration:none; font:bold 7px verdana,sans-serif; letter-spacing:.5px; text-align:center; margin:0px; padding:0px;\">" + aboutSslText[language] + "</a></td>\n</tr>\n</table>";
   // }
	  document.form.S1.value = "<table width=\"135\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" title=\"Zur Bestätigung klicken - diese Seite hat VeriSign SSL-Zertifikate für sicheren E-Commerce und vertrauliche Kommunikation gewählt.\">\n<tr>\n<td width=\"135\" align=\"center\" valign=\"top\">" + pickup_code + "<br />\n<a href=\"" + SslLink[language] + "\" target=\"_blank\"  style=\"color:#000000; text-decoration:none; font:bold 7px verdana,sans-serif; letter-spacing:.5px; text-align:center; margin:0px; padding:0px;\">" + aboutSslText[language] + "</a></td>\n</tr>\n</table>";
    } else {
       document.form.S1.value = "<table width=\"135\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" title=\"Zur Bestätigung klicken – diese Seite hat das VeriSign Trust-Siegel gewählt, um das Vertrauen von Kunden im Internet zu gewinnen.\">\n<tr>\n<td width=\"135\" align=\"center\" valign=\"top\">" + pickup_code + "<br />\n<a href=\"" + TrustLink[language] + "\" target=\"_blank\"  style=\"color:#000000; text-decoration:none; font:bold 7px verdana,sans-serif; letter-spacing:.5px; text-align:center; margin:0px; padding:0px;\">" + aboutTrustText[language] + "</a></td>\n</tr>\n</table>";
    }
	

    return false;
  }

 
