		function calcPrice(){
			var Bprice=getBFactor();
			var stockP=0, sizeP=0, fPrintP=0, fcolorP=0, bPrintP=0, bcolorP=0;
			stockP= getProcessed(document.frmOrder.cmbStock.options[document.frmOrder.cmbStock.selectedIndex].value);
			sizeP= getProcessed(document.frmOrder.cmbSize.options[document.frmOrder.cmbSize.selectedIndex].value);
			
			if (document.frmOrder.cmbPrintColors.options[document.frmOrder.cmbPrintColors.selectedIndex].value!="0"){
				fPrintP= getProcessed(document.frmOrder.cmbPrintMethod.options[document.frmOrder.cmbPrintMethod.selectedIndex].value);
				fcolorP= getProcessed(document.frmOrder.cmbPrintColors.options[document.frmOrder.cmbPrintColors.selectedIndex].value);
			}
			
			if(document.frmOrder.cmbPrintColorsB){
				if (document.frmOrder.cmbPrintColorsB.options[document.frmOrder.cmbPrintColorsB.selectedIndex].value!="0"){
					if (document.frmOrder.cmbPrintColors.options[document.frmOrder.cmbPrintColors.selectedIndex].value!="0"){
						bPrintP= 0.2;
						bcolorP= 0;
					}
					else{
						bPrintP= getProcessed(document.frmOrder.cmbPrintMethodB.options[document.frmOrder.cmbPrintMethodB.selectedIndex].value);
						bcolorP= getProcessed(document.frmOrder.cmbPrintColorsB.options[document.frmOrder.cmbPrintColorsB.selectedIndex].value);
					}
				}
			}

			var Fprice= 0;
			Fprice = parseFloat(Bprice) + parseFloat(stockP) + parseFloat(sizeP) + parseFloat(fPrintP) + parseFloat(fcolorP) + parseFloat(bPrintP) + parseFloat(bcolorP) ;
			Fprice= processFinal(Fprice) + getSFactor();
			Fprice = Math.round(Fprice * 2);
			if(getQty()>10){
				Fprice = Fprice - getDFactor(Fprice);
			}

			document.frmOrder.txtHPrice.value= "$" + Fprice ;
			document.frmOrder.txtPrice.value=Fprice ;
			document.frmOrder.unitPrice.value= "$" + Fprice / getQty();
		}
		function getSFactor(){
			var Wg=getWFactor();
			var SC=4;
			if (Wg<1) Wg=1;

			if (Wg<15) SC=12;
			else if (Wg>=15 && Wg<50) SC=9;
			else if (Wg>=50 && Wg<100) SC=6;
			else if (Wg>=100 && Wg<250) SC=5;
			else if (Wg>=250 && Wg<500) SC=4;
			else if (Wg>=500 && Wg<1000) SC=3.5;
			else if (Wg>=1000 && Wg<2000) SC=3;
			else if (Wg>=2000 && Wg<3000) SC=2.5;
			else SC=2;
			return SC * Wg;
		}
		function getWFactor(){
			return ((getQty() * getPBWght())/1000);
		}
		function getDFactor(varPF){
			return (varPF * 0.20);
		}
		function getQty(){
			var Qty=document.frmOrder.txtqty.value;
			if(isValid(Qty)){
				return Qty;
			}
			else
				return 0;
		}
		function processFinal(valP){
				return getQty() * valP;
		}
		function isValid(varE){
			return 1;
		}
		function getProcessed(cmbVal){
			var loc;
			loc= cmbVal.indexOf("~");
			return cmbVal.substring(loc+1);
		}
		function changeMethod(){
			if(document.frmOrder.cmbPrintColors.selectedIndex==0)
				document.frmOrder.cmbPrintMethod.selectedIndex=0;
			else
				document.frmOrder.cmbPrintMethod.selectedIndex=1;
		}
		function changeMethodB(){
			if(document.frmOrder.cmbPrintColorsB.selectedIndex==0)
				document.frmOrder.cmbPrintMethodB.selectedIndex=0;
			else
				document.frmOrder.cmbPrintMethodB.selectedIndex=1;
		}

