<!--  //this script handles pricing and such
//define array
Prices = new Array("10.00","5.00","10.00","10.00","10.00","5.00","10.00");
IDs = new Array("0","5","4","6","2","3","7");  //ID = 1 --> AssArray

//display the form
function DisplayForm()
{
  document.write("<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" name=myForm><input type=\"hidden\" name=\"cmd\" value=\"_xclick\"><input type=\"hidden\" name=\"business\" value=\"galanto@gmail.com\"><input type=\"hidden\" name=\"item_name\">Select Object: <select name=\"item_name2\" onChange=\"SetPrices();\"><option>Boolean Object<option>Color Dialog Object<option>Custom Object<option>Expression Evaluator Object<option>System Tray Object<option>UHSD Object<option>Windows Message Object Pro</select>  Price $<input type=text name=price value=\""+Prices[0]+"\"><br><input type=\"hidden\" name=\"item_number\" value=\""+IDs[0]+"\"><input type=\"hidden\" name=\"amount\" value=\""+Prices[0]+"\"><input type=\"hidden\" name=\"return\" value=\"\"><input type=\"hidden\" name=\"cancel_return\" value=\"\"><input type=\"hidden\" name=\"no_note\" value=\"1\"><input type=\"hidden\" name=\"currency_code\" value=\"USD\"><input type=\"hidden\" name=\"lc\" value=\"US\"><input type=\"hidden\" name=\"on0\" value=\"Name under which you will be credited in applications\">Name under which you will be credited in applications: <input type=\"text\" name=\"os0\" maxlength=\"200\"><br><!--<input type=\"hidden\" name=\"on1\" value=\"Donation Recipient\">Donation Recipient: <select name=\"os1\" multiple><option>Clickteam<option selected>Daily Click<option>MOSNET</select> (Use Ctrl or Shift to Select Multiple Recipients)<br>--><!--<b>Note: Your shipping address must be confirmed!</b><br>--><b>Note: Keep a record of your Paypal purchase as it's the only way to <i>prove</i> you have a license if my database ever gets messed up.</b><br><img  src=\"https://www.paypal.com/images/x-click-but23.gif\" border=\"0\" onClick=\"SubmitForm();\" alt=\"Make payments with PayPal - it's fast, free and secure!\"></form>");
}

//set the price
function SetPrices()
{
  document.myForm.amount.value = Prices[document.myForm.item_name2.selectedIndex];
  document.myForm.price.value = Prices[document.myForm.item_name2.selectedIndex];
  document.myForm.item_number.value = IDs[document.myForm.item_name2.selectedIndex];
}

//submit the form, making sure the name is valid
function SubmitForm()
{
  if(document.myForm.os0.value == "")
     alert("You need to enter a name!");
  else
  {
     //if(document.myForm.os1.selectedIndex == -1)
     //  alert("You need to select a recipient!");
     //else
     //{
       document.myForm.item_name.value = document.myForm.item_name2.options[document.myForm.item_name2.selectedIndex].text + " Commercial Use License";
       document.myForm.submit();
     //}
  }
}

-->