$(document).ready(function(){
	
	$('a#next1').click(function(){
		$('div#first').removeClass('block').addClass('display-none');
		$('div#second').removeClass('display-none').addClass('block');
			});// of click(

	
	$('a#back1').click(function(){
var numStudents = document.getElementById("numStudents").value;
		switch (parseInt(numStudents))
		{
			case 1:
				$('div#first').removeClass('display-none').addClass('block');
				$('div#second').removeClass('block').addClass('display-none');
				break;
			default:
				$('div#first').removeClass('display-none').addClass('block');
				$('div#second').removeClass('block').addClass('display-none');
		}
	});// of click(

	$('a#back1n2').click(function(){
var numStudents = document.getElementById("numStudents").value;
		switch (parseInt(numStudents))
		{
			case 1:
				$('div#first').removeClass('display-none').addClass('block');
				$('div#second2').removeClass('block').addClass('display-none');
				break;
			case 2:
				$('div#second').removeClass('display-none').addClass('block');
				$('div#second2').removeClass('block').addClass('display-none');
				break;
			default:
				$('div#second').removeClass('display-none').addClass('block');
				$('div#second2').removeClass('block').addClass('display-none');
		}
	});// of click(
	
	$('a#back1n3').click(function(){
var numStudents = document.getElementById("numStudents").value;
		switch (parseInt(numStudents))
		{
			case 1:
				$('div#first').removeClass('display-none').addClass('block');
				$('div#second3').removeClass('block').addClass('display-none');
				break;
			case 2:
				$('div#second').removeClass('display-none').addClass('block');
				$('div#second3').removeClass('block').addClass('display-none');
				break;
			case 3:
				$('div#second2').removeClass('display-none').addClass('block');
				$('div#second3').removeClass('block').addClass('display-none');
				break;
			case 4:
				$('div#second2').removeClass('display-none').addClass('block');
				$('div#second3').removeClass('block').addClass('display-none');
				break;
			
			default:
				$('div#second').removeClass('display-none').addClass('block');
				$('div#second3').removeClass('block').addClass('display-none');
		}
	});// of click(

	$('a#back1n4').click(function(){
var numStudents = document.getElementById("numStudents").value;
		switch (parseInt(numStudents))
		{
			case 1:
				$('div#first').removeClass('display-none').addClass('block');
				$('div#second4').removeClass('block').addClass('display-none');
				break;
			case 2:
				$('div#second').removeClass('display-none').addClass('block');
				$('div#second4').removeClass('block').addClass('display-none');
				break;
			case 3:
				$('div#second2').removeClass('display-none').addClass('block');
				$('div#second4').removeClass('block').addClass('display-none');
				break;
			case 4:
				$('div#second3').removeClass('display-none').addClass('block');
				$('div#second4').removeClass('block').addClass('display-none');
				break;
			default:
				$('div#second').removeClass('display-none').addClass('block');
				$('div#second4').removeClass('block').addClass('display-none');
		}
	});// of click(
	
	$('a#next2').click(function(){
var numStudents = document.getElementById("numStudents").value;
		switch (parseInt(numStudents))
		{
			case 1:
				$('div#second').removeClass('block').addClass('display-none');
				$('div#fourth').removeClass('display-none').addClass('block');
				break;
			case 2:
				$('div#second').removeClass('block').addClass('display-none');
				$('div#second2').removeClass('display-none').addClass('block');
				break;
			case 3:
				$('div#second').removeClass('block').addClass('display-none');
				$('div#second2').removeClass('display-none').addClass('block');
				break;
			case 4:
				$('div#second').removeClass('block').addClass('display-none');
				$('div#second2').removeClass('display-none').addClass('block');
				break;
			default:
				$('div#second').removeClass('block').addClass('display-none');
				$('div#fourth').removeClass('display-none').addClass('block');
		}
	});// of click(

	$('a#back3').click(function(){
var numStudents = document.getElementById("numStudents").value;
		switch (parseInt(numStudents))
		{
			case 1:
				$('div#second').removeClass('display-none').addClass('block');
				$('div#fourth').removeClass('block').addClass('display-none');
				break;
			case 2:
				$('div#second2').removeClass('display-none').addClass('block');
				$('div#fourth').removeClass('block').addClass('display-none');
				break;
			case 3:
				$('div#second3').removeClass('display-none').addClass('block');
				$('div#fourth').removeClass('block').addClass('display-none');
				break;
			case 4:
				$('div#second4').removeClass('display-none').addClass('block');
				$('div#fourth').removeClass('block').addClass('display-none');
				break;
			default:
				$('div#second').removeClass('display-none').addClass('block');
				$('div#fourth').removeClass('block').addClass('display-none');		}
		
	});// of click(

	$('a#next2n2').click(function(){
var numStudents = document.getElementById("numStudents").value;
	switch (parseInt(numStudents))
	{
		case 1:
			$('div#second2').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		case 2:
			$('div#second2').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		case 3:
			$('div#second2').removeClass('block').addClass('display-none');
			$('div#second3').removeClass('display-none').addClass('block');
			break;
		case 4:
			$('div#second2').removeClass('block').addClass('display-none');
			$('div#second3').removeClass('display-none').addClass('block');
			break;
		default:
			$('div#second2').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
	}
	});// of click(

	$('a#next2n3').click(function(){
var numStudents = document.getElementById("numStudents").value;
	switch (parseInt(numStudents))
	{
		case 1:
			$('div#second3').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		case 2:
			$('div#second3').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		case 3:
			$('div#second3').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		case 4:
			$('div#second3').removeClass('block').addClass('display-none');
			$('div#second4').removeClass('display-none').addClass('block');
			break;
		default:
			$('div#second3').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
	}
	});// of click(

	$('a#next2n4').click(function(){
var numStudents = document.getElementById("numStudents").value;
	switch (parseInt(numStudents))
	{
		case 1:
			$('div#second4').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		case 2:
			$('div#second4').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		case 3:
			$('div#second4').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		case 4:
			$('div#second4').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
			break;
		default:
			$('div#second4').removeClass('block').addClass('display-none');
			$('div#fourth').removeClass('display-none').addClass('block');
	}
	});// of click(
	
	
	$('a#back3').click(function(){
		$('div#third').removeClass('display-none').addClass('block');
		$('div#fourth').removeClass('block').addClass('display-none');
	});// of click(

	$('a#next4').click(function(){
		$('div#fourth').removeClass('block').addClass('display-none');
		$('div#fifth').removeClass('display-none').addClass('block');
	});// of click(

	$('a#back4').click(function(){
		$('div#fourth').removeClass('display-none').addClass('block');
		$('div#fifth').removeClass('block').addClass('display-none');
	});// of click(

	$('a#step1').click(function(){
		$('div#first').removeClass('display-none').addClass('block');
		$('div#second').removeClass('block').addClass('display-none');
		$('div#third').removeClass('block').addClass('display-none');
		$('div#fourth').removeClass('block').addClass('display-none');
		$('div#fifth').removeClass('block').addClass('display-none');
	});// of click(
	
	$('a#step2').click(function(){
		$('div#second').removeClass('display-none').addClass('block');
		$('div#first').removeClass('block').addClass('display-none');
		$('div#third').removeClass('block').addClass('display-none');
		$('div#fourth').removeClass('block').addClass('display-none');
		$('div#fifth').removeClass('block').addClass('display-none');
	});// of click(

	$('a#step3').click(function(){
		$('div#third').removeClass('display-none').addClass('block');
		$('div#second').removeClass('block').addClass('display-none');
		$('div#first').removeClass('block').addClass('display-none');
		$('div#fourth').removeClass('block').addClass('display-none');
		$('div#fifth').removeClass('block').addClass('display-none');
	});// of click(
	
	$('a#step4').click(function(){
		$('div#fourth').removeClass('display-none').addClass('block');
		$('div#second').removeClass('block').addClass('display-none');
		$('div#third').removeClass('block').addClass('display-none');
		$('div#first').removeClass('block').addClass('display-none');
		$('div#fifth').removeClass('block').addClass('display-none');
	});// of click(

	$('a#step5').click(function(){
		$('div#fifth').removeClass('display-none').addClass('block');
		$('div#second').removeClass('block').addClass('display-none');
		$('div#third').removeClass('block').addClass('display-none');
		$('div#fourth').removeClass('block').addClass('display-none');
		$('div#first').removeClass('block').addClass('display-none');
	});// of click(

});

   
function calcGrandTotal () {
       var total = 0;
	
       var totalDOM = document.getElementById('grandTotal');

       total += parseInt(document.getElementById('regFee').value);
	total += parseInt(document.getElementById('lateFee').value);
	total += parseInt(document.getElementById('book13').value);
	total += parseInt(document.getElementById('book14').value);
	total += parseInt(document.getElementById('book6').value);
	total += parseInt(document.getElementById('eurhythmics').value);
	total += parseInt(document.getElementById('bluegrass').value);
	total += parseInt(document.getElementById('irish').value);
	total += parseInt(document.getElementById('ecc').value);
	total += parseInt(document.getElementById('eccV1').value);
	total += parseInt(document.getElementById('stttV1').value);
	total += parseInt(document.getElementById('stttV234').value);
	total += parseInt(document.getElementById('observer').value);
	total += parseInt(document.getElementById('tradTAmount').value);
	//total += parseInt(document.getElementById('capTAmount').value);
	total += parseInt(document.getElementById('famChorus').value);
	total += parseInt(document.getElementById('scholarship').value);

	totalDOM.value = total;

   }
function validateNumStudents() {
	var numStudents = document.getElementById('numStudents').value;
	var intNS = parseInt(numStudents);
	if (intNS > 4)
	{
		alert("Max num students to register at once is 4!");
		document.getElementById('numStudents').value = "4";
	}
	if (!is_int(intNS))
	{
		document.getElementById('numStudents').value = "1";

	}

}

   function calcTradTShirt () {
	var total = 0;
	var totalTShirtDOM = document.getElementById('tradTshirtCount');
	var totalTShirtAmountDOM = document.getElementById('tradTAmount');

	total += parseInt(document.getElementById('tradAdultSmCount').value);
	total += parseInt(document.getElementById('tradAdultMedCount').value);
	total += parseInt(document.getElementById('tradAdultLgCount').value);
	total += parseInt(document.getElementById('tradAdultXLCount').value);
	total += parseInt(document.getElementById('tradChildSmCount').value);
	total += parseInt(document.getElementById('tradChildMedCount').value);
	total += parseInt(document.getElementById('tradChildLgCount').value);

	
	totalTShirtDOM.value = total;
	totalTShirtAmountDOM.value = total*13;
   }

 function is_int(value){ 
  if((parseFloat(value) == parseInt(value)) && !isNaN(value)){
      return true;
  } else { 
      return false;
  } 
}
/*
 function calcCapTShirt () {
	var total = 0;
	var totalTShirtDOM = document.getElementById('capTshirtCount');
	var totalTShirtAmountDOM = document.getElementById('capTAmount');

	total += parseInt(document.getElementById('capAdultSmCount').value);
	total += parseInt(document.getElementById('capAdultMedCount').value);
	total += parseInt(document.getElementById('capAdultLgCount').value);
	total += parseInt(document.getElementById('capAdultXLCount').value);
		
	totalTShirtDOM.value = total;
	totalTShirtAmountDOM.value = total*18;
   }
*/
   function calcObserverFee () {
	var observerFeeDOM = document.getElementById('observer');
	var observerFeeCountDOM = document.getElementById('observerCount');
	if( parseInt(observerFeeCountDOM.value) >= 4) 
	{
		observerFeeDOM.value = 40; 
	}
	else
	{
		observerFeeDOM.value = parseInt(observerFeeCountDOM.value)*10;
	}
	if (!is_int(observerFeeDOM.value))
	{
		observerFeeDOM.value = 0;
	}
   }

   var request = false;
   var url;
   try {
		request = new XMLHttpRequest();
   } catch (trymicrosoft) {
     try {
       request = new ActiveXObject("Msxml2.XMLHTTP");
     } catch (othermicrosoft) {
       try {
         request = new ActiveXObject("Microsoft.XMLHTTP");
       } catch (failed) {
         request = false;
       }
     }
   }

   if (!request)
     alert("Error initializing XMLHttpRequest!");
	var blind_func;

	function sleep(milliseconds) {
		var start = new Date().getTime();
		while ((new Date().getTime() - start) < milliseconds){
		// Do nothing
		}
	}

	var swap_element = function() {
		var totalAmount = document.getElementById('grandTotal').value;
		window.open('https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WCVUXCZKASG2U&item_name=2012%20Atlanta%20Suzuki%20Institute%20tuition&amount='+totalAmount,'_newtab');
		var confirmationText = "<h3>Registration Submitted.</h3>";
		confirmationText += "Thank you, you should hear from us soon! <br/> ";
		confirmationText += "<h4>Registration fee payment</h4> <strong>You owe: $"+totalAmount+"</strong><br/><br/> Upon submission, this form attempts to open a link to our ";
		confirmationText += "<a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WCVUXCZKASG2U&item_name=2012%20Atlanta%20Suzuki%20Institute%20tuition&amount="+totalAmount+"'>PayPal account</a> to assist you in paying your fee online.  If you haven't already done so, please pay your registration fee by sending a check (see below for details) or by using PayPal to submit a payment online!  <br/>";
		confirmationText += "<br/><strong>Pay by check to:</strong><br/>Atlanta Suzuki Institute<br/>11285 Elkins Road, Suite K2<br/>Roswell, Georgia 30076";


		document.getElementById("requestReg").innerHTML = confirmationText;	}

   var update_page = function updatePage() {
		var	blind_func2 = new Spry.Effect.Blind('requestReg', {duration: 1000, fps: 45, setup: swap_element, from: '0px', to: '350px', toggle:true});	

		blind_func2.start();

	}

   function sendProp() {
		blind_func = new Spry.Effect.Blind('requestReg', {duration: 1000, fps: 45, toggle:true, from: '100%', to: '0%',finish: update_page});
		var numStudents = parseInt(document.getElementById('numStudents').value);
		
	   	var parentName = document.getElementById("parentName").value;
	   	var street = document.getElementById("street").value;
	   	var city  = document.getElementById("city").value;
	   	var state = document.getElementById("state").value;
	   	var zip = document.getElementById("zip").value;


          	var dayPhone = document.getElementById("dayPhone").value;
		var altPhone = document.getElementById("altPhone").value;
		var email = document.getElementById("email").value;
		var adultResponsible = document.getElementById("adultResponsible").value;
		var responsiblePhone = document.getElementById("responsiblePhone").value;

	   	if (numStudents >= 1)
		{
			var s1Name = document.getElementById("s1Name").value;
			var s1Gender = "";
			for (var i=0; i < document.proposalForm.s1Gender.length; i++)
	   		{
	   			if (document.proposalForm.s1Gender[i].checked)
	      			{
	      				var s1Gender = document.proposalForm.s1Gender[i].value;
	      			}
	   		}
			var s1age = document.getElementById("s1age").value;
		       var s1Instrument = document.getElementById("s1Instrument").value;
			var s1BookNum = document.getElementById("s1BookNum").value;
			var s1CurPiece = document.getElementById("s1CurPiece").value;
			var s1class ="";
			for (var i=0; i < document.proposalForm.s1class.length; i++)
	   		{
	   			if (document.proposalForm.s1Gender[i].checked)
	      			{
	      				var s1class = document.proposalForm.s1class[i].value;
	      			}
	   		}
			var s1SuzukiTeacher = document.getElementById("s1SuzukiTeacher").value;
			var s1ReadMusic="";
			for (var i=0; i < document.proposalForm.s1ReadMusic.length; i++)
	   		{
	   			if (document.proposalForm.s1ReadMusic[i].checked)
	      			{
	      				var s1ReadMusic= document.proposalForm.s1ReadMusic[i].value;
	      			}
	   		}
			var s1Ensemble="";
			for (var i=0; i < document.proposalForm.s1Ensemble.length; i++)
	   		{
	   			if (document.proposalForm.s1Ensemble[i].checked)
	      			{
	      				var s1Ensemble= document.proposalForm.s1Ensemble[i].value;
	      			}
	   		}			
			var s1EnsembleName = document.getElementById("s1EnsembleName").value;
		}
		if (numStudents >= 2)
		{
			var s2Name = document.getElementById("s2Name").value;
			var s2Gender = "";
			for (var i=0; i < document.proposalForm.s2Gender.length; i++)
	   		{
	   			if (document.proposalForm.s2Gender[i].checked)
	      			{
	      				var s2Gender = document.proposalForm.s2Gender[i].value;
	      			}
	   		}
			var s2age = document.getElementById("s2age").value;
		       var s2Instrument = document.getElementById("s2Instrument").value;
			var s2BookNum = document.getElementById("s2BookNum").value;
			var s2CurPiece = document.getElementById("s2CurPiece").value;
			var s2class = ""
			for (var i=0; i < document.proposalForm.s2class.length; i++)
	   		{
	   			if (document.proposalForm.s2Gender[i].checked)
	      			{
	      				var s2class = document.proposalForm.s2class[i].value;
	      			}
	   		}
			var s2SuzukiTeacher = document.getElementById("s2SuzukiTeacher").value;
			var s2ReadMusic = "";
			for (var i=0; i < document.proposalForm.s2ReadMusic.length; i++)
	   		{
	   			if (document.proposalForm.s2ReadMusic[i].checked)
	      			{
	      				var s2ReadMusic= document.proposalForm.s2ReadMusic[i].value;
	      			}
	   		}
			var s2Ensemble = "";
			for (var i=0; i < document.proposalForm.s2Ensemble.length; i++)
	   		{
	   			if (document.proposalForm.s2Ensemble[i].checked)
	      			{
	      				var s2Ensemble= document.proposalForm.s2Ensemble[i].value;
	      			}
	   		}			
			var s2EnsembleName = document.getElementById("s2EnsembleName").value;
		}
		if (numStudents >= 3)
		{
			var s3Name = document.getElementById("s3Name").value;
			var s3Gender = "";
			for (var i=0; i < document.proposalForm.s3Gender.length; i++)
	   		{
	   			if (document.proposalForm.s3Gender[i].checked)
	      			{
	      				var s3Gender = document.proposalForm.s3Gender[i].value;
	      			}
	   		}
			var s3age = document.getElementById("s3age").value;
		       
			var s3Instrument = document.getElementById("s3Instrument").value;
			var s3BookNum = document.getElementById("s3BookNum").value;
			var s3CurPiece = document.getElementById("s3CurPiece").value;
			var s3class = ""
			for (var i=0; i < document.proposalForm.s3class.length; i++)
	   		{
	   			if (document.proposalForm.s3Gender[i].checked)
	      			{
	      				var s3class = document.proposalForm.s3class[i].value;
	      			}
	   		}
			var s3SuzukiTeacher = document.getElementById("s3SuzukiTeacher").value;
			var s3ReadMusic = "";
			for (var i=0; i < document.proposalForm.s3ReadMusic.length; i++)
	   		{
	   			if (document.proposalForm.s3ReadMusic[i].checked)
	      			{
	      				var s3ReadMusic= document.proposalForm.s3ReadMusic[i].value;
	      			}
	   		}
			var s3Ensemble = "";
			for (var i=0; i < document.proposalForm.s3Ensemble.length; i++)
	   		{
	   			if (document.proposalForm.s3Ensemble[i].checked)
	      			{
	      				var s3Ensemble= document.proposalForm.s3Ensemble[i].value;
	      			}
	   		}			
			var s3EnsembleName = document.getElementById("s3EnsembleName").value;
		}

		if (numStudents >= 4)
		{
			var s4Name = document.getElementById("s4Name").value;
			var s4Gender = "";
			for (var i=0; i < document.proposalForm.s4Gender.length; i++)
	   		{
	   			if (document.proposalForm.s4Gender[i].checked)
	      			{
	      				var s4Gender = document.proposalForm.s4Gender[i].value;
	      			}
	   		}
			var s4age = document.getElementById("s1age").value;
		       var s4Instrument = document.getElementById("s4Instrument").value;
			var s4BookNum = document.getElementById("s4BookNum").value;
			var s4CurPiece = document.getElementById("s4CurPiece").value;
			var s4class = ""
			for (var i=0; i < document.proposalForm.s4class.length; i++)
	   		{
	   			if (document.proposalForm.s4Gender[i].checked)
	      			{
	      				var s4class = document.proposalForm.s4class[i].value;
	      			}
	   		}
			var s4SuzukiTeacher = document.getElementById("s4SuzukiTeacher").value;
			var s4ReadMusic = "";
			for (var i=0; i < document.proposalForm.s4ReadMusic.length; i++)
	   		{
	   			if (document.proposalForm.s4ReadMusic[i].checked)
	      			{
	      				var s4ReadMusic= document.proposalForm.s4ReadMusic[i].value;
	      			}
	   		}
			var s4Ensemble = "";
			for (var i=0; i < document.proposalForm.s4Ensemble.length; i++)
	   		{
	   			if (document.proposalForm.s4Ensemble[i].checked)
	      			{
	      				var s4Ensemble= document.proposalForm.s4Ensemble[i].value;
	      			}
	   		}			
			var s4EnsembleName = document.getElementById("s4EnsembleName").value;
		}

		var regFeeCount = "";
		if (document.getElementById("regFeeCount").checked)
		{
			regFeeCount = "Yes";
		}
		else
		{
			regFeeCount = "No";
		}
		var regFee = document.getElementById("regFee").value;
		var lateFeeCount = "";
		if (document.getElementById("lateFeeCount").checked)
		{
			lateFeeCount = "Yes";
		}
		else
		{
			lateFeeCount = "No";
		}
		var lateFee = document.getElementById("lateFee").value;
		var book13Count = document.getElementById("book13Count").value;
		var book13 = document.getElementById("book13").value;
		var book14Count = document.getElementById("book14Count").value;
		var book14 = document.getElementById("book14").value;
		var book6Count = document.getElementById("book6Count").value;
		var book6 = document.getElementById("book6").value;
		var eurhythmicsCount = document.getElementById("eurhythmicsCount").value;
		var eurhythmics = document.getElementById("eurhythmics").value;
		var bluegrassCount = document.getElementById("bluegrassCount").value;
		var bluegrass = document.getElementById("bluegrass").value;
		var irishCount = document.getElementById("irishCount").value;
		var irish = document.getElementById("irish").value;
		var eccCount = document.getElementById("eccCount").value;
		var ecc = document.getElementById("ecc").value;
		var eccV1Count = document.getElementById("eccV1Count").value;
		var eccV1 = document.getElementById("eccV1").value;
		var G1Count = document.getElementById("G1Count").value;
		var G1 = document.getElementById("G1").value;
		var C4Count = document.getElementById("C4Count").value;
		var C4 = document.getElementById("C4").value;
		var stttV1Count = document.getElementById("stttV1Count").value;
		var stttV1 = document.getElementById("stttV1").value;
		var stttV234Count = document.getElementById("stttV234Count").value;
		var stttV234 = document.getElementById("stttV234").value;
		var observerCount = document.getElementById("observerCount").value;
		var observer = document.getElementById("observer").value;		
	   	
		var tradAdultSmCount = document.getElementById("tradAdultSmCount").value;
		var tradAdultMedCount = document.getElementById("tradAdultMedCount").value;
		var tradAdultLgCount= document.getElementById("tradAdultLgCount").value;
		var tradAdultXLCount= document.getElementById("tradAdultXLCount").value;
		var tradChildSmCount = document.getElementById("tradChildSmCount").value;
		var tradChildMedCount = document.getElementById("tradChildMedCount").value;
		var tradChildLgCount= document.getElementById("tradChildLgCount").value;
		var tradTshirtCount= document.getElementById("tradTshirtCount").value;
		var tradTAmount= document.getElementById("tradTAmount").value;
		//var capAdultSmCount= document.getElementById("capAdultSmCount").value;
		//var capAdultMedCount= document.getElementById("capAdultMedCount").value;
		//var capAdultLgCount= document.getElementById("capAdultLgCount").value;
		//var capAdultXLCount= document.getElementById("capAdultXLCount").value;
		//var capTshirtCount= document.getElementById("capTshirtCount").value;
		//var capTAmount= document.getElementById("capTAmount").value;
		var famChorusCount= "";
		if (document.getElementById("famChorusCount").checked)
		{
			famChorusCount= "Yes";
		}
		else
		{
			famChorusCount= "No";
		}
		var famChorus= document.getElementById("famChorus").value;
		
var scholarship= document.getElementById("scholarship").value;
		var grandTotal= document.getElementById("grandTotal").value;	

		var eccCheck = "";
		if (document.getElementById("eccCheck").checked)
		{
			eccCheck = "Yes";
		}
		else
		{
			eccCheck= "No";
		}

		var g1Participant= "";
		if (document.getElementById("g1Participant").checked)
		{
			g1Participant= "Yes";
		}
		else
		{
			g1Participant= "No";
		}
		var g1Auditor= "";
		if (document.getElementById("g1Auditor").checked)
		{
			g1Auditor= "Yes";
		}
		else
		{
			g1Auditor= "No";
		}


		var c4Participant= "";
		if (document.getElementById("c4Participant").checked)
		{
			c4Participant= "Yes";
		}
		else
		{
			c4Participant= "No";
		}
		var c4Auditor= "";
		if (document.getElementById("c4Auditor").checked)
		{
			c4Auditor= "Yes";
		}
		else
		{
			c4Auditor= "No";
		}

		var v1Participant= "";
		if (document.getElementById("v1Participant").checked)
		{
			v1Participant= "Yes";
		}
		else
		{
			v1Participant= "No";
		}

		var v1Auditor= "";
		if (document.getElementById("v1Auditor").checked)
		{
			v1Auditor= "Yes";
		}
		else
		{
			v1Auditor= "No";
		}
var v2Participant= "";
		if (document.getElementById("v2Participant").checked)
		{
			v2Participant= "Yes";
		}
		else
		{
			v2Participant= "No";
		}

		var v2Auditor= "";
		if (document.getElementById("v2Auditor").checked)
		{
			v2Auditor= "Yes";
		}
		else
		{
			v2Auditor= "No";
		}

var v3Participant= "";
		if (document.getElementById("v3Participant").checked)
		{
			v3Participant= "Yes";
		}
		else
		{
			v3Participant= "No";
		}

		var v3Auditor= "";
		if (document.getElementById("v1Auditor").checked)
		{
			v3Auditor= "Yes";
		}
		else
		{
			v3Auditor= "No";
		}
var v4Participant= "";
		if (document.getElementById("v4Participant").checked)
		{
			v4Participant= "Yes";
		}
		else
		{
			v4Participant= "No";
		}

		var v4Auditor= "";
		if (document.getElementById("v4Auditor").checked)
		{
			v4Auditor= "Yes";
		}
		else
		{
			v4Auditor= "No";
		}

var notAMember= "";
		if (document.getElementById("notAMember").checked)
		{
			notAMember= "Yes";
		}
		else
		{
			notAMember= "No";
		}
var saaMembership= document.getElementById("saaMembership").value;
		var expirationDate= document.getElementById("expirationDate").value;
		


			
	   
	if(parentName =="") {
			alert("Please fill in Parent name."); 

	   } else if(street=="") {
			alert("Please fill in street address.");
	   } else if(city=="") {
			alert("Please fill in city name.");
	   } else if(state=="") {
			alert("Please fill in state.");
	   } else if(zip=="") {
			alert("Please fill in zip code.");
	   } else {
		 blind_func.start();

	url = "http://www.atlantasuzuki.org/propsend.php?parentName=" + escape(parentName) 
										+ "&numStudents=" + escape(numStudents) 
										+ "&street=" + escape(street) 
										+ "&city=" + escape(city) 
										+ "&state=" + escape(state) 
										+ "&zip=" + escape(zip) 
										+ "&dayPhone=" + escape(dayPhone)
										+ "&altPhone=" + escape(altPhone) 
										+ "&email=" + escape(email) 
										+ "&adultResponsible=" + escape(adultResponsible) 
										+ "&responsiblePhone=" + escape(responsiblePhone) 
										+ "&s1Name=" + escape(s1Name)
										+ "&s1Gender=" + escape(s1Gender)
										+ "&s1age=" + escape(s1age)

										+ "&s1Instrument=" + escape(s1Instrument)
										+ "&s1BookNum=" + escape(s1BookNum)
										+ "&s1CurPiece=" + escape(s1CurPiece)
										+ "&s1class=" + escape(s1class)
										+ "&s1SuzukiTeacher=" + escape(s1SuzukiTeacher)
										+ "&s1ReadMusic=" + escape(s1ReadMusic)
										+ "&s1Ensemble=" + escape(s1Ensemble)
										+ "&s1EnsembleName=" + escape(s1EnsembleName)										
										+ "&regFeeCount=" + escape(regFeeCount)
										+ "&regFee=" + escape(regFee)
										+ "&lateFeeCount=" + escape(lateFeeCount)
										+ "&lateFee=" + escape(lateFee)
										+ "&book13Count=" + escape(book13Count)
										+ "&book13=" + escape(book13)
										+ "&book14Count=" + escape(book14Count)
										+ "&book14=" + escape(book14)
										+ "&book6Count=" + escape(book6Count)
										+ "&book6=" + escape(book6)
										+ "&eurhythmicsCount =" + escape(eurhythmicsCount)
										+ "&eurhythmics =" + escape(eurhythmics)
										+ "&bluegrassCount=" + escape(bluegrassCount)
										+ "&bluegrass=" + escape(bluegrass)
										+ "&irishCount=" + escape(irishCount)
										+ "&irish=" + escape(irish)
										+ "&eccCount=" + escape(eccCount)
										+ "&ecc=" + escape(ecc)
										+ "&eccV1Count=" + escape(eccV1Count)
										+ "&eccV1=" + escape(eccV1)
										+ "&G1Count=" + escape(G1Count)
										+ "&G1=" + escape(G1)
										+ "&C4Count=" + escape(C4Count)
										+ "&C4=" + escape(C4)
										+ "&stttV1Count =" + escape(stttV1Count)
										+ "&stttV1 =" + escape(stttV1)
										+ "&stttV234Count=" + escape(stttV234Count)
										+ "&stttV234=" + escape(stttV234)
										+ "&observerCount=" + escape(observerCount)
										+ "&observer=" + escape(observer)
										+ "&tradAdultSmCount=" + escape(tradAdultSmCount)
										+ "&tradAdultMedCount=" + escape(tradAdultMedCount)
										+ "&tradAdultLgCount=" + escape(tradAdultLgCount)
										+ "&tradAdultXLCount=" + escape(tradAdultXLCount)
										+ "&tradChildSmCount=" + escape(tradChildSmCount)
										+ "&tradChildMedCount=" + escape(tradChildMedCount)
										+ "&tradChildLgCount=" + escape(tradChildLgCount)
										+ "&tradTshirtCount=" + escape(tradTshirtCount)
										+ "&tradTAmount=" + escape(tradTAmount)
										//+ "&capAdultSmCount=" + escape(capAdultSmCount)
										//+ "&capAdultMedCount=" + escape(capAdultMedCount)
										//+ "&capAdultLgCount=" + escape(capAdultLgCount)
										//+ "&capTshirtCount=" + escape(capTshirtCount)
										//+ "&capTAmount=" + escape(capTAmount)
										+ "&famChorusCount=" + escape(famChorusCount)
										+ "&famChorus=" + escape(famChorus)
										+ "&scholarship=" + escape(scholarship)
										+ "&grandTotal=" + escape(grandTotal)
										+ "&eccCheck=" + escape(eccCheck)
										+ "&g1Participant=" + escape(g1Participant)
										+ "&g1Auditor=" + escape(g1Auditor)

										+ "&c4Participant=" + escape(c4Participant)
										+ "&c4Auditor=" + escape(c4Auditor)

										+ "&v1Participant=" + escape(v1Participant)
										+ "&v1Auditor=" + escape(v1Auditor)
										+ "&v2Participant=" + escape(v2Participant)
										+ "&v2Auditor=" + escape(v2Auditor)
										+ "&v3Participant=" + escape(v3Participant)
										+ "&v3Auditor=" + escape(v3Auditor)
										+ "&v4Participant=" + escape(v4Participant)
										+ "&v4Auditor=" + escape(v4Auditor)
										+ "&saaMembership=" + escape(saaMembership)
										+ "&expirationDate=" + escape(expirationDate)
										+ "&notAMember=" + escape(notAMember);

			if (numStudents >=2)
			{
				url += "&s2Name=" + escape(s2Name)
										+ "&s2Gender=" + escape(s2Gender)
										+ "&s2age=" + escape(s2age)

										+ "&s2Instrument=" + escape(s2Instrument)
										+ "&s2BookNum=" + escape(s2BookNum)
										+ "&s2CurPiece=" + escape(s2CurPiece)
										+ "&s2class=" + escape(s2class)
										+ "&s2SuzukiTeacher=" + escape(s2SuzukiTeacher)
										+ "&s2ReadMusic=" + escape(s2ReadMusic)
										+ "&s2Ensemble=" + escape(s2Ensemble)
										+ "&s2EnsembleName=" + escape(s2EnsembleName)
			}
			if (numStudents >=3)
			{
				url += "&s3Name=" + escape(s3Name)
										+ "&s3Gender=" + escape(s3Gender)
										+ "&s3age=" + escape(s3age)

										+ "&s3Instrument=" + escape(s3Instrument)
										+ "&s3BookNum=" + escape(s3BookNum)
										+ "&s3CurPiece=" + escape(s3CurPiece)
										+ "&s3class=" + escape(s3class)
										+ "&s3SuzukiTeacher=" + escape(s3SuzukiTeacher)
										+ "&s3ReadMusic=" + escape(s3ReadMusic)
										+ "&s3Ensemble=" + escape(s3Ensemble)
										+ "&s3EnsembleName=" + escape(s3EnsembleName)
			}
			if (numStudents >=4)
			{
				url += "&s4Name=" + escape(s4Name)
										+ "&s4Gender=" + escape(s4Gender)
										+ "&s4age=" + escape(s4age)

										+ "&s4Instrument=" + escape(s4Instrument)
										+ "&s4BookNum=" + escape(s4BookNum)
										+ "&s4CurPiece=" + escape(s4CurPiece)
										+ "&s4class=" + escape(s4class)
										+ "&s4SuzukiTeacher=" + escape(s4SuzukiTeacher)
										+ "&s4ReadMusic=" + escape(s4ReadMusic)
										+ "&s4Ensemble=" + escape(s4Ensemble)
										+ "&s4EnsembleName=" + escape(s4EnsembleName)
			}
			request.open("GET", url, true);
			// request.onreadystatechange = updatePage;
			 request.send(null);
	}
	   
   }

