function runUpdate() {

	firstName = document.getElementById('firstName').value;
        lastName = document.getElementById('lastName').value;
	email = document.getElementById('email').value;
	phone1 = document.getElementById('phone1').value;
	phone2 = document.getElementById('phone2').value;
	phone3 = document.getElementById('phone3').value;
	address1 = document.getElementById('address1').value;
	address2 = document.getElementById('address2').value;
	city = document.getElementById('city').value;
	state = document.getElementById('state').value;
	zip = document.getElementById('zip').value;
	month = document.getElementById('month').value;
	day = document.getElementById('day').value;
	year = document.getElementById('year').value;
        optInBBC = 'N';
        if (document.getElementById('optInBBC').checked) 
  	  optInBBC = document.getElementById('optInBBC').value;
        optInFox = 'N';
        if (document.getElementById('optInFox').checked) 
	  optInFox = document.getElementById('optInFox').value;

	url = document.getElementById('target').value;
        url += '?firstName=' + encodeURIComponent(firstName) + '&lastName=' + encodeURIComponent(lastName) + '&email=' + encodeURIComponent(email) + '&phone1=' + encodeURIComponent(phone1) + '&phone2=' + encodeURIComponent(phone2) + '&phone3=' + encodeURIComponent(phone3) + '&address1=' + encodeURIComponent(address1) + '&address2=' + encodeURIComponent(address2) + '&city=' + encodeURIComponent(city) + '&state=' + encodeURIComponent(state) + '&zip=' + encodeURIComponent(zip) + '&month=' + encodeURIComponent(month) + '&day=' + encodeURIComponent(day) + '&year=' + encodeURIComponent(year) + '&optInBBC=' + encodeURIComponent(optInBBC) + '&optInFox=' + encodeURIComponent(optInFox);

//Create a 'script' element
  var scrptE = document.createElement("script");

// Set it's 'type' attribute
  scrptE.setAttribute("type", "text/javascript");

  // Set it's 'language' attribute
  scrptE.setAttribute("language", "JavaScript");

  // Set it's 'src' attribute
  scrptE.setAttribute("src", url);

  // Now add this new element to the head tag
  document.getElementsByTagName("head")[0].appendChild(scrptE);
}

function process(obj) {
  if (obj.Response.Status != 0) {
    alert(obj.Response.Message);
  }
  else {

    //remove form display 
    document.getElementById('ContestForm').style.display='none';

    //show thanks display
    document.getElementById('Thanks').style.display='inline';
  }
}

var csstype="external" //Specify type of CSS to use. "Inline" or "external"

                var mac_externalcss='/media/371/st-stylesmac.css' //if "external", specify Mac css file here

                var pc_externalcss='/media/371/st-styles.css'   //if "external", specify PC/default css file here

                ///////No need to edit beyond here////////////

                var mactest=navigator.userAgent.indexOf("Mac")!=-1

                if (csstype=="inline"){

                document.write('<style type="text/css">')

                if (mactest)

                document.write(mac_css)

                else

                document.write(pc_css)

                document.write('</style>')

                }

                else if (csstype=="external")

                document.write('<link rel="stylesheet" type="text/css" href="'+ (mactest? mac_externalcss : pc_externalcss) +'">')


