var url = window.location.toString();
var param=url.split("?");
var Currency=param[1];
if (Currency!='USD' && Currency!='EUR') {Currency = 'USD'};

function ShowItem(LicDesc,Amount,MinQty,MaxQty,StepQty)
{
  var CurrCode = Currency;

  if (Currency == "EUR") {CurrCode = "&euro;"};
  if (Currency == "USD") {
    CurrCode = "$";
    Amount = Math.round(Amount*1.4);
  };

  document.write('<br><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">'+
                 '<table><td>'+ CurrCode + Amount);
  if (MinQty != MaxQty) {
    document.write(' x')
  };
  document.write('<td>                                                                                   '+
                 '<input type="hidden" name="cmd" value="_xclick">                                       '+
                 '<input type="hidden" name="business" value="paypal&#64;hmonitor&#46;net">              '+
                 '<input type="hidden" name="item_name" value="'+LicDesc+'">                         '+
                 '<input type="hidden" name="amount" value='+Amount+'>                                   '+
                 '<input type="hidden" name="currency_code" value='+Currency+'>                          '+
                 '<td>');

  if (MinQty != MaxQty) {
    document.write('<select size=1 name="quantity">');
    var i = MinQty;
    while (i <= MaxQty) {
      document.write('<option>'+i+'</option>');
      i += StepQty;
    };
    document.write('</select>');
  };
  document.write('</table>                                                                               '+
                 '<input type="image" src="http://www.paypal.com/images/x-click-but01.gif"               '+
                 '       align =center border="0" name="submit">                                         '+
                 '</form>');
} //End Function
function ShowLine(LicDesc,S1,S2,S3) {
  document.write('<TD ALIGN=center>');ShowItem(LicDesc,S1,1,1,1);
  document.write('<TD ALIGN=center>');ShowItem(LicDesc,S2,2,9,1);
  document.write('<TD ALIGN=center>');ShowItem(LicDesc,S3,10,250,10);
} //End Function
