// JavaScript Document

function CalculatePartOne()
{
var Value1 = document.getElementById("numberPrints1").value;
//alert(document.downloadForm.numberPrints1.value);
if (Value1 > 1 && Value1 < 25)
{
newvalue1 = Value1 * 0.59;
}
if (Value1 > 26 && Value1 < 200)
{
newvalue1 = Value1 * 0.39;
}
if (Value1 > 200)
{
newvalue1 = Value1 * 0.29;
}
}

function Calculatecd2()
{
if (document.getElementById("CDRequired1").value = "Yes")
{
	total = newvalue1 + 9.95;
	total=Math.round(total);
	document.getElementById("subtotal1").value = total;
//	window.downloadForm.subtotal1.value = total;
}
}

function Calculatecd1()
{
if (document.getElementById("CDRequired1").value = "No")
{
	total = newvalue1;
	total=Math.round(total);
	document.getElementById("subtotal1").value = total;
//	window.downloadForm.subtotal1.value = total;
}
}

//2nd
function CalculatePartTwo()
{
var Value2 = window.document.downloadForm.numberPrints2.value;
//alert(document.downloadForm.numberPrints1.value);
if (Value2 > 1 && Value2 < 25)
{
newvalue2 = Value2 * 0.59;
}
if (Value2 > 26 && Value2 < 200)
{
newvalue2 = Value2 * 0.39;
}
if (Value2 > 200)
{
newvalue2 = Value2 * 0.29;
}
}

function Calculatecd22()
{
if (window.document.downloadForm.CDRequired2.value = "Yes")
{
	total2 = newvalue2 + 9.95;
	total2=Math.round(total2);
	window.downloadForm.subtotal2.value = total2;
}
}

function Calculatecd12()
{
if (window.document.downloadForm.CDRequired2.value = "No")
{
	total2 = newvalue2;
	total2=Math.round(total2);
	window.downloadForm.subtotal2.value = total2;
}
}

//3rd
function CalculatePartThree()
{
var Value3 = window.document.downloadForm.numberPrints3.value;
//alert(document.downloadForm.numberPrints1.value);
if (Value3 > 1 && Value3 < 25)
{
newvalue3 = Value3 * 0.59;
}
if (Value3 > 26 && Value3 < 200)
{
newvalue3 = Value3 * 0.39;
}
if (Value3 > 200)
{
newvalue3 = Value3 * 0.29;
}
}

function Calculatecd23()
{
if (window.document.downloadForm.CDRequired3.value = "Yes")
{
	total3 = newvalue3 + 9.95;
	total3=Math.round(total3);
	window.downloadForm.subtotal3.value = total3;
}
}

function Calculatecd13()
{
if (window.document.downloadForm.CDRequired3.value = "No")
{
	total3 = newvalue3;
	total3=Math.round(total3);
	window.downloadForm.subtotal3.value = total3;
}
}

//4th
function CalculatePartFour()
{
var Value4 = window.document.downloadForm.numberPrints4.value;
//alert(document.downloadForm.numberPrints1.value);
if (Value4 > 1 && Value4 < 25)
{
newvalue4 = Value4 * 0.59;
}
if (Value4 > 26 && Value4 < 200)
{
newvalue4 = Value4 * 0.39;
}
if (Value4 > 200)
{
newvalue4 = Value4 * 0.29;
}
}

function Calculatecd24()
{
if (window.document.downloadForm.CDRequired4.value = "Yes")
{
	total4 = newvalue4 + 9.95;
	total4=Math.round(total4);
	window.downloadForm.subtotal4.value = total4;
}
}

function Calculatecd14()
{
if (window.document.downloadForm.CDRequired4.value = "No")
{
	total4 = newvalue4;
	total4=Math.round(total4);
	window.downloadForm.subtotal4.value = total4;
}
}

//5th
function CalculatePartFive()
{
var Value5 = window.document.downloadForm.numberPrints5.value;
//alert(document.downloadForm.numberPrints1.value);
if (Value5 > 1 && Value5 < 25)
{
newvalue5 = Value5 * 0.59;
}
if (Value5 > 26 && Value5 < 200)
{
newvalue5 = Value5 * 0.39;
}
if (Value5 > 200)
{
newvalue5 = Value5 * 0.29;
}
}

function Calculatecd25()
{
if (window.document.downloadForm.CDRequired5.value = "Yes")
{
	total5 = newvalue5 + 9.95;
	total5=Math.round(total5);
	window.downloadForm.subtotal5.value = total5;
}
}

function Calculatecd15()
{
if (window.document.downloadForm.CDRequired5.value = "No")
{
	total5 = newvalue5;
	total5=Math.round(total5);
	window.downloadForm.subtotal5.value = total5;
}
}