// ROLLOVER NAVIGATION

nc_n_img1 = new Image();
nc_n_img1.src = "images/nc_n_img1_r.gif";

nc_n_img2 = new Image();
nc_n_img2.src = "images/nc_n_img2_r.gif";

nc_n_img3 = new Image();
nc_n_img3.src = "images/nc_n_img3_r.gif";

nc_n_img4 = new Image();
nc_n_img4.src = "images/nc_n_img4_r.gif";

nc_n_img5 = new Image();
nc_n_img5.src = "images/nc_n_img5_r.gif";

nc_n_img6 = new Image();
nc_n_img6.src = "images/nc_n_img6_r.gif";

nc_n_img7 = new Image();
nc_n_img7.src = "images/nc_n_img7_r.gif";

nc_n_img8 = new Image();
nc_n_img8.src = "images/nc_n_img8_r.gif";

nc_n_img9 = new Image();
nc_n_img9.src = "images/nc_n_img9_r.gif";

nc_n_img10 = new Image();
nc_n_img10.src = "images/nc_n_img10_r.gif";

nc_n_img11 = new Image();
nc_n_img11.src = "images/nc_n_img11_r.gif";

nc_n_img12 = new Image();
nc_n_img12.src = "images/nc_n_img12_r.gif";

nc_n_img13 = new Image();
nc_n_img13.src = "images/nc_n_img13_r.gif";

nc_n_img14 = new Image();
nc_n_img14.src = "images/nc_n_img14_r.gif";

nc_n_img15 = new Image();
nc_n_img15.src = "images/nc_n_img15_r.gif";

nc_n_img16 = new Image();
nc_n_img16.src = "images/nc_n_img16_r.gif";

// ORDER FORM SECTION

// initialize variables
var SubNCPrice1 = 0;
var SubNCPrice2 = 0;
var SubNCPrice3 = 0;
var SubNCPrice4 = 0;
var SubNCPrice5 = 0;
var SubNCPrice6 = 0;
var SubNCPrice7 = 0;
var SubNCPrice8 = 0;
var SubNCPrice9 = 0;
var SubNCPrice10 = 0;
var SubNCPrice11 = 0;
var SubNCPrice12 = 0;
var SubNCPrice13 = 0;
var SubNCPrice14 = 0;
var SubNCPrice15 = 0;
var SubNCPrice16 = 0;
var NoteCardPrice = 15;

/* for all of these, the formula's basically the same.
1. set the variable for the sub total price = quantity
2. set the value of the sub total input box = sub total price * notecard price.
3. include this function in the final total.
*/

function SubTotNCPrice1() {

	SubNCPrice1 = document.forms[0].Quantity1.value;

	document.forms[0].SubTotal1.value = Number(SubNCPrice1 * NoteCardPrice);

	TotalNCPrice();

}

function SubTotNCPrice2() {

	SubNCPrice2 = document.forms[0].Quantity2.value;
	
	document.forms[0].SubTotal2.value = Number(SubNCPrice2 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice3() {
	
	SubNCPrice3 = document.forms[0].Quantity3.value;
	
	document.forms[0].SubTotal3.value = Number(SubNCPrice3 * NoteCardPrice);
	
	TotalNCPrice();

}

function SubTotNCPrice4() {
	
	SubNCPrice4 = document.forms[0].Quantity4.value;
	
	document.forms[0].SubTotal4.value = Number(SubNCPrice4 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice5() {
	
	SubNCPrice5 = document.forms[0].Quantity5.value;
	
	document.forms[0].SubTotal5.value = Number(SubNCPrice5 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice6() {
	
	SubNCPrice6 = document.forms[0].Quantity6.value;
	
	document.forms[0].SubTotal6.value = Number(SubNCPrice6 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice7() {
	
	SubNCPrice7 = document.forms[0].Quantity7.value;
	
	document.forms[0].SubTotal7.value = Number(SubNCPrice7 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice8() {

	SubNCPrice8 = document.forms[0].Quantity8.value;
	
	document.forms[0].SubTotal8.value = Number(SubNCPrice8 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice9() {

	SubNCPrice9 = document.forms[0].Quantity9.value;
	
	document.forms[0].SubTotal9.value = Number(SubNCPrice9 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice10() {
	
	SubNCPrice10 = document.forms[0].Quantity10.value;
	
	document.forms[0].SubTotal10.value = Number(SubNCPrice10 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice11() {

	SubNCPrice11 = document.forms[0].Quantity11.value;
	
	document.forms[0].SubTotal11.value = Number(SubNCPrice11 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice12() {

	SubNCPrice12 = document.forms[0].Quantity12.value;
	
	document.forms[0].SubTotal12.value = Number(SubNCPrice12 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice13() {

	SubNCPrice13 = document.forms[0].Quantity13.value;
	
	document.forms[0].SubTotal13.value = Number(SubNCPrice13 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice14() {

	SubNCPrice14 = document.forms[0].Quantity14.value;
	
	document.forms[0].SubTotal14.value = Number(SubNCPrice14 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice15() {

	SubNCPrice15 = document.forms[0].Quantity15.value;
	
	document.forms[0].SubTotal15.value = Number(SubNCPrice15 * NoteCardPrice);
	
	TotalNCPrice();
	
}

function SubTotNCPrice16() {

	SubNCPrice16 = document.forms[0].Quantity16.value;
	
	document.forms[0].SubTotal16.value = Number(SubNCPrice16 * NoteCardPrice);
	
	TotalNCPrice();
	
}

// set the final total equal to sum of all the sub totals.
function TotalNCPrice() {

	document.forms[0].TotalPrice.value = Number(document.forms[0].SubTotal1.value) + Number(document.forms[0].SubTotal2.value) + Number(document.forms[0].SubTotal3.value) + Number(document.forms[0].SubTotal4.value) + Number(document.forms[0].SubTotal5.value) + Number(document.forms[0].SubTotal6.value) + Number(document.forms[0].SubTotal7.value) + Number(document.forms[0].SubTotal8.value) + Number(document.forms[0].SubTotal9.value) + Number(document.forms[0].SubTotal10.value) + Number(document.forms[0].SubTotal11.value) + Number(document.forms[0].SubTotal12.value) + Number(document.forms[0].SubTotal13.value) + Number(document.forms[0].SubTotal14.value) + Number(document.forms[0].SubTotal15.value) + Number(document.forms[0].SubTotal16.value);

}
