function calculate()
{
	document.form1.totalcost.value="";
	var num = 400;
	var longcode;
	longcode = "";
	if (document.getElementById("prewedding").checked == true)
	{
		num = num + 100;
	}
	if (document.getElementById("reception").checked == true)
	{
		num = num + 100;
	}
	if (document.getElementById("slideshow").checked == true)
	{
		num = num + 100;
	}
	if (document.getElementById("additionalslideshow").checked == true)
	{
		num = num + parseFloat(document.form1.additionalslideshowqty.selectedIndex)*20;
	}
	if (document.getElementById("copyright").checked == true)
	{
		num = num + 100;
	}
	if (document.getElementById("prints1").checked == true)
	{
		num = num + parseFloat(document.form1.prints1qty.selectedIndex)*50;
	}
	if (document.getElementById("prints2").checked == true)
	{
		num = num + parseFloat(document.form1.prints2qty.selectedIndex)*50;
	}
	if (document.getElementById("prints3").checked == true)
	{
		num = num + parseFloat(document.form1.prints3qty.selectedIndex)*30;
	}
	if (document.getElementById("prints4").checked == true)
	{
		num = num + parseFloat(document.form1.prints4qty.selectedIndex)*20;
	}
	if (document.getElementById("CheckboxGroup1_0").checked == true)
	{
		num = num + parseFloat(document.form1.standard80qty.selectedIndex)*100;
	}
	if (document.getElementById("CheckboxGroup1_1").checked == true)
	{
		num = num + parseFloat(document.form1.standard120qty.selectedIndex)*120;
	}
	if (document.getElementById("CheckboxGroup1_2").checked == true)
	{
		num = num + parseFloat(document.form1.large80qty.selectedIndex)*140;
	}
	if (document.getElementById("CheckboxGroup1_3").checked == true)
	{
		num = num + parseFloat(document.form1.large120qty.selectedIndex)*180;
	}
	if (document.getElementById("CheckboxGroup1_4").checked == true)
	{
		num = num + parseFloat(document.form1.parent80qty.selectedIndex)*60;
	}
	if (document.getElementById("CheckboxGroup1_5").checked == true)
	{
		num = num + parseFloat(document.form1.parent120qty.selectedIndex)*80;
	}
	
	
	
	if (document.getElementById("CheckboxGroup3_5").checked == true)
	{
		num = num + parseFloat(document.form1.graph60largeqty1.selectedIndex)*480;
	}
	if (document.getElementById("CheckboxGroup3_6").checked == true)
	{
		num = num + parseFloat(document.form1.graph60largeqty2.selectedIndex)*580;
	}



	if (document.getElementById("CheckboxGroup4_5").checked == true)
	{
		num = num + parseFloat(document.form1.graphparent602.selectedIndex)*150;
	}
	
	

	document.form1.totalcost.value = num;
}


function check(chbox,qtybox,val)
{
	if (document.getElementById(chbox).checked == true)
	{	
		document.getElementById(qtybox).disabled=false;
		document.getElementById(qtybox).selectedIndex=1;
	}
	else
	{
		document.getElementById(qtybox).selectedIndex=0;
		document.getElementById(qtybox).disabled=true;
	}
}

function checkSlide()
{
	if (document.getElementById("slideshow").checked == true)
	{
		document.form1.additionalslideshow.disabled = false;
	}
	else
	{
		document.form1.additionalslideshowqty.selectedIndex=0;
		document.form1.additionalslideshowqty.disabled=true;
		document.form1.additionalslideshow.disabled = true;

		if (document.getElementById('additionalslideshow').checked == true)
		{
			document.form1.additionalslideshow.checked=false;
		}
	}
}


