// JavaScript Document
PaperWeight = new Array();
PaperWeight[0] = null;
PaperWeight[1] = new Array("", 60, 70, 80, 100, 120, 150, 180, 200, 230, 250, 300); //Офсет
PaperWeight[2] = new Array("", 70, 80, 90); //LWC
PaperWeight[3] = new Array("", 70, 75, 80, 90); //Етикетна
PaperWeight[4] = new Array("", 90, 100, 115, 130, 150, 170, 200, 250, 300, 350); //Картон хром мат
PaperWeight[5] = PaperWeight[4]; //Картон хром гланц
PaperWeight[6] = new Array("", 220, 230, 245, 270, 295, 320); //Опаковъчен картон - бял
PaperWeight[7] = new Array("", 220, 240, 260, 280, 315, 350); //Опаковъчен картон - кремав
PaperWeight[8] = new Array("", 230, 250, 300, 350, 400, 450); //Опаковъчен картон - рециклиран
PaperWeight[9] = null; //Самозалепна х-я
PaperWeight[10] = null; //PVC - прозрачен
PaperWeight[11] = null; //PVC - бял

function SetWeight(selObj) {
	while (document.getElementById('paper_weight').options.length) {
		document.getElementById('paper_weight').remove(0);
	}	
//	Paper = selObj.options[selObj.selectedIndex].value;
	Paper = selObj.selectedIndex;
	if (! PaperWeight[Paper]) return;
	for (i = 0; i < PaperWeight[Paper].length; i++) {
		document.getElementById('paper_weight').options[i] = new Option(PaperWeight[Paper][i], PaperWeight[Paper][i]);
	}
}

function SetSpecialPaper(selObj) {
	if (! (PaperIndex = selObj.selectedIndex)) 
	  return;
	if (PaperIndex == 7)  /* Special paper */	
  	document.getElementById("SpecialPaperID").style.visibility = "visible";
	else	
  	document.getElementById("SpecialPaperID").style.visibility = "hidden";
}
