function newWin(strURL) {
  downloadWin = window.open(strURL,"downloadWin","scrollbars,resizable,width=450,height=380");
}

// Writes out Unsealer download link. If strLinkText is not supplied, the function
// writes out get_unsealer.gif image sourced from downloads.sealedmedia.com
function writeUnsealerDownloadLink(strLinkText) {

  // Mandatory: Customer ID – will be provided for you by SealedMedia
  var customerId = "TTL";

  // Optional: Customer support email address - enables end users to contact
  // you in the event of any download or installation difficulties
  var helpContact = "";

  // Optional: Unsealer language – specifies the preselected language version
  // Current accepted values = de,en,es,fr (German, English, Spanish, French)
  var unsealerLanguage = "";

  // Optional: Display language – specifies the language of the download
  // assistant web pages. Current accepted values = en,es,fr
  var displayLanguage = "";

  // Optional: Scenario number – specifies a download scenario for controlling which
  // versiojn of the Unsealer is delivered
  var scenario = "";

  // * * End of user set parameters * *

  var startURL = "http://download.sealedmedia.com/unsealer/client_detect.asp";

  var strLink = "<a name=\"get_unsealer\" href=\"javascript:newWin('"
              + startURL + "?whereFrom=" + escape(window.location.host) + "&"
              + "customerId=" + escape(customerId) + "&";

  if (helpContact!="")      strLink += "helpContact=" + escape(helpContact) + "&";
  if (unsealerLanguage!="") strLink += "unsealerLanguage=" + unsealerLanguage + "&";
  if (displayLanguage!="")  strLink += "displayLanguage=" + displayLanguage + "&";
  if (scenario!="")         strLink += "scenario=" + scenario + "&";

  strLink += "')\">";

  if (writeUnsealerDownloadLink.arguments.length == 0) {
  	strLinkText = "<img width=88 height=31 border=0 alt=\"Download SealedMedia Unsealer\" "
                + "src=\"http://downloads.sealedmedia.com/images/get_unsealer.gif\"> ";
  }

  document.write(strLink + strLinkText + "</a>");
}
