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.graph60largeqty.selectedIndex)*580;
	}


	if (document.getElementById("CheckboxGroup4_5").checked == true)
	{
		num = num + parseFloat(document.form1.graphparent602.selectedIndex)*150;
	}
	
	
	if (document.getElementById("rose1").checked == true)
	{
		num = num + parseFloat(document.form1.rose1qty.selectedIndex)*160;
	}
	if (document.getElementById("rose2").checked == true)
	{
		num = num + parseFloat(document.form1.rose2qty.selectedIndex)*140;
	}
	if (document.getElementById("rose3").checked == true)
	{
		num = num + parseFloat(document.form1.rose3qty.selectedIndex)*170;
	}

	if (document.getElementById("taj1").checked == true)
	{
		num = num + parseFloat(document.form1.taj1qty.selectedIndex)*300;
	}
	if (document.getElementById("taj2").checked == true)
	{
		num = num + parseFloat(document.form1.taj2qty.selectedIndex)*240;
	}
	if (document.getElementById("taj3").checked == true)
	{
		num = num + parseFloat(document.form1.taj3qty.selectedIndex)*200;
	}
	if (document.getElementById("taj4").checked == true)
	{
		num = num + parseFloat(document.form1.taj4qty.selectedIndex)*260;
	}

	if (document.getElementById("marco1").checked == true)
	{
		num = num + parseFloat(document.form1.marco1qty.selectedIndex)*300;
	}
	if (document.getElementById("marco2").checked == true)
	{
		num = num + parseFloat(document.form1.marco2qty.selectedIndex)*240;
	}
	if (document.getElementById("marco3").checked == true)
	{
		num = num + parseFloat(document.form1.marco3qty.selectedIndex)*200;
	}
	if (document.getElementById("marco4").checked == true)
	{
		num = num + parseFloat(document.form1.marco4qty.selectedIndex)*260;
	}

	if (document.getElementById("celia1").checked == true)
	{
		num = num + parseFloat(document.form1.celia1qty.selectedIndex)*400;
	}
	if (document.getElementById("celia2").checked == true)
	{
		num = num + parseFloat(document.form1.celia2qty.selectedIndex)*300;
	}
	if (document.getElementById("celia3").checked == true)
	{
		num = num + parseFloat(document.form1.celia3qty.selectedIndex)*300;
	}
	if (document.getElementById("celia4").checked == true)
	{
		num = num + parseFloat(document.form1.celia4qty.selectedIndex)*360;
	}

	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;
		}
	}
}

