function setOptions(chosen) {
var Quantity = document.NML_Order.myQuantity;
var Format = document.NML_Order.myFormat;
var pPrice = 0;
var printPrice = document.NML_Order.printPrice.value;
var Paper = document.NML_Order.myPaper;
var t_zip = document.NML_Order.t_zip;

Format.options.length = 0;
if (chosen == " ") {
  Format.options[Format.options.length] = new Option('--',' ');
}
document.getElementById('printPrice').value = 0;
if (chosen == " ") {
  document.getElementById('printPrice').value = 0;
}
if (chosen == "Jumbo Postcard 5.5 x 8.5" || chosen == "Super Jumbo Postcard 6 x 11.5" || chosen == "Standard Postcard 4.25 x 6" || chosen == "Rack Card 4 x 9") {
  Format.options[Format.options.length] = new Option('4/0 on 110# Cover Stock', '4/0 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/1 on 110# Cover Stock', '4/1 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/4 on 110# Cover Stock', '4/4 on 110# Cover Stock');
//  Paper.options[Paper.options.length] = new Option('110# Cover Stock', '110# Cover Stock');
	}
if (chosen == "Flyer") {
  Format.options[Format.options.length] = new Option('4/0 on 80# Gloss Text', '4/0 on 80# Gloss Text');
  Format.options[Format.options.length] = new Option('4/0 on 100# Gloss Text', '4/0 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('4/0 on 110# Cover Stock', '4/0 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/1 on 100# Gloss Text', '4/1 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('4/1 on 110# Cover Stock', '4/1 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/4 on 100# Gloss Text', '4/4 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('4/4 on 110# Cover Stock', '4/4 on 110# Cover Stock');
	}
if (chosen == "Flyer Folded" || chosen == "Tri-Fold Flyer") {
  Format.options[Format.options.length] = new Option('4/0 on 80# Gloss Text', '4/0 on 80# Gloss Text');
  Format.options[Format.options.length] = new Option('4/1 on 80# Gloss Text', '4/1 on 80# Gloss Text');
  Format.options[Format.options.length] = new Option('4/4 on 100# Gloss Text', '4/4 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('--', ' ');
  Format.options[Format.options.length] = new Option('4/0 on 110# Cover Stock', '4/0 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/1 on 110# Cover Stock', '4/1 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/4 on 110# Cover Stock', '4/4 on 110# Cover Stock');
	}
if (chosen == "Four Page Brochure 11 x 17") {
  Format.options[Format.options.length] = new Option('4/4 on 100# Gloss Text', '4/4 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('4/1 on 100# Gloss Text', '4/1 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('4/0 on 100# Gloss Text', '4/0 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('4/0 on 80# Gloss Text', '4/0 on 80# Gloss Text');
  Format.options[Format.options.length] = new Option('--', ' ');
  Format.options[Format.options.length] = new Option('4/4 on 110# Cover Stock', '4/4 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/1 on 110# Cover Stock', '4/1 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/0 on 110# Cover Stock', '4/0 on 110# Cover Stock');
	}
if (chosen == "Six Page Brochure") {
  Format.options[Format.options.length] = new Option('4/1 on 100# Gloss Text', '4/1 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('4/4 on 100# Gloss Text', '4/4 on 100# Gloss Text');
  Format.options[Format.options.length] = new Option('--', ' ');
  Format.options[Format.options.length] = new Option('4/1 on 110# Cover Stock', '4/1 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/4 on 110# Cover Stock', '4/4 on 110# Cover Stock');
	}
if (chosen == "Business Card 2 x 3.5") {
  Format.options[Format.options.length] = new Option('4/0 on 110# Cover Stock', '4/0 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/1 on 110# Cover Stock', '4/1 on 110# Cover Stock');
  Format.options[Format.options.length] = new Option('4/4 on 110# Cover Stock', '4/4 on 110# Cover Stock');
	}
if (chosen == "Sticker 2 x 3.5") {
  Format.options[Format.options.length] = new Option('4/0 on Glossy Peel and Stick', '4/0 on Glossy Peel and Stick');
	}

if(chosen == " " || pPrice == 0 || pPrice == 0.00 || Quantity == " "){ 
	document.getElementById('NMLbutton').className = 'noButton'; 
	document.getElementById('toOrder').className = 'toOrderOff'; 
	document.getElementById('shipRow').className = 'rowOff'; 
	document.getElementById('shipRow1').className = 'rowOff'; 
	document.getElementById('shipRow2').className = 'rowOff'; 
	document.getElementById('shipRow3').className = 'rowOff';
    document.getElementById('shipRow4').className = 'rowOff'; 
	document.getElementById('shipRow5').className = 'rowOff'; 
	document.getElementById('shipRow6').className = 'rowOff'; 
	document.getElementById('t_zip').value = ""; 

 
		document.getElementById('mailPrice').value = "";
		document.getElementById('postageRate').value = " ";
		document.getElementById('mailQuantity').value = "";
	document.getElementById('mailRow1').className = 'rowOff'; 
	document.getElementById('mailRow2').className = 'rowOff'; 
	document.getElementById('mailRow3').className = 'rowOff'; 
	document.getElementById('mailRow4').className = 'rowOff'; 
	document.getElementById('mailRow5').className = 'rowOff'; 
	document.getElementById('mailRow6').className = 'rowOff'; 
	document.getElementById('mailRow7').className = 'rowOff'; 
	document.getElementById('noTaxTotal').value = "";
	document.getElementById('uvCoating3').checked=true;
	document.getElementById('uvPrice').value = 0 * 1;
	document.getElementById('ivCoat01').className = 'rowOff';
	}
}

function resetButtons() {
			document.getElementById('msPlusButton').className = 'PlusButtonMail'; 
			document.getElementById('msPlusButton').value = '+'; 
			document.getElementById('shPlusButton').className = 'PlusButtonUPS'; 
			document.getElementById('shPlusButton').value = '+'; 
			document.getElementById('shipPrice').value = 0 * 1; 
			document.getElementById('t_zip').value = ""; 
	document.getElementById('uvCoating3').checked=true;
	document.getElementById('uvPrice').value = 0 * 1;
//	document.getElementById('ivCoat01').className = 'rowOff';
}



