
function CalTotalCost(cdate)
{
	var exhibitchoice;
	exhibitchoice = form1.elements['ExhibitChoice'];

	if(document.form1.boothspace_multi_inline_booth.value == "")
	{ document.form1.boothspace_multi_inline_booth.value = 0 }
	else
	{ var intnobooths = parseInt(document.form1.boothspace_multi_inline_booth.value) }
	
	if(document.form1.boothspace_end_cap.value == "")
	{ document.form1.boothspace_end_cap.value = 0 }
	else
	{ var intnobooths = parseInt(document.form1.boothspace_end_cap.value) }
	
	/*if(document.form1.boothspace_L_shaped.value == "")
	{ document.form1.boothspace_L_shaped.value = 0 }
	else
	{ var intnobooths = parseInt(document.form1.boothspace_L_shaped.value) }*/
	
	if(document.form1.boothspace_split_island.value == "")
	{ document.form1.boothspace_split_island.value = 0 }
	else
	{ var intnobooths = parseInt(document.form1.boothspace_split_island.value) }
	
	if(document.form1.boothspace_island.value == "")
	{ document.form1.boothspace_island.value = 0 }
	else
	{ var intnobooths = parseInt(document.form1.boothspace_island.value) }
	
	// by default disable all Exhibit Choices and then activate only the one that is selected
	document.form1.ShareBoothWith.disabled = true;
	document.form1.boothspace_multi_inline_booth.disabled = true;
	document.form1.boothspace_end_cap.disabled = true;
	//document.form1.boothspace_L_shaped.disabled = true;
	document.form1.boothspace_split_island.disabled = true;
	document.form1.boothspace_island.disabled = true;
	document.form1.islandwidth.disabled = true;
	document.form1.islandlength.disabled = true;
	document.form1.islandarea.disabled = true;	
	
	var dtCDate = new Date(cdate);
	var dtEBDate = new Date("October 10, 2009"); //2010 version using the date to determine price 
	var dtNRDate = new Date("August 1, 2010");
	var unitPrice = 0
	var intnobooths = 0 
	var configFee = 0
	
	
//************First row of total cost table
	if(exhibitchoice[0].checked) // Shared Booth
	{
		document.form1.ShareBoothWith.disabled = false;
		document.form1.boothspace_multi_inline_booth.value = 0;
		document.form1.boothspace_end_cap.value = 0;
		//document.form1.boothspace_L_shaped.value = 0;
		document.form1.boothspace_split_island.value = 0;
		document.form1.boothspace_island.value = 0;
		document.form1.islandwidth.value = 0;
		document.form1.islandlength.value = 0;
		document.form1.islandarea.value = 0;

		var sharedBoothID = document.form1.ShareBoothWith.value
		intnobooths = parseInt(document.getElementById("ex"+sharedBoothID).value)
		
		if(intnobooths >= 1 && intnobooths <= 5)
		{
			unitPrice = 300
		}
		else if(intnobooths >= 6 && intnobooths <= 9)
		{
			unitPrice = 600
		}
		else if(intnobooths >= 10)
		{
			unitPrice = 900
		}
		//Calculate Early Bird discount, Total Cost, Minimum Deposit
		var Total, Deposit
		var earlyBird = document.getElementById('CostSummary').rows[8].cells
		Total = (unitPrice + configFee + 169)
		Deposit = (unitPrice + configFee + 169) * 1
		Deposit = Deposit.toFixed(2)
		
		document.form1.boothprice.value = unitPrice
		document.form1.tboothprice.value = unitPrice
		document.form1.TotalCost.value = Total
		document.form1.MinDeposit.value = Deposit
		document.form1.configurationfee.value = configFee
		
		
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>$0</font>"
		
		var TotalC = document.getElementById('CostSummary').rows[9].cells
		TotalC[1].innerHTML = "<FONT face='arial' size='2'>$" + Total + "</font>"
		
		var deposit = document.getElementById('CostSummary').rows[10].cells
		deposit[1].innerHTML = "<FONT face='arial' size='2'>$" + Deposit + "</font>"
	}
	//Set the cost of Shared Booth if selected
	var totalcost = document.getElementById('CostSummary').rows[1].cells
	totalcost[1].innerHTML = "<FONT face='arial' size='2'>$" + unitPrice + "</font>"
	
	
//************Second row of total cost table
	unitPrice = 0
	intnobooths = 0 
	configFee = 0
	if(exhibitchoice[1].checked) // Single Booth
	{
		document.form1.ShareBoothWith.value = 0;
		document.form1.boothspace_multi_inline_booth.value = 0;
		document.form1.boothspace_end_cap.value = 0;
		//document.form1.boothspace_L_shaped.value = 0;
		document.form1.boothspace_split_island.value = 0;
		document.form1.boothspace_island.value = 0;
		document.form1.islandwidth.value = 0;
		document.form1.islandlength.value = 0;
		document.form1.islandarea.value = 0;
		
		intnobooths = 1
		if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
		{
			unitPrice = 1400
		}
		else if(dtCDate >= dtNRDate)
		{
			//unitPrice = 1500
			unitPrice = 1800
		}
		else
		{
			unitPrice = 1600
		}
		//Calculate Early Bird discount, Total Cost, Minimum Deposit
		var Total, Deposit
		var earlyBird = document.getElementById('CostSummary').rows[8].cells
		
		if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Early Bird Discount</font>"
		earlyBird[1].innerHTML = "<FONT color=#FF0000' face='arial' size='2'>($" + intnobooths * 100 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) - (intnobooths * 100)
		}
		/*else if(dtCDate >= dtNRDate)
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Late Fee</font>"
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>($" + intnobooths * 200 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) + (intnobooths * 200)
		}*/
		else
		{
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>$0</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169)
		}
		Deposit = Total * 0.5
		
		document.form1.TotalCost.value = Total
		document.form1.MinDeposit.value = Deposit.toFixed(2)
		
		var TotalC = document.getElementById('CostSummary').rows[9].cells
		TotalC[1].innerHTML = "<FONT face='arial' size='2'>$" + Total + "</font>"
		
		var deposit = document.getElementById('CostSummary').rows[10].cells
		deposit[1].innerHTML = "<FONT face='arial' size='2'>$" + Deposit.toFixed(2) + "</font>"
	}
	//Set the cost of Single Booth if selected
	var totalcost2 = document.getElementById('CostSummary').rows[2].cells
	totalcost2[1].innerHTML = "<FONT face='arial' size='2'>$" + unitPrice + "</font>"
	
	
//************Third row of total cost table
	unitPrice = 0
	intnobooths = 0 
	configFee = 0
	if(exhibitchoice[2].checked) // Multiple In-Line Exhibit Booths
	{
		document.form1.boothspace_multi_inline_booth.disabled = false;
		document.form1.ShareBoothWith.value = 0;
		document.form1.boothspace_end_cap.value = 0;
		//document.form1.boothspace_L_shaped.value = 0;
		document.form1.boothspace_split_island.value = 0;
		document.form1.boothspace_island.value = 0;
		document.form1.islandwidth.value = 0;
		document.form1.islandlength.value = 0;
		document.form1.islandarea.value = 0;
		
		intnobooths = parseInt(document.form1.boothspace_multi_inline_booth.value)
		
		if(intnobooths >= 1 && intnobooths <= 5)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1400
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1800
			}
			else
			{
			unitPrice = 1600
			}
		}
		else if(intnobooths >= 6 && intnobooths <= 9)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1300
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1700
			}
			else
			{
			unitPrice = 1500
			}

		}
		else if(intnobooths >= 10)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1200
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1600
			}
			else
			{
			unitPrice = 1400
			}

		}
		//Calculate Early Bird discount, Total Cost, Minimum Deposit
		var Total, Deposit
		var earlyBird = document.getElementById('CostSummary').rows[8].cells
		
		if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Early Bird Discount</font>"
		earlyBird[1].innerHTML = "<FONT color=#FF0000' face='arial' size='2'>($" + intnobooths * 100 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) - (intnobooths * 100)
		}
		/*else if(dtCDate >= dtNRDate)
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Late Fee</font>"
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>($" + intnobooths * 200 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) + (intnobooths * 200)
		}*/
		else
		{
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>$0</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169)
		}
		Deposit = Total * 0.5
		
		document.form1.boothprice.value = unitPrice
		document.form1.tboothprice.value = intnobooths * unitPrice
		document.form1.TotalCost.value = Total
		document.form1.MinDeposit.value = Deposit.toFixed(2)
		document.form1.configurationfee.value = configFee
		
		var TotalC = document.getElementById('CostSummary').rows[9].cells
		TotalC[1].innerHTML = "<FONT face='arial' size='2'>$" + Total + "</font>"
		
		var deposit = document.getElementById('CostSummary').rows[10].cells
		deposit[1].innerHTML = "<FONT face='arial' size='2'>$" + Deposit.toFixed(2) + "</font>"
	}
	//Set the cost of Multiple In-Line Exhibit Booths if selected
	var totalqty3 = document.getElementById('CostSummary').rows[3].cells
	totalqty3[1].innerHTML = "<FONT face='arial' size='2'>" + intnobooths + "</font>"
	
	var totalunit3 = document.getElementById('CostSummary').rows[3].cells
	totalunit3[2].innerHTML = "<FONT face='arial' size='2'>$" + unitPrice + "</font>"
	
	var totalfee3 = document.getElementById('CostSummary').rows[3].cells
	totalfee3[3].innerHTML = "<FONT face='arial' size='2'>$0</font>"
	
	var totalcost3 = document.getElementById('CostSummary').rows[3].cells
	totalcost3[4].innerHTML = "<FONT face='arial' size='2'>$" + intnobooths * unitPrice + "</font>"
	
	
	
//************Fourth row of total cost table
	unitPrice = 0
	intnobooths = 0 
	configFee = 0
	if(exhibitchoice[3].checked) // End Cap/Peninsula Booths
	{
		
		document.form1.boothspace_end_cap.disabled = false;
		document.form1.ShareBoothWith.value = 0;
		document.form1.boothspace_multi_inline_booth.value = 0;
		//document.form1.boothspace_L_shaped.value = 0;
		document.form1.boothspace_split_island.value = 0;
		document.form1.boothspace_island.value = 0;
		document.form1.islandwidth.value = 0;
		document.form1.islandlength.value = 0;
		document.form1.islandarea.value = 0;

		intnobooths = parseInt(document.form1.boothspace_end_cap.value)
		configFee = 800
		
		if(intnobooths >= 1 && intnobooths <= 5)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1400
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1800
			}
			else
			{
			unitPrice = 1600
			}
		}
		else if(intnobooths >= 6 && intnobooths <= 9)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1300
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1700
			}
			else
			{
			unitPrice = 1500
			}

		}
		else if(intnobooths >= 10)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1200
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1600
			}
			else
			{
			unitPrice = 1400
			}

		}
		//Calculate Early Bird discount, Total Cost, Minimum Deposit
		var Total, Deposit
		var earlyBird = document.getElementById('CostSummary').rows[8].cells
		
		if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Early Bird Discount</font>"
		earlyBird[1].innerHTML = "<FONT color=#FF0000' face='arial' size='2'>($" + intnobooths * 100 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) - (intnobooths * 100)
		}
		/*else if(dtCDate >= dtNRDate)
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Late Fee</font>"
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>($" + intnobooths * 200 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) + (intnobooths * 200)
		}*/
		else
		{
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>$0</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169)
		}
		Deposit = Total * 0.5
		
		document.form1.boothprice.value = unitPrice
		document.form1.tboothprice.value = intnobooths * unitPrice
		document.form1.TotalCost.value = Total
		document.form1.MinDeposit.value = Deposit.toFixed(2)
		document.form1.configurationfee.value = configFee
		
		var TotalC = document.getElementById('CostSummary').rows[9].cells
		TotalC[1].innerHTML = "<FONT face='arial' size='2'>$" + Total + "</font>"
		
		var deposit = document.getElementById('CostSummary').rows[10].cells
		deposit[1].innerHTML = "<FONT face='arial' size='2'>$" + Deposit.toFixed(2) + "</font>"
	}
	//Set the cost of End Cap/Peninsula Booths if selected
	var totalqty4 = document.getElementById('CostSummary').rows[4].cells
	totalqty4[1].innerHTML = "<FONT face='arial' size='2'>" + intnobooths + "</font>"
	
	var totalunit4 = document.getElementById('CostSummary').rows[4].cells
	totalunit4[2].innerHTML = "<FONT face='arial' size='2'>$" + unitPrice + "</font>"
	
	var totalfee4 = document.getElementById('CostSummary').rows[4].cells
	totalfee4[3].innerHTML = "<FONT face='arial' size='2'>$" + configFee + "</font>"
	
	var totalcost4 = document.getElementById('CostSummary').rows[4].cells
	totalcost4[4].innerHTML = "<FONT face='arial' size='2'>$" + ((intnobooths * unitPrice) + configFee)+ "</font>"	
	
	
//************Fifth row of total cost table
	/*unitPrice = 0
	intnobooths = 0 
	configFee = 0
	if(exhibitchoice[4].checked) // L-Shaped End Cap/Peninsula Booths
	{
		
		//document.form1.boothspace_L_shaped.disabled = false;
		document.form1.ShareBoothWith.value = 0;
		document.form1.boothspace_multi_inline_booth.value = 0;
		document.form1.boothspace_end_cap.value = 0;
		document.form1.boothspace_split_island.value = 0;
		document.form1.boothspace_island.value = 0;
		document.form1.islandwidth.value = 0;
		document.form1.islandlength.value = 0;
		document.form1.islandarea.value = 0;
	
		//intnobooths = parseInt(document.form1.boothspace_L_shaped.value)
		configFee = 950
		
		if(intnobooths >= 1 && intnobooths <= 5)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1400
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1800
			}
			else
			{
			unitPrice = 1600
			}
		}
		else if(intnobooths >= 6 && intnobooths <= 9)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1300
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1700
			}
			else
			{
			unitPrice = 1500
			}

		}
		else if(intnobooths >= 10)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1200
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1600
			}
			else
			{
			unitPrice = 1400
			}

		}
		//Calculate Early Bird discount, Total Cost, Minimum Deposit
		var Total, Deposit
		var earlyBird = document.getElementById('CostSummary').rows[9].cells
		
		if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Early Bird Discount</font>"
		earlyBird[1].innerHTML = "<FONT color=#FF0000' face='arial' size='2'>($" + intnobooths * 100 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) - (intnobooths * 100)
		}
		//else if(dtCDate >= dtNRDate)
		//{
		//earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Late Fee</font>"
		//earlyBird[1].innerHTML = "<FONT face='arial' size='2'>($" + intnobooths * 200 + ")</font>"
		//Total = ((intnobooths * unitPrice) + configFee + 169) + (intnobooths * 200)
		//}
		else
		{
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>$0</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169)
		}
		Deposit = Total * 0.5
		
		document.form1.boothprice.value = unitPrice
		document.form1.tboothprice.value = intnobooths * unitPrice
		document.form1.TotalCost.value = Total
		document.form1.MinDeposit.value = Deposit.toFixed(2)
		document.form1.configurationfee.value = configFee
		
		var TotalC = document.getElementById('CostSummary').rows[10].cells
		TotalC[1].innerHTML = "<FONT face='arial' size='2'>$" + Total + "</font>"
		
		var deposit = document.getElementById('CostSummary').rows[11].cells
		deposit[1].innerHTML = "<FONT face='arial' size='2'>$" + Deposit.toFixed(2) + "</font>"
	}
	//Set the cost of L-Shaped End Cap/Peninsula Booths if selected
	var totalqty5 = document.getElementById('CostSummary').rows[5].cells
	totalqty5[1].innerHTML = "<FONT face='arial' size='2'>" + intnobooths + "</font>"
	
	var totalunit5 = document.getElementById('CostSummary').rows[5].cells
	totalunit5[2].innerHTML = "<FONT face='arial' size='2'>$" + unitPrice + "</font>"
	
	var totalfee5 = document.getElementById('CostSummary').rows[5].cells
	totalfee5[3].innerHTML = "<FONT face='arial' size='2'>$" + configFee + "</font>"
	
	var totalcost5 = document.getElementById('CostSummary').rows[5].cells
	totalcost5[4].innerHTML = "<FONT face='arial' size='2'>$" + ((intnobooths * unitPrice) + configFee)+ "</font>"	
	*/
	
//************Sixth row of total cost table
	unitPrice = 0
	intnobooths = 0 
	configFee = 0
	if(exhibitchoice[4].checked) // Split Island Booths
	{
		
		document.form1.boothspace_split_island.disabled = false;
		document.form1.ShareBoothWith.value = 0;
		document.form1.boothspace_multi_inline_booth.value = 0;
		document.form1.boothspace_end_cap.value = 0;
		//document.form1.boothspace_L_shaped.value = 0;
		document.form1.boothspace_island.value = 0;
		document.form1.islandwidth.value = 0;
		document.form1.islandlength.value = 0;
		document.form1.islandarea.value = 0;
	
		intnobooths = parseInt(document.form1.boothspace_split_island.value)
		configFee = 1500
		
		if(intnobooths >= 1 && intnobooths <= 5)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1400
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1800
			}
			else
			{
			unitPrice = 1600
			}
		}
		else if(intnobooths >= 6 && intnobooths <= 9)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1300
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1700
			}
			else
			{
			unitPrice = 1500
			}

		}
		else if(intnobooths >= 10)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1200
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1600
			}
			else
			{
			unitPrice = 1400
			}

		}
		//Calculate Early Bird discount, Total Cost, Minimum Deposit
		var Total, Deposit
		var earlyBird = document.getElementById('CostSummary').rows[8].cells
		
		if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Early Bird Discount</font>"
		earlyBird[1].innerHTML = "<FONT color=#FF0000' face='arial' size='2'>($" + intnobooths * 100 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) - (intnobooths * 100)
		}
		/*else if(dtCDate >= dtNRDate)
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Late Fee</font>"
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>($" + intnobooths * 200 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) + (intnobooths * 200)
		}*/
		else
		{
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>$0</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169)
		}
		Deposit = Total * 0.5
		
		document.form1.boothprice.value = unitPrice
		document.form1.tboothprice.value = intnobooths * unitPrice
		document.form1.TotalCost.value = Total
		document.form1.MinDeposit.value = Deposit.toFixed(2)
		document.form1.configurationfee.value = configFee
		
		var TotalC = document.getElementById('CostSummary').rows[9].cells
		TotalC[1].innerHTML = "<FONT face='arial' size='2'>$" + Total + "</font>"
		
		var deposit = document.getElementById('CostSummary').rows[10].cells
		deposit[1].innerHTML = "<FONT face='arial' size='2'>$" + Deposit.toFixed(2) + "</font>"
	}
	//Set the cost of Split Island Booths if selected
	var totalqty6 = document.getElementById('CostSummary').rows[5].cells
	totalqty6[1].innerHTML = "<FONT face='arial' size='2'>" + intnobooths + "</font>"
	
	var totalunit6 = document.getElementById('CostSummary').rows[5].cells
	totalunit6[2].innerHTML = "<FONT face='arial' size='2'>$" + unitPrice + "</font>"
	
	var totalfee6 = document.getElementById('CostSummary').rows[5].cells
	totalfee6[3].innerHTML = "<FONT face='arial' size='2'>$" + configFee + "</font>"
	
	var totalcost6 = document.getElementById('CostSummary').rows[5].cells
	totalcost6[4].innerHTML = "<FONT face='arial' size='2'>$" + ((intnobooths * unitPrice) + configFee)+ "</font>"	
	
//************Seventh row of total cost table
	unitPrice = 0
	intnobooths = 0 
	configFee = 0
	if(exhibitchoice[5].checked) // Island Booths
	{
		document.form1.boothspace_island.disabled = false;
		document.form1.islandwidth.disabled = false;
		document.form1.islandlength.disabled = false;
		document.form1.islandarea.disabled = false;
		document.form1.ShareBoothWith.value = 0;
		document.form1.boothspace_multi_inline_booth.value = 0;
		document.form1.boothspace_end_cap.value = 0;
		//document.form1.boothspace_L_shaped.value = 0;
		document.form1.boothspace_split_island.value = 0;
	
		intnobooths = parseInt(document.form1.boothspace_island.value)
		configFee = 2000
		
		if(intnobooths >= 1 && intnobooths <= 5)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1400
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1800
			}
			else
			{
			unitPrice = 1600
			}
		}
		else if(intnobooths >= 6 && intnobooths <= 9)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1300
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1700
			}
			else
			{
			unitPrice = 1500
			}

		}
		else if(intnobooths >= 10)
		{
			if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
			{
			unitPrice = 1200
			}
			else if(dtCDate >= dtNRDate)
			{
			//unitPrice = 1500
			unitPrice = 1600
			}
			else
			{
			unitPrice = 1400
			}

		}		
		
		document.form1.islandarea.value = intnobooths * 100
		//Calculate Early Bird discount, Total Cost, Minimum Deposit
		var Total, Deposit
		var earlyBird = document.getElementById('CostSummary').rows[8].cells
		
		if(dtCDate <= dtEBDate)  //2009 version using the date to determine price
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Early Bird Discount</font>"
		earlyBird[1].innerHTML = "<FONT color=#FF0000' face='arial' size='2'>($" + intnobooths * 100 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) - (intnobooths * 100)
		}
		/*else if(dtCDate >= dtNRDate)
		{
		earlyBird[0].innerHTML = "<FONT face='arial' size='2' align='right'>Late Fee</font>"
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>($" + intnobooths * 200 + ")</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169) + (intnobooths * 200)
		}*/
		else
		{
		earlyBird[1].innerHTML = "<FONT face='arial' size='2'>$0</font>"
		Total = ((intnobooths * unitPrice) + configFee + 169)
		}
		Deposit = Total * 0.5
		
		document.form1.boothprice.value = unitPrice
		document.form1.tboothprice.value = intnobooths * unitPrice
		document.form1.TotalCost.value = Total
		document.form1.MinDeposit.value = Deposit.toFixed(2)
		document.form1.configurationfee.value = configFee
		
		var TotalC = document.getElementById('CostSummary').rows[9].cells
		TotalC[1].innerHTML = "<FONT face='arial' size='2'>$" + Total + "</font>"
		
		var deposit = document.getElementById('CostSummary').rows[10].cells
		deposit[1].innerHTML = "<FONT face='arial' size='2'>$" + Deposit.toFixed(2) + "</font>"
	}
	//Set the cost of Island Booths if selected
	var totalqty7 = document.getElementById('CostSummary').rows[6].cells
	totalqty7[1].innerHTML = "<FONT face='arial' size='2'>" + intnobooths + "</font>"
	
	var totalunit7 = document.getElementById('CostSummary').rows[6].cells
	totalunit7[2].innerHTML = "<FONT face='arial' size='2'>$" + unitPrice + "</font>"
	
	var totalfee7 = document.getElementById('CostSummary').rows[6].cells
	totalfee7[3].innerHTML = "<FONT face='arial' size='2'>$" + configFee + "</font>"
	
	var totalcost7 = document.getElementById('CostSummary').rows[6].cells
	totalcost7[4].innerHTML = "<FONT face='arial' size='2'>$" + ((intnobooths * unitPrice) + configFee)+ "</font>"	
	
	
}	