// JavaScript Document
// Copyright NISA Internet and Computer Solutions Limited 2008. All rights reserved.

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


// Price calculations

// Nescafe Gold Blend - ngb

function CalculatePrice_ngb(form)
{
if (document.ngb.os0.value == "Black (73mm)" )
 {
 document.ngb.amount.value = 24.50;
 } 
if (document.ngb.os0.value == "White (73mm)" )
 {
 document.ngb.amount.value = 25.50;
 }
if (document.ngb.os0.value == "White with Sugar (73mm)" )
 {
 document.ngb.amount.value = 26.70;
 }
if (document.ngb.os0.value == "Black (76mm)" )
 {
 document.ngb.amount.value = 24.50;
 } 
if (document.ngb.os0.value == "White (76mm)" )
 {
 document.ngb.amount.value = 25.50;
 }
if (document.ngb.os0.value == "Extra White (73mm)" )
 {
 document.ngb.amount.value = 26.70;
 }
}



// Nescafe Gold Blend Decaffinated - ngbd

function CalculatePrice_ngbd(form)
{
if (document.ngbd.os0.value == "Black (73mm)" )
 {
 document.ngbd.amount.value = 27.70;
 } 
if (document.ngbd.os0.value == "White (73mm)" )
 {
 document.ngbd.amount.value = 28.70;
 }
if (document.ngbd.os0.value == "White with Sugar (73mm)" )
 {
 document.ngbd.amount.value = 29.70;
 } 
if (document.ngbd.os0.value == "White (76mm)" )
 {
 document.ngbd.amount.value = 28.70;
 }
} 


// Douwe Egberts Pure Gold - depg

function CalculatePrice_depg(form)
{
if (document.depg.os0.value == "Black (73mm)" )
 {
 document.depg.amount.value = 24.50;
 } 
if (document.depg.os0.value == "White (73mm)" )
 {
 document.depg.amount.value = 25.50;
 }
if (document.depg.os0.value == "White with Sugar (73mm)" )
 {
 document.depg.amount.value = 26.50;
 }
if (document.depg.os0.value == "Black (76mm)" )
 {
 document.depg.amount.value = 24.50;
 } 
if (document.depg.os0.value == "White (76mm)" )
 {
 document.depg.amount.value = 25.50;
 }
} 



// Pure Colombian Coffee - pcc

function CalculatePrice_pcc(form)
{
if (document.pcc.os0.value == "Black (73mm)" )
 {
 document.pcc.amount.value = 22.50;
 } 
if (document.pcc.os0.value == "White (73mm)" )
 {
 document.pcc.amount.value = 23.50;
 }
} 


// PG Tips Tag Tea - pgttt

function CalculatePrice_pgttt(form)
{
if (document.pgttt.os0.value == "Black (73mm)" )
 {
 document.pgttt.amount.value = 23.50;
 } 
if (document.pgttt.os0.value == "White (73mm)" )
 {
 document.pgttt.amount.value = 24.50;
 }
if (document.pgttt.os0.value == "White with Sugar (73mm)" )
 {
 document.pgttt.amount.value = 26.00;
 } 
if (document.pgttt.os0.value == "Black (76mm)" )
 {
 document.pgttt.amount.value = 23.50;
 } 
if (document.pgttt.os0.value == "White (76mm)" )
 {
 document.pgttt.amount.value = 24.50;
 }
} 


// Knorr Soup - ks

function CalculatePrice_ks(form)
{
if (document.ks.os0.value == "Chicken (73mm)" )
 {
 document.ks.amount.value = 26.50;
 } 
if (document.ks.os0.value == "Minestrone (73mm)" )
 {
 document.ks.amount.value = 26.50;
 }
if (document.ks.os0.value == "Vegetable (73mm)" )
 {
 document.ks.amount.value = 26.50;
 }
if (document.ks.os0.value == "Tomato (73mm)" )
 {
 document.ks.amount.value = 26.50;
 }
if (document.ks.os0.value == "Chicken (76mm)" )
 {
 document.ks.amount.value = 26.50;
 }
if (document.ks.os0.value == "Vegetable (76mm)" )
 {
 document.ks.amount.value = 26.50;
 }
} 


// Vending Sugar - sugar

function CalculatePrice_sugar(form)
{
if (document.sugar.os0.value == "Sugar" )
 {
 document.sugar.amount.value = 16.00;
 } 
if (document.sugar.os0.value == "White Sugar Sachets" )
 {
 document.sugar.amount.value = 7.00;
 }
if (document.sugar.os0.value == "Brown Sugar Sachets" )
 {
 document.sugar.amount.value = 7.00;
 }
} 



// Plantation Ground Coffee - pgc

function CalculatePrice_pgc(form)
{
if (document.pgc.os0.value == "Filter Coffee 45 x 60g" )
 {
 document.pgc.amount.value = 38.00;
 } 
if (document.pgc.os0.value == "Bulk Brew Filter Coffee 30 x 175g" )
 {
 document.pgc.amount.value = 41.00;
 }

}

// Plantation Coffee Beans - pcb

function CalculatePrice_pcb(form)
{
if (document.pcb.os0.value == "Super Creme" )
 {
 document.pcb.amount.value = 56.00;
 } 
if (document.pcb.os0.value == "Severa Espresso" )
 {
 document.pcb.amount.value = 56.00;
 }
if (document.pcb.os0.value == "Honduran Ethical Espresso" )
 {
 document.pcb.amount.value = 63.50;
 }
} 


// Soluble Soup - soup

function CalculatePrice_soup(form)
{
if (document.soup.os0.value == "Chicken" )
 {
 document.soup.amount.value = 23.50;
 } 
if (document.soup.os0.value == "Vegetable" )
 {
 document.soup.amount.value = 23.50;
 }
if (document.soup.os0.value == "Tomato" )
 {
 document.soup.amount.value = 23.50;
 }
}
