<!--
//-- Copyright David Thomas http://www.jewels.co.uk email dave@jewels.co.uk

//  The only differences in the nogold00.js and yesgold10.js files are the variation  
//  settings relating to each type of metal, plus discount settings for Spin & Win. See help.  

var vatrate = 0

// set variable spinwin to 0 if not wanted (not used in price lists, or to 1 if wanted using max 10%, 
// or 2 if using max 15% disc, // or to 3 if using max 20% disc, or to 4 if using max 25% disc, or to 
// 5 if using max 50% disc.
var spinwin = 0

if (spinwin > 0) {
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd
var winner3 = "ccc"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd
}

// **** Below this line relates to Metal Fluctuation & is used only for price lists ****

//  Important Note!! The varaiable metal=0 or metal=1 is set in nogold.js & yesgold.js files, and in 
//  price list items within the price list settings as the final setting. 
//  Important Note!! Metal Fluctuation control only applies to manufacturer price list items. 
//  Important Note!! Metal Fluctuation applies price control for all precious metals within each supplier 
//  in price lists you input "product description", "price", "metal type". 1=gold, 2=platinum, 3=silver  
//  You must use the files yesgold.js or nogold.js to set metal pricing functioning or non-functioning.
//  Supplier files such as 44fancy.js, 44plain.js, or 63.js overide default settings of the base precious
//  metal settings in nogold.js & yesgold.js, price lists do not use file types nogold00.js or yesgold10.js. 

//  Adjust base metal price settings for price lists here, note "nogold00" & "yesgold10" etc apply only 
//  to normal stock items & all settings below should be zero. To disable metal fluctuation for nogold.js 
//  for use with price lists set metal = 0, to re-enable in yesgold.js set metal = 1 in price list. 

var gold = 900
var platinum = 1800              
var silver = 9.80



// All configurable variables are above this line. Below this line are default settings only.

// All viewable text is above this line..... nothing in nogold.js & yesgold.js

// Variables below must not be changed, they are defaults but some are changed automatically 
// in the manufacturer file, example 44fancy.js.

//  Not implimented in single items, but in the future you may use percentup & percentdown as a starting
//  point, but probably not worth doing. These settings are over written in price lists. 
var percentup=0
var percentdown=0

var curate=0
var onoff = 0

document.write('<img src="http://www.jewels.co.uk/cgi-bin/cgi2/hitrack.cgi?'+document.referrer+'" width=1 height=1 border=0>');

//No rightclick script
function click(){
if(event.button==2){
alert('No Access. Copyright © 2001 D.Thomas.')
}}
document.onmousedown=click


function fix(num) {
 string = "" + num;
 if (string.indexOf('.') == -1)
  return string + '.00';
 seperation = string.length - string.indexOf('.');
 if (seperation > 3)
  return string.substring(0,string.length-seperation+3);
 else if (seperation == 2)
  return string + '0';
 return string;
}


function createArray(size) {
 for (var i=0; i < size; i++) {
  this[i] = null }
 return this
}

function Product(descrip, money, type) {
 this.description = descrip;
 this.price = money;
 this.metaltype = type;
}


function validate() {

     if (document.form1.price.value == 0) {alert("Please select an Item from the Product List");
         return false;}

    else
        {return true;}
}    

//-->
















