  function calcTotal(){
    var pricebreak = 1;
    var sqinbreaks = 0;
    var factorA = 1;
    var factorB = .314;
    var factorC = .173;
    var factorD = .288;
    var factorE = .326;
    var factorF = .297;
    var factorG = .136;
    var factorH = .135;
    var factorI = .271;
    var factorJ = .09;
    var wrap = 0.75;
	var quantity = parseInt(document.frmCalc.FormQuantity.value);
    var imagewidth = parseFloat(document.frmCalc.FormImageWidth.value);
    var imageheight = parseFloat(document.frmCalc.FormImageHeight.value);
    var bordersize = parseInt(document.frmCalc.FormBorderSize.value);
    var fullborder = bordersize * 0.5;
    var paperwidth = imagewidth + fullborder;
    var paperheight = imageheight + fullborder;
    var unitedinches = imagewidth + imageheight;
    var imagesqin = imagewidth * imageheight;
    var papersqin = paperwidth * paperheight;
    var bordersqin = papersqin - imagesqin;
    var totalimagesqin = imagesqin * quantity;
    var totalpapersqin = papersqin * quantity;
    var totalbordersqin = bordersqin * quantity;
    var mediaType;
    var mediaTypeIndex;

    mediaTypeIndex=document.frmCalc.optMediaType.selectedIndex;

//   ALERTS

	if (quantity > 20) {
	  alert("Please contact our Customer Service for a special quote.");
	  return false;
	}
	
	if (document.frmCalc.FormImageWidth.value == "" || document.frmCalc.FormImageWidth.value == " ") {
      alert("Please enter an image width.");
      return false;
	}

	if (document.frmCalc.FormImageHeight.value == "" || document.frmCalc.FormImageHeight.value == " ") {
      alert("Please enter an image height.");
      return false;
	}

	if (mediaTypeIndex == 0) {
		alert("Please select a Media Type to continue.");
		return false;
	}

	if (bordersize == 30) {
		alert("Please select a Border Size to continue.");
		return false;
	}

//  PRICE BREAKS

    for (sqinbreaks=0; sqinbreaks<7; sqinbreaks++) {
      switch (mediaTypeIndex)	{
        case 1: //Artist Canvas
//	      if (imagesqin < 1.069) {
//   		    alert("The minimum print size is 11x14 inches or 1.07 sqin.");
// 		    return false;}

	      if (paperwidth > 60 & paperheight > 60) {
   		    alert("Canvas roll width is 60\". Only one of the dimensions can exceed 60\" (including borders for wrap)");
 		    return false;}


		  if (unitedinches >0 & unitedinches<=18){woodfactor1 = 1.60;}
		  if (unitedinches >18 & unitedinches<=28){woodfactor1 = 1.06;}
	  	  if (unitedinches >28 & unitedinches<=38){woodfactor1 = 0.88;}
		  if (unitedinches >38 & unitedinches<=48){woodfactor1 = 0.79;}
		  if (unitedinches >48 & unitedinches<=58){woodfactor1 = 0.74;}
		  if (unitedinches >58 & unitedinches<=68){woodfactor1 = 0.70;}
		  if (unitedinches >68 & unitedinches<=78){woodfactor1 = 0.68;}
		  if (unitedinches >78 & unitedinches<=88){woodfactor1 = 0.66;}
		  if (unitedinches >88 & unitedinches<=120){woodfactor1 = 0.64;}
		  if (unitedinches >120) {woodfactor1 = 0.62;}

		  if (unitedinches >0 & unitedinches<=18){woodfactor2 = 1.82;}
		  if (unitedinches >18 & unitedinches<=28){woodfactor2 = 1.35;}
	  	  if (unitedinches >28 & unitedinches<=38){woodfactor2 = 1.19;}
		  if (unitedinches >38 & unitedinches<=48){woodfactor2 = 1.11;}
		  if (unitedinches >48 & unitedinches<=58){woodfactor2 = 1.07;}
		  if (unitedinches >58 & unitedinches<=68){woodfactor2 = 1.04;}
		  if (unitedinches >68 & unitedinches<=78){woodfactor2 = 1.01;}
		  if (unitedinches >78 & unitedinches<=88){woodfactor2 = 0.99;}
		  if (unitedinches >88 & unitedinches<=120){woodfactor2 = 0.975;}
		  if (unitedinches >120) {woodfactor2 = 0.96;}

		  if (unitedinches >0 & unitedinches<=18){labourSB = 5;}
		  if (unitedinches >18 & unitedinches<=28){labourSB = 10;}
	  	  if (unitedinches >28 & unitedinches<=38){labourSB = 15;}
		  if (unitedinches >38 & unitedinches<=48){labourSB = 20;}
		  if (unitedinches >48 & unitedinches<=58){labourSB = 25;}
		  if (unitedinches >58 & unitedinches<=68){labourSB = 30;}
		  if (unitedinches >68 & unitedinches<=78){labourSB = 35;}
		  if (unitedinches >78 & unitedinches<=88){labourSB = 40;}
		  if (unitedinches >88 & unitedinches<=120){labourSB = 45;}
		  if (unitedinches >120) {labourSB = 50;}

		  if (imagesqin >0 & imagesqin<=2000){pricebreak1 = .23;}
		  if (imagesqin >2000 & imagesqin<=6000){pricebreak1 = .19;}
	  	  if (imagesqin >6000 & imagesqin<=14000){pricebreak1 = .16;}
		  if (imagesqin >14000 & imagesqin<=29000){pricebreak1 = .14;}
		  if (imagesqin >29000 & imagesqin<=150000){pricebreak1 = .12;}
		  if (imagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }

		  if (totalimagesqin >0 & totalimagesqin<=2000){pricebreak2 = .23;}
		  if (totalimagesqin >2000 & totalimagesqin<=6000){pricebreak2 = .19;}
		  if (totalimagesqin >6000 & totalimagesqin<=14000){pricebreak2 = .16;}
		  if (totalimagesqin >14000 & totalimagesqin<=29000){pricebreak2 = .14;}
		  if (totalimagesqin >29000 & totalimagesqin<=150000){pricebreak2 = .12;}
		  if (totalimagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (papersqin >0 & papersqin<=2000){pricebreak3 = .23;}
		  if (papersqin >2000 & papersqin<=6000){pricebreak3 = .19;}
	  	  if (papersqin >6000 & papersqin<=14000){pricebreak3 = .16;}
		  if (papersqin >14000 & papersqin<=29000){pricebreak3 = .14;}
		  if (papersqin >29000 & papersqin<=150000){pricebreak3 = .12;}
		  if (papersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (totalpapersqin >0 & totalpapersqin<=2000){pricebreak4 = .23;}
		  if (totalpapersqin >2000 & totalpapersqin<=6000){pricebreak4 = .19;}
		  if (totalpapersqin >6000 & totalpapersqin<=14000){pricebreak4 = .16;}
		  if (totalpapersqin >14000 & totalpapersqin<=29000){pricebreak4 = .14;}
		  if (totalpapersqin >29000 & totalpapersqin<=150000){pricebreak4 = .12;}
		  if (totalpapersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
          break;

        case 2: //Verona/Arches Infinity
//	      if (papersqin < 1.069) {
//   		    alert("The minimum paper size is 11x14 inches or 1.07 sqin.");
// 		    return false;}

	      if (paperwidth > 44 & paperheight > 44) {
   		    alert("Paper roll width is 44\". Only one of the dimensions can exceed 44\" (including borders)");
 		    return false;}

		  if (imagesqin >0 & imagesqin<=2000){pricebreak1 = .23;}
		  if (imagesqin >2000 & imagesqin<=6000){pricebreak1 = .19;}
	  	  if (imagesqin >6000 & imagesqin<=14000){pricebreak1 = .16;}
		  if (imagesqin >14000 & imagesqin<=29000){pricebreak1 = .14;}
		  if (imagesqin >29000 & imagesqin<=150000){pricebreak1 = .12;}
		  if (imagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }

		  if (totalimagesqin >0 & totalimagesqin<=2000){pricebreak2 = .23;}
		  if (totalimagesqin >2000 & totalimagesqin<=6000){pricebreak2 = .19;}
		  if (totalimagesqin >6000 & totalimagesqin<=14000){pricebreak2 = .16;}
		  if (totalimagesqin >14000 & totalimagesqin<=29000){pricebreak2 = .14;}
		  if (totalimagesqin >29000 & totalimagesqin<=150000){pricebreak2 = .12;}
		  if (totalimagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (papersqin >0 & papersqin<=2000){pricebreak3 = .23;}
		  if (papersqin >2000 & papersqin<=6000){pricebreak3 = .19;}
	  	  if (papersqin >6000 & papersqin<=14000){pricebreak3 = .16;}
		  if (papersqin >14000 & papersqin<=29000){pricebreak3 = .14;}
		  if (papersqin >29000 & papersqin<=150000){pricebreak3 = .12;}
		  if (papersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (totalpapersqin >0 & totalpapersqin<=2000){pricebreak4 = .23;}
		  if (totalpapersqin >2000 & totalpapersqin<=6000){pricebreak4 = .19;}
		  if (totalpapersqin >6000 & totalpapersqin<=14000){pricebreak4 = .16;}
		  if (totalpapersqin >14000 & totalpapersqin<=29000){pricebreak4 = .14;}
		  if (totalpapersqin >29000 & totalpapersqin<=150000){pricebreak4 = .12;}
		  if (totalpapersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
          break;    
 		case 3: //Lasal Photo Matte
//	      if (papersqin < 1.069) {
//   		    alert("The minimum paper size is 11x14 inches or 1.07 sqin.");
// 		    return false;}

	      if (paperwidth > 44 & paperheight > 44) {
   		    alert("Paper roll width is 44\". Only one of the dimensions can exceed 44\" (including borders)");
 		    return false;}

		  if (imagesqin >0 & imagesqin<=2000){pricebreak1 = .23;}
		  if (imagesqin >2000 & imagesqin<=6000){pricebreak1 = .19;}
	  	  if (imagesqin >6000 & imagesqin<=14000){pricebreak1 = .16;}
		  if (imagesqin >14000 & imagesqin<=29000){pricebreak1 = .14;}
		  if (imagesqin >29000 & imagesqin<=150000){pricebreak1 = .12;}
		  if (imagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }

		  if (totalimagesqin >0 & totalimagesqin<=2000){pricebreak2 = .23;}
		  if (totalimagesqin >2000 & totalimagesqin<=6000){pricebreak2 = .19;}
		  if (totalimagesqin >6000 & totalimagesqin<=14000){pricebreak2 = .16;}
		  if (totalimagesqin >14000 & totalimagesqin<=29000){pricebreak2 = .14;}
		  if (totalimagesqin >29000 & totalimagesqin<=150000){pricebreak2 = .12;}
		  if (totalimagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (papersqin >0 & papersqin<=2000){pricebreak3 = .23;}
		  if (papersqin >2000 & papersqin<=6000){pricebreak3 = .19;}
	  	  if (papersqin >6000 & papersqin<=14000){pricebreak3 = .16;}
		  if (papersqin >14000 & papersqin<=29000){pricebreak3 = .14;}
		  if (papersqin >29000 & papersqin<=150000){pricebreak3 = .12;}
		  if (papersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (totalpapersqin >0 & totalpapersqin<=2000){pricebreak4 = .23;}
		  if (totalpapersqin >2000 & totalpapersqin<=6000){pricebreak4 = .19;}
		  if (totalpapersqin >6000 & totalpapersqin<=14000){pricebreak4 = .16;}
		  if (totalpapersqin >14000 & totalpapersqin<=29000){pricebreak4 = .14;}
		  if (totalpapersqin >29000 & totalpapersqin<=150000){pricebreak4 = .12;}
		  if (totalpapersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
          break;
        case 4: //Fine Art Baryta
//	      if (papersqin < 1.069) {
//   		    alert("The minimum paper size is 11x14 inches or 1.07 sqin.");
// 		    return false;}



	      if (paperwidth > 44 & paperheight > 44) {
   		    alert("Paper roll width is 44\". Only one of the dimensions can exceed 44\" (including borders)");
 		    return false;}

		  if (imagesqin >0 & imagesqin<=2000){pricebreak1 = .23;}
		  if (imagesqin >2000 & imagesqin<=6000){pricebreak1 = .19;}
	  	  if (imagesqin >6000 & imagesqin<=14000){pricebreak1 = .16;}
		  if (imagesqin >14000 & imagesqin<=29000){pricebreak1 = .14;}
		  if (imagesqin >29000 & imagesqin<=150000){pricebreak1 = .12;}
		  if (imagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }

		  if (totalimagesqin >0 & totalimagesqin<=2000){pricebreak2 = .23;}
		  if (totalimagesqin >2000 & totalimagesqin<=6000){pricebreak2 = .19;}
		  if (totalimagesqin >6000 & totalimagesqin<=14000){pricebreak2 = .16;}
		  if (totalimagesqin >14000 & totalimagesqin<=29000){pricebreak2 = .14;}
		  if (totalimagesqin >29000 & totalimagesqin<=150000){pricebreak2 = .12;}
		  if (totalimagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (papersqin >0 & papersqin<=2000){pricebreak3 = .23;}
		  if (papersqin >2000 & papersqin<=6000){pricebreak3 = .19;}
	  	  if (papersqin >6000 & papersqin<=14000){pricebreak3 = .16;}
		  if (papersqin >14000 & papersqin<=29000){pricebreak3 = .14;}
		  if (papersqin >29000 & papersqin<=150000){pricebreak3 = .12;}
		  if (papersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (totalpapersqin >0 & totalpapersqin<=2000){pricebreak4 = .23;}
		  if (totalpapersqin >2000 & totalpapersqin<=6000){pricebreak4 = .19;}
		  if (totalpapersqin >6000 & totalpapersqin<=14000){pricebreak4 = .16;}
		  if (totalpapersqin >14000 & totalpapersqin<=29000){pricebreak4 = .14;}
		  if (totalpapersqin >29000 & totalpapersqin<=150000){pricebreak4 = .12;}
		  if (totalpapersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
          break;
		case 5: //Photo Rag BW
//	      if (papersqin < 1.069) {
//   		    alert("The minimum paper size is 11x14 inches or 1.07 sqin.");
// 		    return false;}

	      if (paperwidth > 44 & paperheight > 44) {
   		    alert("Paper roll width is 44\". Only one of the dimensions can exceed 44\" (including borders)");
 		    return false;}

		  if (imagesqin >0 & imagesqin<=2000){pricebreak1 = .23;}
		  if (imagesqin >2000 & imagesqin<=6000){pricebreak1 = .19;}
	  	  if (imagesqin >6000 & imagesqin<=14000){pricebreak1 = .16;}
		  if (imagesqin >14000 & imagesqin<=29000){pricebreak1 = .14;}
		  if (imagesqin >29000 & imagesqin<=150000){pricebreak1 = .12;}
		  if (imagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }

		  if (totalimagesqin >0 & totalimagesqin<=2000){pricebreak2 = .23;}
		  if (totalimagesqin >2000 & totalimagesqin<=6000){pricebreak2 = .19;}
		  if (totalimagesqin >6000 & totalimagesqin<=14000){pricebreak2 = .16;}
		  if (totalimagesqin >14000 & totalimagesqin<=29000){pricebreak2 = .14;}
		  if (totalimagesqin >29000 & totalimagesqin<=150000){pricebreak2 = .12;}
		  if (totalimagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (papersqin >0 & papersqin<=2000){pricebreak3 = .23;}
		  if (papersqin >2000 & papersqin<=6000){pricebreak3 = .19;}
	  	  if (papersqin >6000 & papersqin<=14000){pricebreak3 = .16;}
		  if (papersqin >14000 & papersqin<=29000){pricebreak3 = .14;}
		  if (papersqin >29000 & papersqin<=150000){pricebreak3 = .12;}
		  if (papersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (totalpapersqin >0 & totalpapersqin<=2000){pricebreak4 = .23;}
		  if (totalpapersqin >2000 & totalpapersqin<=6000){pricebreak4 = .19;}
		  if (totalpapersqin >6000 & totalpapersqin<=14000){pricebreak4 = .16;}
		  if (totalpapersqin >14000 & totalpapersqin<=29000){pricebreak4 = .14;}
		  if (totalpapersqin >29000 & totalpapersqin<=150000){pricebreak4 = .12;}
		  if (totalpapersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
          break;
        case 6: //Photo Semi-Gloss
//	      if (papersqin < 1.069) {
//   		    alert("The minimum paper size is 11x14 inches or 1.07 sqin.");
// 		    return false;}

	      if (paperwidth > 60 & paperheight > 60) {
   		    alert("Paper roll width is 60\". Only one of the dimensions can exceed 60\" (including borders)");
 		    return false;}

		  if (imagesqin >0 & imagesqin<=2000){pricebreak1 = .23;}
		  if (imagesqin >2000 & imagesqin<=6000){pricebreak1 = .19;}
	  	  if (imagesqin >6000 & imagesqin<=14000){pricebreak1 = .16;}
		  if (imagesqin >14000 & imagesqin<=29000){pricebreak1 = .14;}
		  if (imagesqin >29000 & imagesqin<=150000){pricebreak1 = .12;}
		  if (imagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }

		  if (totalimagesqin >0 & totalimagesqin<=2000){pricebreak2 = .23;}
		  if (totalimagesqin >2000 & totalimagesqin<=6000){pricebreak2 = .19;}
		  if (totalimagesqin >6000 & totalimagesqin<=14000){pricebreak2 = .16;}
		  if (totalimagesqin >14000 & totalimagesqin<=29000){pricebreak2 = .14;}
		  if (totalimagesqin >29000 & totalimagesqin<=150000){pricebreak2 = .12;}
		  if (totalimagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (papersqin >0 & papersqin<=2000){pricebreak3 = .23;}
		  if (papersqin >2000 & papersqin<=6000){pricebreak3 = .19;}
	  	  if (papersqin >6000 & papersqin<=14000){pricebreak3 = .16;}
		  if (papersqin >14000 & papersqin<=29000){pricebreak3 = .14;}
		  if (papersqin >29000 & papersqin<=150000){pricebreak3 = .12;}
		  if (papersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (totalpapersqin >0 & totalpapersqin<=2000){pricebreak4 = .23;}
		  if (totalpapersqin >2000 & totalpapersqin<=6000){pricebreak4 = .19;}
		  if (totalpapersqin >6000 & totalpapersqin<=14000){pricebreak4 = .16;}
		  if (totalpapersqin >14000 & totalpapersqin<=29000){pricebreak4 = .14;}
		  if (totalpapersqin >29000 & totalpapersqin<=150000){pricebreak4 = .12;}
		  if (totalpapersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
          break;
        case 7: //Somerset Velvet
//	      if (papersqin < 1.069) {
//   		    alert("The minimum paper size is 11x14 inches or 1.07 sqin.");
// 		    return false;}

	      if (paperwidth > 60 || paperheight > 44) {
   		    alert("Paper sheet size is 44\"x60\". The height and width cannot exceed 44\" and 60\" respectively (including borders)");
 		    return false;}

		  if (imagesqin >0 & imagesqin<=2000){pricebreak1 = .23;}
		  if (imagesqin >2000 & imagesqin<=6000){pricebreak1 = .19;}
	  	  if (imagesqin >6000 & imagesqin<=14000){pricebreak1 = .16;}
		  if (imagesqin >14000 & imagesqin<=29000){pricebreak1 = .14;}
		  if (imagesqin >29000 & imagesqin<=150000){pricebreak1 = .12;}
		  if (imagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }

		  if (totalimagesqin >0 & totalimagesqin<=2000){pricebreak2 = .23;}
		  if (totalimagesqin >2000 & totalimagesqin<=6000){pricebreak2 = .19;}
		  if (totalimagesqin >6000 & totalimagesqin<=14000){pricebreak2 = .16;}
		  if (totalimagesqin >14000 & totalimagesqin<=29000){pricebreak2 = .14;}
		  if (totalimagesqin >29000 & totalimagesqin<=150000){pricebreak2 = .12;}
		  if (totalimagesqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (papersqin >0 & papersqin<=2000){pricebreak3 = .23;}
		  if (papersqin >2000 & papersqin<=6000){pricebreak3 = .19;}
	  	  if (papersqin >6000 & papersqin<=14000){pricebreak3 = .16;}
		  if (papersqin >14000 & papersqin<=29000){pricebreak3 = .14;}
		  if (papersqin >29000 & papersqin<=150000){pricebreak3 = .12;}
		  if (papersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
		  if (totalpapersqin >0 & totalpapersqin<=2000){pricebreak4 = .23;}
		  if (totalpapersqin >2000 & totalpapersqin<=6000){pricebreak4 = .19;}
		  if (totalpapersqin >6000 & totalpapersqin<=14000){pricebreak4 = .16;}
		  if (totalpapersqin >14000 & totalpapersqin<=29000){pricebreak4 = .14;}
		  if (totalpapersqin >29000 & totalpapersqin<=150000){pricebreak4 = .12;}
		  if (totalpapersqin >150000) {
			alert("Please contact our Customer Service for a special quote.");
			return false;
		  }
		  
          break;

      } //switch

//  FORM CALCULATIONS

//
//    Calculate the MOUNTING and LAMINATING prices
//

	  if (document.frmCalc.FormMounting.value == 0) {
	        document.frmCalc.FormPriceM2.value = 'N/A';
	        document.frmCalc.FormTotalPriceM.value = 'N/A';
	  }				
	  if (document.frmCalc.FormMounting.value == 1) {
      		document.frmCalc.FormPriceM2.value = '$ ' + Math.ceil(Math.round((papersqin * factorC * pricebreak4) * 100) / 100);
      		document.frmCalc.FormTotalPriceM.value = '$ ' + Math.ceil(Math.round((papersqin * factorC * pricebreak4) * 100) / 100) * quantity;		
	  }				
	  if (document.frmCalc.FormMounting.value == 2) {
      		document.frmCalc.FormPriceM2.value = '$ ' + Math.ceil(Math.round((papersqin * factorD * pricebreak4) * 100) / 100);
      		document.frmCalc.FormTotalPriceM.value = '$ ' + Math.ceil(Math.round((papersqin * factorD * pricebreak4) * 100) / 100) * quantity;		
	  }				
	  if (document.frmCalc.FormMounting.value == 3) {
      		document.frmCalc.FormPriceM2.value = '$ ' + Math.ceil(Math.round((papersqin * factorE * pricebreak4) * 100) / 100);
      		document.frmCalc.FormTotalPriceM.value = '$ ' + Math.ceil(Math.round((papersqin * factorE * pricebreak4) * 100) / 100) * quantity;		
	  }				
	  if (document.frmCalc.FormMounting.value == 4) {
      		document.frmCalc.FormPriceM2.value = '$ ' + Math.ceil(Math.round((papersqin * factorF * pricebreak4) * 100) / 100);
      		document.frmCalc.FormTotalPriceM.value = '$ ' + Math.ceil(Math.round((papersqin * factorF * pricebreak4) * 100) / 100) * quantity;		
	  }

//
//    Calculate the PRINT prices for WHITE and COLOURED borders
//

	  document.frmCalc.FormPriceCB1.value = '$ ' + Math.ceil(Math.round((papersqin * pricebreak3) * 100) / 100);
	  document.frmCalc.FormPriceCB2.value = '$ ' + Math.ceil(Math.round((papersqin * pricebreak4) * 100) / 100);
	  document.frmCalc.FormTotalPriceCB.value = '$ ' + Math.ceil(Math.round((papersqin * pricebreak4) * 100) / 100) * quantity;		
	  savings = Math.ceil(Math.round((papersqin * pricebreak4) * 100) / 100) / Math.ceil(Math.round((papersqin * pricebreak3) * 100) / 100);
	  document.frmCalc.FormQty.value = quantity + ' Prints';

	  if (document.frmCalc.FormQuantity.value > 1) {
			document.frmCalc.FormSavings.value = 100 - Math.round(savings * 100) + '%';
	  } else {
			document.frmCalc.FormSavings.value = 0 + '%';
	  }				

	  if (document.frmCalc.FormBorderSize.value == 0) {
			document.frmCalc.FormTotalSqin.value = Math.ceil(Math.round(totalimagesqin * 100) / 100);
	  } else {
			document.frmCalc.FormTotalSqin.value = Math.ceil(Math.round(totalpapersqin * 100) / 100);
	  }				

	  if (document.frmCalc.FormBorderSize.value == 0) {
      		document.frmCalc.FormPriceCB2.value = '$ ' + Math.ceil(Math.round((imagesqin * pricebreak2) * 100) / 100);
	  } else {
			document.frmCalc.FormPriceCB2.value = '$ ' + Math.ceil(Math.round((papersqin * pricebreak4) * 100) / 100);
	  }

	  if (document.frmCalc.FormBorderSize.value == 0) {
     	    document.frmCalc.FormTotalPriceCB.value = '$ ' + Math.ceil(Math.round((imagesqin * pricebreak2) * 100) / 100) * quantity;
	  } else {
			document.frmCalc.FormTotalPriceCB.value = '$ ' + Math.ceil(Math.round((papersqin * pricebreak4) * 100) / 100) * quantity;		
	  }

//
//    Calculate the CLEAR COATING prices
//

		if (mediaTypeIndex == 1 || mediaTypeIndex == 2) {
			document.frmCalc.FormPriceCC.value = '$ ' + Math.ceil(Math.round((papersqin * factorJ * pricebreak1) * 100) / 100);
			document.frmCalc.FormTotalPriceCC.value = '$ ' + Math.ceil(Math.round((papersqin * factorJ * pricebreak1) * 100) / 100) * quantity;
		} else {
			document.frmCalc.FormPriceCC.value = 'N/A';
			document.frmCalc.FormTotalPriceCC.value = 'N/A';
		}

//
//    Calculate the STRETCHING prices
//

	  if (mediaTypeIndex == 1) {
		  if (document.frmCalc.FormBorderSize.value == 0 || document.frmCalc.FormBorderSize.value == 2 || document.frmCalc.FormBorderSize.value == 4 || document.frmCalc.FormBorderSize.value == 8 || document.frmCalc.FormBorderSize.value == 10 || document.frmCalc.FormBorderSize.value == 12 || document.frmCalc.FormBorderSize.value == 14 || document.frmCalc.FormBorderSize.value == 16 || document.frmCalc.FormBorderSize.value == 18 || document.frmCalc.FormBorderSize.value == 20) {
				alert("Only 1.5 and 2.25 inch borders are available for Stretching.");
				return false;
		  }				
	  }		

	  if (mediaTypeIndex == 2 || mediaTypeIndex == 3 || mediaTypeIndex == 4 || mediaTypeIndex == 5 || mediaTypeIndex == 6) {
	        document.frmCalc.FormPriceSB2.value = 'N/A';
	        document.frmCalc.FormTotalPriceSB.value = 'N/A';
	  }		
	  
	  if (document.frmCalc.FormBorderSize.value == 0 || document.frmCalc.FormBorderSize.value == 2 || document.frmCalc.FormBorderSize.value == 4 || document.frmCalc.FormBorderSize.value == 8 || document.frmCalc.FormBorderSize.value == 10 || document.frmCalc.FormBorderSize.value == 12 || document.frmCalc.FormBorderSize.value == 14 || document.frmCalc.FormBorderSize.value == 16 || document.frmCalc.FormBorderSize.value == 18 || document.frmCalc.FormBorderSize.value == 20) {
	        document.frmCalc.FormPriceSB2.value = 'N/A';
	        document.frmCalc.FormTotalPriceSB.value = 'N/A';
	  }				

	  if (document.frmCalc.FormBorderSize.value == 6) {
	        document.frmCalc.FormPriceSB2.value = '$ ' + Math.ceil(Math.round(((unitedinches * woodfactor1) + labourSB) * 100) / 100);
	        document.frmCalc.FormTotalPriceSB.value = '$ ' + Math.ceil(Math.round(((unitedinches * woodfactor1) + labourSB) * 100) / 100) * quantity;
	  }				

	  if (document.frmCalc.FormBorderSize.value == 9) {
	        document.frmCalc.FormPriceSB2.value = '$ ' + Math.ceil(Math.round(((unitedinches * woodfactor2) + labourSB) * 100) / 100);
	        document.frmCalc.FormTotalPriceSB.value = '$ ' + Math.ceil(Math.round(((unitedinches * woodfactor2) + labourSB) * 100) / 100) * quantity;
	  }				

    } //for    
    return false;
   }
