/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Sandeep Gangadharan | http://www.sivamdesign.com/scripts/ */

function changer(link) {
  if (link=="") {
    return; }

//======================
// Edit this portion below. For each new state copy and paste
// the entire IF statement and change the name of the state and the cities.
// Make sure the spelling of the state is the same in the IF statement and in the link.

  if (link=="HUGS") {
    document.theForm.theState.value="HUGS";
    var theOptions=new Array (
      "Select Amount",
		"$15",
      "$25",
      "$50",
      "$100",
      "$250"); }
  else if (link=="Tribute") {
    document.theForm.theState.value="Tribute";
    var theOptions=new Array (
      "Select Amount",
"$15",
      "$25",
      "$50",
      "$100",
      "$250"); }
  else if (link=="JGL") {
    document.theForm.theState.value="JGL";
    var theOptions=new Array (

      "Select Amount",
	  "$1500",
      "$2000",
      "$2500",
      "$5000",
      "$7500"); }

// Do not edit anything below this line:
//======================

  i = document.theForm.secondChoice.options.length;
    if (i > 0) {
      document.theForm.secondChoice.options.length -= i; document.theForm.secondChoice.options[i] = null;
    }

  var theCount=0;
  for (e=0; e<theOptions.length; e++) {
    document.theForm.secondChoice.options[theCount] = new Option();
    document.theForm.secondChoice.options[theCount].text = theOptions[e];
    document.theForm.secondChoice.options[theCount].value = theOptions[e];
    theCount=theCount+1; }
}

//  NOTE: [document.theForm.theState.value] will get you the name of the state,
//  and [document.theForm.secondChoice.value] the name of the city chosen

