<!--
// A4 order form only at present
// A4 size rate for single side = 1.0
// A4 size rate for double side = 1.8

function updatePaperChoices()
{
	//if the user chooses full colour from the colour menu, then the economy option disappears from the paper menu
	
	if (document.frmPrintOrder.frmColours.options[document.frmPrintOrder.frmColours.selectedIndex].text == "Full colour")
	{		
		document.frmPrintOrder.frmStock.options.length = 0;
	  	document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','130');	
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');		
	}
	else
	{
		document.frmPrintOrder.frmStock.options.length = 0;
		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('80gsm economy','80');
	  	document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','130');	
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');				
	}
}

function updatePaperChoices_A4A5Leaflets()
{
	//if the user chooses full colour from the colour menu, then the economy option disappears from the paper menu
	
	if (document.frmPrintOrder.frmColours.options[document.frmPrintOrder.frmColours.selectedIndex].text == "Full colour")
	{		
		document.frmPrintOrder.frmStock.options.length = 0;
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','150');				
		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');
	  	document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('200gsm art paper','200');	
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('300gsm art paper','300');					
	}
	else
	{
		document.frmPrintOrder.frmStock.options.length = 0;
		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('80gsm bond paper','80');
	  	document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('100gsm bond paper','100');	
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','150');				
		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');
	  	document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('200gsm art paper','200');	
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('300gsm art paper','300');						
	}
}

function updatePaperChoices_A4Posters()
{
	//if the user chooses full colour from the colour menu, then the economy option disappears from the paper menu
	
	if (document.frmPrintOrder.frmColours.options[document.frmPrintOrder.frmColours.selectedIndex].text == "Full colour")
	{		
		document.frmPrintOrder.frmStock.options.length = 0;
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','150');				
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');								
	}
	else
	{
		document.frmPrintOrder.frmStock.options.length = 0;
		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('80gsm bond paper','80');
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','150');				
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');								
	}
}

function updatePaperChoices_A4Menus()
{
	//if the user chooses full colour from the colour menu, then the economy option disappears from the paper menu
	
	if (document.frmPrintOrder.frmColours.options[document.frmPrintOrder.frmColours.selectedIndex].text == "Full colour")
	{		
		document.frmPrintOrder.frmStock.options.length = 0;
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('130gsm art paper','130');						
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','150');				
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');			
	}
	else
	{
		document.frmPrintOrder.frmStock.options.length = 0;
		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('80gsm bond paper','80');
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('130gsm art paper','130');						
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','150');				
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');								
	}
}

function updatePaperChoices_A4A5Menus()
{
	//if the user chooses full colour from the colour menu, then the economy option disappears from the paper menu
	
	if (document.frmPrintOrder.frmColours.options[document.frmPrintOrder.frmColours.selectedIndex].text == "Full colour")
	{		
		document.frmPrintOrder.frmStock.options.length = 0;
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','150');				
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');								
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('200gsm art paper','200');			
	}
	else
	{
		document.frmPrintOrder.frmStock.options.length = 0;
		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('80gsm bond paper','80');
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('100gsm bond paper','100');							
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('150gsm art paper','150');				
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('170gsm art paper','170');								
  		document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.options.length] = new Option('200gsm art paper','200');			
	}
}


function setCheckedValue(radioObj, newValue) {
	if(!radioObj)
		return;
	var radioLength = radioObj.length;
	if(radioLength == undefined) {
		radioObj.checked = (radioObj.value == newValue.toString());
		return;
	}
	for(var i = 0; i < radioLength; i++) {
		radioObj[i].checked = false;
		if(radioObj[i].value == newValue.toString()) {
			radioObj[i].checked = true;
		}
	}
}

function calcPrintCost() {

	var sSize;
	var lSizeRate; //single default
	var iQuantity;
	var iSides;
	var iColours;
	var lSetup;
	var bArtwork;
	var lSubtotal=0.0;
	var lVAT;
	var lTotal;
	var iIndex;
	var quantity;
	var Rate;
	var sStock;
	var lPantoneCharge = 0.0;
	//var sColourType;
	var fStock;
	var fSize;
	var j;
	var i;
	var lHourlyRate = 22.00;

	iQuantity=document.frmPrintOrder.frmQuantity.value;
	sSize=document.frmPrintOrder.frmSize.value;
	iSides=document.frmPrintOrder.frmSides.value;
	
	fSize=document.frmPrintOrder.frmSize.options[document.frmPrintOrder.frmSize.selectedIndex].text;
	fStock=document.frmPrintOrder.frmStock.options[document.frmPrintOrder.frmStock.selectedIndex].text;

	if (sSize=="A4")
	{
		if (iSides=="1")
		{
			lSizeRate=1.0;
		}else{
			lSizeRate=1.8;
		}
	}	
	
	iColours=document.frmPrintOrder.frmColours.value;
	bArtwork=document.frmPrintOrder.frmArtwork.value;
	sStock=document.frmPrintOrder.frmStock.value;
	
	if (iColours!="3") {
		
		j=document.frmPrintOrder.frmPantones.length; //alert(j)
		for (i=0; i<j; i++){
			if(document.frmPrintOrder.frmPantones[i].checked) var sColourType = document.frmPrintOrder.frmPantones[i].value;
		}
		
		if ((sColourType=="None")||(sColourType=="Full")) {
			lPantoneCharge = 0.0;
		}		if (sColourType=="1"){
			lPantoneCharge = 10.0;
		}		
		if (sColourType=="2"){
			lPantoneCharge = 20.0;
		}			}else{
		lPantoneCharge = 0.0;
		
		j=document.frmPrintOrder.frmPantones.length; //alert(j)
		for (i=0; i<j; i++){
			if ((document.frmPrintOrder.frmPantones[i].checked)== true){
				document.frmPrintOrder.frmPantones[i].checked = false;
			}
		}
	}
			
	if (bArtwork=="yes")
	{
		//setup is checking fee depending on no of colours
		if (iColours==1)
		{
			lSetup=13.0;
		}		
		if (iColours==2)
		{
			lSetup=18.0;
		}
		if (iColours==3)
		{
			lSetup=33.0;
		}
	}else{
		lSetup = Math.round((1.1*iColours*lSizeRate*lHourlyRate)+(iColours*3));
	}
	
	//add any pantone fees
	lSetup = lSetup + lPantoneCharge;
	
	quantity = iQuantity; //to sort spreadsheet variable name
	
// 	BEGIN COPY PASTE SECTION A4 LEAFLETS

					
// A4 Leaflets / Posters & A4 folded to A5			a4leaflets.js		
//130 gsm prices					
					
if (sStock == "130"){					
	if (iSides == "1"){				
		if (iColours == "1"){			
			if (quantity == "500"){Rate = 	86.48	;}
			if (quantity == "1000"){Rate = 	107.88	;}
			if (quantity == "2000"){Rate = 	132.18	;}
			if (quantity == "5000"){Rate = 	177.88	;}
			if (quantity == "10000"){Rate = 272.185	;}
			if (quantity == "15000"){Rate = 367.39	;}
			if (quantity == "20000"){Rate = 459.73	;}
			if (quantity == "30000"){Rate = 653.63	;}
			if (quantity == "50000"){Rate = 874.10	;}
		}			
		if (iColours == "2"){			
			if (quantity == "500"){Rate = 	93.775	;}
			if (quantity == "1000"){Rate = 	132.18	;}
			if (quantity == "2000"){Rate = 	169.85	;}
			if (quantity == "5000"){Rate = 	217.98	;}
			if (quantity == "10000"){Rate = 331.72	;}
			if (quantity == "15000"){Rate = 426.93	;}
			if (quantity == "20000"){Rate = 576.37	;}
			if (quantity == "30000"){Rate = 787.28	;}
			if (quantity == "50000"){Rate = 1062.42	;}
		}			
		if (iColours == "3"){			
			if (quantity == "500"){Rate = 	133.87	;}
			if (quantity == "1000"){Rate = 	175.92	;}
			if (quantity == "2000"){Rate = 	218.45	;}
			if (quantity == "5000"){Rate = 	250.78	;}
			if (quantity == "10000"){Rate = 382.75	;}
			if (quantity == "15000"){Rate = 515.62	;}
			if (quantity == "20000"){Rate = 617.68	;}
			if (quantity == "30000"){Rate = 797.00	;}
			if (quantity == "50000"){Rate = 1244.67	;}
		}			
	}else{ //130gsm 2 sides				
		if (iColours == "1"){			
			if (quantity == "500"){Rate = 	105.92	;}
			if (quantity == "1000"){Rate = 	134.61	;}
			if (quantity == "2000"){Rate = 	167.42	;}
			if (quantity == "5000"){Rate = 	225.27	;}
			if (quantity == "10000"){Rate = 329.29	;}
			if (quantity == "15000"){Rate = 450.74	;}
			if (quantity == "20000"){Rate = 614.04	;}
			if (quantity == "30000"){Rate = 848.03	;}
			if (quantity == "50000"){Rate = 1126.80 ;}
		}			
		if (iColours == "2"){			
			if (quantity == "500"){Rate = 	119.29	;}
			if (quantity == "1000"){Rate = 	167.42	;}
			if (quantity == "2000"){Rate = 	192.93	;}
			if (quantity == "5000"){Rate = 	282.37	;}
			if (quantity == "10000"){Rate = 405.83	;}
			if (quantity == "15000"){Rate = 552.98	;}
			if (quantity == "20000"){Rate = 775.63	;}
			if (quantity == "30000"){Rate = 1053.37	;}
			if (quantity == "50000"){Rate = 1402.62	;}
		}			
		if (iColours == "3"){			
			if (quantity == "500"){Rate = 	166.67	;}
			if (quantity == "1000"){Rate = 	206.30	;}
			if (quantity == "2000"){Rate = 	291.35	;}
			if (quantity == "5000"){Rate = 	349.20	;}
			if (quantity == "10000"){Rate = 504.25	;}
			if (quantity == "15000"){Rate = 728.25	;}
			if (quantity == "20000"){Rate = 897.13	;}
			if (quantity == "30000"){Rate = 1189.45	;}
			if (quantity == "50000"){Rate = 1735.53	;}
		}			
	}				
}// end 130gsm					
					
//80 gsm prices					
if (sStock == "80"){					
	if (iSides == "1"){				
		if (iColours == "1"){			
			if (quantity == "500"){Rate = 	89.90	;}
			if (quantity == "1000"){Rate = 	103.30	;}
			if (quantity == "2000"){Rate = 	140.40	;}
			if (quantity == "5000"){Rate = 	227.60 ;}
			if (quantity == "10000"){Rate = 299.00 ;}
			if (quantity == "15000"){Rate = 370.40 ;}
			if (quantity == "20000"){Rate = 409.30 ;}
			if (quantity == "30000"){Rate = 619.30	;}
			if (quantity == "50000"){Rate = 892.20	;}
		}			
		if (iColours == "2"){			
			if (quantity == "500"){Rate = 	132.70 ;}
			if (quantity == "1000"){Rate = 	151.30	;}
			if (quantity == "2000"){Rate = 	203.90	;}
			if (quantity == "5000"){Rate = 	299.30	;}
			if (quantity == "10000"){Rate = 364.00	;}
			if (quantity == "15000"){Rate = 428.70	;}
			if (quantity == "20000"){Rate = 496.00	;}
			if (quantity == "30000"){Rate = 749.30 ;}
			if (quantity == "50000"){Rate = 1080.0	;}
		}			
		if (iColours == "3"){			
			if (quantity == "500"){Rate = 	166.00	;}
			if (quantity == "1000"){Rate = 	187.00	;}
			if (quantity == "2000"){Rate = 	251.00	;}
			if (quantity == "5000"){Rate = 	350.00	;}
			if (quantity == "10000"){Rate = 395.27	;}
			if (quantity == "15000"){Rate =	589.00 ;}
			if (quantity == "20000"){Rate = 758.00 ;}
		}	
	}else{ //80 gsm prices 2 sides				
		if (iColours == "1"){			
			if (quantity == "500"){Rate = 	113.30	;}
			if (quantity == "1000"){Rate = 	122.30	;}
			if (quantity == "2000"){Rate = 	143.20	;}
			if (quantity == "5000"){Rate = 	267.60 ;}
			if (quantity == "10000"){Rate = 339.00	;}
			if (quantity == "15000"){Rate = 410.40 ;}
			if (quantity == "20000"){Rate = 462.70	;}
			if (quantity == "30000"){Rate = 699.30	;}
			if (quantity == "50000"){Rate = 1007.80	;}
		}			
		if (iColours == "2"){			
			if (quantity == "500"){Rate = 	132.70	;}
			if (quantity == "1000"){Rate = 	151.30 ;}
			if (quantity == "2000"){Rate = 	203.90	;}
			if (quantity == "5000"){Rate = 	299.30	;}
			if (quantity == "10000"){Rate = 364.00	;}
			if (quantity == "15000"){Rate = 428.70	;}
			if (quantity == "20000"){Rate = 496.00	;}
			if (quantity == "30000"){Rate = 749.00 ;}
			if (quantity == "50000"){Rate = 1080.00	;}
		}			
		if (iColours == "3"){			
			if (quantity == "500"){Rate = 208.00 ;}		
			if (quantity == "1000"){Rate = 231.00 ;}		
			if (quantity == "2000"){Rate = 320.00 ;}		
			if (quantity == "5000"){Rate = 462.00 ;}		
					}			
	}				
}// end 80gsm					
					
//150 gsm prices					
if (sStock == "150"){					
	if (iSides == "1"){				
		if (iColours == "1"){			
			if (quantity == "500"){Rate = 89.90 ;}		
			if (quantity == "1000"){Rate = 103.00 ;}		
			if (quantity == "2000"){Rate = 140.40 ;}		
			if (quantity == "5000"){Rate = 227.60 ;}		
			if (quantity == "10000"){Rate = 299.00 ;}		
			if (quantity == "15000"){Rate = 370.40 ;}													 
			if (quantity == "20000"){Rate = 409.30 ;}		
			if (quantity == "30000"){Rate = 619.30 ;}		
			if (quantity == "50000"){Rate = 892.20 ;}		
		}			
		if (iColours == "2"){			
			if (quantity == "500"){Rate = 116.20 ;}		
			if (quantity == "1000"){Rate = 133.40 ;}		
			if (quantity == "2000"){Rate = 174.90 ;}		
			if (quantity == "5000"){Rate = 262.10 ;}		
			if (quantity == "10000"){Rate = 331.00 ;}		
			if (quantity == "15000"){Rate = 399.90 ;}		
			if (quantity == "20000"){Rate = 452.00 ;}		
			if (quantity == "30000"){Rate = 683.30 ;}		
			if (quantity == "50000"){Rate = 984.70 ;}		
		}			
		if (iColours == "3"){			
			if (quantity == "500"){Rate = 	147.23	;}
			if (quantity == "1000"){Rate = 	194.15	;}
			if (quantity == "2000"){Rate = 	241.53	;}
			if (quantity == "5000"){Rate = 	277.51	;}
			if (quantity == "10000"){Rate = 425.27	;}
			if (quantity == "15000"){Rate =	553.67 ;}
			if (quantity == "20000"){Rate = 682.08 ;}
			if (quantity == "30000"){Rate = 1013.50 ;}		
			if (quantity == "50000"){Rate = 1432.20 ;}		
		}			
	}else{ //150 gsm prices 2 sides				
		if (iColours == "1"){			
			if (quantity == "500"){Rate = 118.90 ;}		
			if (quantity == "1000"){Rate = 122.40 ;}		
			if (quantity == "2000"){Rate = 155.60 ;}		
			if (quantity == "5000"){Rate = 267.60 ;}		
			if (quantity == "10000"){Rate = 339.00 ;}		
			if (quantity == "15000"){Rate = 410.40 ;}		
			if (quantity == "20000"){Rate = 462.70 ;}		
			if (quantity == "30000"){Rate = 699.30 ;}		
			if (quantity == "50000"){Rate = 1007.80;}		
		}			
		if (iColours == "2"){			
			if (quantity == "500"){Rate = 132.70 ;}		
			if (quantity == "1000"){Rate = 151.30 ;}		
			if (quantity == "2000"){Rate = 203.90 ;}		
			if (quantity == "5000"){Rate = 299.30 ;}		
			if (quantity == "10000"){Rate = 364.30 ;}		
			if (quantity == "15000"){Rate = 428.70 ;}		
			if (quantity == "20000"){Rate = 496.00 ;}		
			if (quantity == "30000"){Rate = 749.30 ;}		
			if (quantity == "50000"){Rate = 1080.00 ;}		
		}			
		if (iColours == "3"){			
			if (quantity == "500"){Rate = 	166.675	;}
			if (quantity == "1000"){Rate = 	206.30 ;}
			if (quantity == "2000"){Rate = 	300.60 ;}
			if (quantity == "5000"){Rate = 	349.20 ;}
			if (quantity == "10000"){Rate = 504.25 ;}
			if (quantity == "15000"){Rate =	705.317 ;}
			if (quantity == "20000"){Rate = 906.385	;}
			if (quantity == "30000"){Rate = 1570.10 ;}		
			if (quantity == "50000"){Rate = 2174.40 ;}		
		}			
	}				
}// end 150gsm					
					
//170 gsm prices					
if (sStock == "170"){					
	if (iSides == "1"){				
		if (iColours == "1"){			
			if (quantity == "500"){Rate = 93.90 ;}		
			if (quantity == "1000"){Rate = 107.00 ;}		
			if (quantity == "2000"){Rate = 146.40 ;}		
			if (quantity == "5000"){Rate = 238.60 ;}		
			if (quantity == "10000"){Rate = 309.00 ;}		
			if (quantity == "15000"){Rate = 379.40 ;}		
			if (quantity == "20000"){Rate = 417.30 ;}		
			if (quantity == "30000"){Rate = 628.70 ;}		
			if (quantity == "50000"){Rate = 906.90 ;}		
		}			
		if (iColours == "2"){			
			if (quantity == "500"){Rate = 136.70 ;}		
			if (quantity == "1000"){Rate = 155.30 ;}		
			if (quantity == "2000"){Rate = 209.90 ;}		
			if (quantity == "5000"){Rate = 310.30 ;}		
			if (quantity == "10000"){Rate = 374.30 ;}		
			if (quantity == "15000"){Rate = 437.70 ;}		
			if (quantity == "20000"){Rate = 504.00 ;}		
			if (quantity == "30000"){Rate = 758.70 ;}		
			if (quantity == "50000"){Rate = 1094.70 ;}		
		}			
		if (iColours == "3"){			
			if (quantity == "500"){Rate = 	161.81	;}
			if (quantity == "1000"){Rate = 	212.37	;}
			if (quantity == "2000"){Rate = 	264.62	;}
			if (quantity == "5000"){Rate = 	301.81 ;}
			if (quantity == "10000"){Rate = 473.40	;}
			if (quantity == "15000"){Rate =	615.17 ;}
			if (quantity == "20000"){Rate = 756.94 ;}
			if (quantity == "30000"){Rate = 1264.50 ;}		
			if (quantity == "50000"){Rate = 1769.20 ;}		
		}			
	}else{ //170 gsm prices 2 sides				
		if (iColours == "1"){			
			if (quantity == "500"){Rate = 122.90 ;}		
			if (quantity == "1000"){Rate = 126.40 ;}		
			if (quantity == "2000"){Rate = 161.60 ;}		
			if (quantity == "5000"){Rate = 278.60 ;}		
			if (quantity == "10000"){Rate = 349.00 ;}		
			if (quantity == "15000"){Rate = 419.40 ;}		
			if (quantity == "20000"){Rate = 470.70 ;}		
			if (quantity == "30000"){Rate = 708.70 ;}		
			if (quantity == "50000"){Rate = 1022.44 ;}		
		}			
		if (iColours == "2"){			
			if (quantity == "500"){Rate = 136.70 ;}		
			if (quantity == "1000"){Rate = 155.30 ;}		
			if (quantity == "2000"){Rate = 209.90 ;}		
			if (quantity == "5000"){Rate = 310.30 ;}		
			if (quantity == "10000"){Rate = 374.00 ;}		
			if (quantity == "15000"){Rate = 437.70 ;}		
			if (quantity == "20000"){Rate = 504.00 ;}		
			if (quantity == "30000"){Rate = 758.00 ;}		
			if (quantity == "50000"){Rate = 1094.70 ;}		
		}			
		if (iColours == "3"){			
			if (quantity == "500"){Rate = 	203.12	;}
			if (quantity == "1000"){Rate = 	250.04	;}
			if (quantity == "2000"){Rate = 	354.53	;}
			if (quantity == "5000"){Rate = 	424.53	;}
			if (quantity == "10000"){Rate = 624.06	;}
			if (quantity == "15000"){Rate =	624.06	;}
			if (quantity == "20000"){Rate = 1103.21 ;}
			if (quantity == "30000"){Rate = 1957.10 ;}		
			if (quantity == "50000"){Rate = 2692.60 ;}		
		}			
	}				
}// end 170gsm					
	
// 	END COPY PASTE SECTION A4 LEAFLETS
	
	if (Rate != 0){
		lSubtotal=Math.round(Math.abs((Rate*1)+lSetup)*100)/100;
		document.frmPrintOrder.PSelected_Price.value=lSubtotal+"";
	
		lVAT=Math.round((Math.abs(lSubtotal))*0.0*100)/100;
		document.frmPrintOrder.frmVAT.value=lVAT+"";
	
		lTotal=Math.round((Math.abs(lVAT+lSubtotal))*100)/100;
		document.frmPrintOrder.frmTotal.value=lTotal+"";
	}
	else{
		document.frmPrintOrder.PSelected_Price.value="N/A online";
	
		lVAT=Math.round((Math.abs(lSubtotal))*0.0*100)/100;
		document.frmPrintOrder.frmVAT.value="Call for quote";
	
		lTotal=Math.round((Math.abs(lVAT+lSubtotal))*100)/100;
		document.frmPrintOrder.frmTotal.value="";
	}
	
	document.frmPrintOrder.Order_Summary.value= "Size:" + fSize + "; Quantity:" + quantity + ";\nStock:" + fStock + "; Sides:" + iSides + ";\nColours:" + iColours + "; Pantone Mixes: " + sColourType + ";\nArtwork Supplied: " + bArtwork;
}

//-->