
function fillTurnaround(){ 
 // this function is used to fill the category list on load
addOption(document.drop_buscards.Turnaround, "Same Day", "Same Day", "");
addOption(document.drop_buscards.Turnaround, "2-3 Business Days", "2-3 Business Days", "");
}

function SelectPaper(){
// ON selection of category this function will work

removeAllOptions(document.drop_buscards.Paper);

if(document.drop_buscards.Turnaround.value == 'Same Day'){
addOption(document.drop_buscards.Paper,"", "--Select Paper--");
addOption(document.drop_buscards.Paper,"100# Cover Stock (Non Glossy)", "100# Cover Stock (Non Glossy)");
}
if(document.drop_buscards.Turnaround.value == '2-3 Business Days'){
addOption(document.drop_buscards.Paper,"", "--Select Paper--");
addOption(document.drop_buscards.Paper,"14 Pt Cover Stock with UV Coating", "14 Pt Cover Stock with UV Coating");
addOption(document.drop_buscards.Paper,"14 Pt Cover Stock Matte (no coating)", "14 Pt Cover Stock Matte (no coating)");
}

}

function SelectColor(){
// ON selection of category this function will work

removeAllOptions(document.drop_buscards.Color);

// Color

if(document.drop_buscards.Paper.value == '100# Cover Stock (Non Glossy)'){
addOption(document.drop_buscards.Color, "", "--Select Color--");
addOption(document.drop_buscards.Color,"Full color front / Nothing on back (4/0) - #100", "Full color front / Nothing on back (4/0)");
addOption(document.drop_buscards.Color,"Full color front / Full color back (4/4) - #100", "Full color front / Full color back (4/4)");
addOption(document.drop_buscards.Color,"Full color front / one color black (4/1) - #100", "Full color front / one color black (4/1)");
addOption(document.drop_buscards.Color,"One color black / Nothing on back (1/0) - #100", "One color black / Nothing on back (1/0)");
addOption(document.drop_buscards.Color,"One color black / one color black (1/1) - #100", "One color black / one color black (1/1)");
}
if(document.drop_buscards.Paper.value == '14 Pt Cover Stock with UV Coating'){
addOption(document.drop_buscards.Color, "", "--Select Color--");
addOption(document.drop_buscards.Color,"Full color front / Nothing on back (4/0) - Coating", "Full color front / Nothing on back (4/0)");
addOption(document.drop_buscards.Color,"Full color front / Full color back (4/4) - Coating", "Full color front / Full color back (4/4)");
addOption(document.drop_buscards.Color,"Full color front / one color black (4/1) - Coating", "Full color front / one color black (4/1)", "");
addOption(document.drop_buscards.Color,"One color black / Nothing on back (1/0) - Coating", "One color black / Nothing on back (1/0)", "");
addOption(document.drop_buscards.Color,"One color black / one color black (1/1) - Coating", "One color black / one color black (1/1)", "");
}
if(document.drop_buscards.Paper.value == '14 Pt Cover Stock Matte (no coating)'){
addOption(document.drop_buscards.Color, "", "--Select Color--");
addOption(document.drop_buscards.Color,"Full color front / Nothing on back (4/0) - No Coating", "Full color front / Nothing on back (4/0)");
addOption(document.drop_buscards.Color,"Full color front / Full color back (4/4) - No Coating", "Full color front / Full color back (4/4)");
addOption(document.drop_buscards.Color,"Full color front / one color black (4/1) - No Coating", "Full color front / one color black (4/1)");
addOption(document.drop_buscards.Color,"One color black / Nothing on back (1/0) - No Coating", "One color black / Nothing on back (1/0)");
addOption(document.drop_buscards.Color,"One color black / one color black (1/1) - No Coating", "One color black / one color black (1/1)");
}

}


function SelectQuantity(){
// ON selection of category this function will work

removeAllOptions(document.drop_buscards.Quantity);

// Quantity - 100# Cover Stock (Non Glossy)

if(document.drop_buscards.Color.value == 'Full color front / Nothing on back (4/0) - #100'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"50 - $45.00", "50 - $45.00");
addOption(document.drop_buscards.Quantity,"100 - $45.00", "100 - $45.00");
addOption(document.drop_buscards.Quantity,"250 - $45.00", "250 - $45.00");
addOption(document.drop_buscards.Quantity,"500 - $65.00", "500 - $65.00");
}
if(document.drop_buscards.Color.value == 'Full color front / Full color back (4/4) - #100'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"50 - $50.00", "50 - $50.00");
addOption(document.drop_buscards.Quantity,"100 - $50.00", "100 - $50.00");
addOption(document.drop_buscards.Quantity,"250 - $55.00", "250 - $55.00");
addOption(document.drop_buscards.Quantity,"500 - $85.00", "500 - $85.00");
}
if(document.drop_buscards.Color.value == 'Full color front / one color black (4/1) - #100'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"50 - $37.50", "50 - $37.50");
addOption(document.drop_buscards.Quantity,"100 - $37.50", "100 - $37.50");
addOption(document.drop_buscards.Quantity,"250 - $45.00", "250 - $45.00");
addOption(document.drop_buscards.Quantity,"500 - $65.00", "500 - $65.00");
}
if(document.drop_buscards.Color.value == 'One color black / Nothing on back (1/0) - #100'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"50 - $22.50", "50 - $22.50");
addOption(document.drop_buscards.Quantity,"100 - $25.00", "100 - $25.00");
addOption(document.drop_buscards.Quantity,"250 - 30.00", "250 - $30.00");
addOption(document.drop_buscards.Quantity,"500 - $40.00", "500 - $40.00");
}
if(document.drop_buscards.Color.value == 'One color black / one color black (1/1) - #100'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"50 - $25.00", "50 - $25.00");
addOption(document.drop_buscards.Quantity,"100 - $30.00", "100 - $30.00");
addOption(document.drop_buscards.Quantity,"250 - $35.00", "250 - $35.00");
addOption(document.drop_buscards.Quantity,"500 - $45.00", "500 - $45.00");
}

// 14 Pt Cover Stock with UV Coating

if(document.drop_buscards.Color.value == 'Full color front / Nothing on back (4/0) - Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $35.00", "250 - $35.00");
addOption(document.drop_buscards.Quantity,"500 - $45.00", "500 - $45.00");
addOption(document.drop_buscards.Quantity,"1000 - $72.50", "1000 - $72.50");
}
if(document.drop_buscards.Color.value == 'Full color front / Full color back (4/4) - Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $45.00", "250 - $45.00");
addOption(document.drop_buscards.Quantity,"500 - $55.00", "500 - $55.00");
addOption(document.drop_buscards.Quantity,"1000 - $85.00", "1000 - $85.00");
}
if(document.drop_buscards.Color.value == 'Full color front / one color black (4/1) - Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $40.00", "250 - $40.00");
addOption(document.drop_buscards.Quantity,"500 - $65.00", "500 - $65.00");
addOption(document.drop_buscards.Quantity,"1000 - $90.00", "1000 - $90.00");
}
if(document.drop_buscards.Color.value == 'One color black / Nothing on back (1/0) - Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $37.50", "250 - $37.50");
addOption(document.drop_buscards.Quantity,"500 - $40.00", "500 - $40.00");
addOption(document.drop_buscards.Quantity,"1000 - $50.00", "1000 - $50.00");
}
if(document.drop_buscards.Color.value == 'One color black / one color black (1/1) - Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $35.00", "250 - $35.00");
addOption(document.drop_buscards.Quantity,"500 - $45.00", "500 - $45.00");
addOption(document.drop_buscards.Quantity,"1000 - $55.00", "1000 - $55.00");
}

// 14 Pt Cover Stock Matte (no coating)

if(document.drop_buscards.Color.value == 'Full color front / Nothing on back (4/0) - No Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $28.00", "250 - $28.00");
addOption(document.drop_buscards.Quantity,"500 - $55.00", "500 - $55.00");
addOption(document.drop_buscards.Quantity,"1000 - $75.00", "1000 - $75.00");
}
if(document.drop_buscards.Color.value == 'Full color front / Full color back (4/4) - No Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $40.00", "250 - $40.00");
addOption(document.drop_buscards.Quantity,"500 - $75.00", "500 - $75.00");
addOption(document.drop_buscards.Quantity,"1000 - $130.00", "1000 - $130.00");
}
if(document.drop_buscards.Color.value == 'Full color front / one color black (4/1) - No Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $45.00", "250 - $45.00");
addOption(document.drop_buscards.Quantity,"500 - $65.00", "500 - $65.00");
addOption(document.drop_buscards.Quantity,"1000 - $75.00", "1000 - $75.00");
}
if(document.drop_buscards.Color.value == 'One color black / Nothing on back (1/0) - No Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $12.00", "250 - $12.00");
addOption(document.drop_buscards.Quantity,"500 - $20.00", "500 - $20.00");
addOption(document.drop_buscards.Quantity,"1000 - $35.00", "1000 - $35.00");
}
if(document.drop_buscards.Color.value == 'One color black / one color black (1/1) - No Coating'){
addOption(document.drop_buscards.Quantity, "", "--Select Quantity--");
addOption(document.drop_buscards.Quantity,"250 - $18.00", "250 - $18.00");
addOption(document.drop_buscards.Quantity,"500 - $30.00", "500 - $30.00");
addOption(document.drop_buscards.Quantity,"1000 - $45.00", "1000 - $45.00");
}

}

////////////////// 

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}
