// JavaScript Document
function isObject(a) {
    return (a && typeof a == 'object') || isFunction(a);
}
function isFunction(a) {
    return typeof a == 'function';
}

function isUndefined(a) {
    return typeof a == 'undefined';
} 


//ring size
function ringSizeOptionText()
{
  var OptValue = document.getElementById("ringSize");
  var OptTxt = document.getElementById("ringSizeText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}

//halfSize
function halfSizeOptionText()
{
  var OptValue = document.getElementById("halfSize");
  var OptTxt = document.getElementById("halfSizeText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}

//metal
function metalOptionText()
{
	var OptValue = document.getElementById("metal");
	var OptTxt = document.getElementById("metalText");
	OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
	setPrice();
	return true;
}

function chainlengthOptionText()
{
	var OptValue = document.getElementById("chainlength");
	var OptTxt = document.getElementById("chainlengthText");
	OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
	setPrice();
	return true;
}


function sizeOptionText()
{
  var OptValue = document.getElementById("size");
  var OptTxt = document.getElementById("sizeText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//width
function widthOptionText()
{
  var OptValue = document.getElementById("width");
  var OptTxt = document.getElementById("widthText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//finish
function finishOptionText()
{
  var OptValue = document.getElementById("finish");
  var OptTxt = document.getElementById("finishText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//inlay
function inlayOptionText()
{
  var OptValue = document.getElementById("inlay");
  var OptTxt = document.getElementById("inlayText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//diamondWeight
function diamondWeightOptionText()
{
  var OptValue = document.getElementById("diamondWeight");
  var OptTxt = document.getElementById("diamondWeightText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//stones
function stonesOptionText()
{
  var OptValue = document.getElementById("stones");
  var OptTxt = document.getElementById("stonesText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//stoneSize
function stoneSizeOptionText()
{
  var OptValue = document.getElementById("stoneSize");
  var OptTxt = document.getElementById("stoneSizeText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//ctYellow18
function ctYellow18OptionText()
{
  var OptValue = document.getElementById("ctYellow18");
  var OptTxt = document.getElementById("ctYellow18Text");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//ctWhite18
function ctWhite18OptionText()
{
  var OptValue = document.getElementById("ctWhite18");
  var OptTxt = document.getElementById("ctWhite18Text");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}
//goldColour
function goldColourOptionText()
{
  var OptValue = document.getElementById("goldColour");
  var OptTxt = document.getElementById("goldColourText");
  OptTxt.value = OptValue.options[OptValue.selectedIndex].text;
  setPrice();
  return true;
}



