
<!-- 

function openWoodWindow(intype) {

new_win = window.open('http://www.bigblackfootnets.com/WoodSelect?selecttype='+intype,'woodselect','height=500,width=400,scrollbars=1,toolbar=0,status=0,location=0,directories=0');


}

function openWoodReview(intype) {

new_win = window.open('http://www.bigblackfootnets.com/WoodReview?intype='+intype,'woodselect','height=700,width=500,scrollbars=2,toolbar=0,status=0,location=0,directories=0');


}

function enlargePictureWindow(intype) {

new_win = window.open('http://www.bigblackfootnets.com/WoodReview?intype='+intype,'woodselect','height=700,width=500,scrollbars=2,toolbar=0,status=0,location=0,directories=0');


}


// Function for sending the selected type back to the selectspecs form...

function submitWoodSelect() {

	selectedWood = getRadioValue(this.selectwoodform.woodtype)

	thisType = this.selectwoodform.intype.value

	window.opener.changeForm(thisType,selectedWood);
	
	// eval("window.opener.specselectform."+thisType+".value = selectedWood")

	window.close()


}

function chgWoodImg(inType) {

	eval("selectedWood = this.specselectform."+inType+".value;");


	eval("imageSrc = woodHash['"+selectedWood+"'];");

	eval("imageUrl = '/images/submitted/"+imageSrc+"';");

	eval("linkUrl = '/ImageView?image="+imageSrc+"';");

	eval("document.img"+inType+".src = imageUrl;")

	eval("document.img"+inType+".link = linkUrl;")
		
	// change the price
	
	calculatePrice();

}

function getRadioValue (radioButtonOrGroup) {
  var value = null;
  if (radioButtonOrGroup.length) { // group 
    for (var b = 0; b < radioButtonOrGroup.length; b++)
      if (radioButtonOrGroup[b].checked)
        value = radioButtonOrGroup[b].value;
  }
  else if (radioButtonOrGroup.checked)
    value = radioButtonOrGroup.value;

  return value;

}

function calculatePrice() {

	var parray = new Array('shaft','slash','butt','hoopshape','hoopwood','handlelength','buttshape','throat');

//	var tmptotal = 1;

	var tmptotal = 1;
	
	tmptotal = this.specselectform.baseprice.value;
	tmptotal = (Math.round(tmptotal*100))/100;

	for(i=0 ; i<=7 ; i++) {
		eval("tmpval = this.specselectform."+parray[i]+".value;");

		eval("mycost = "+parray[i]+"PriceHash['"+tmpval+"'];");

		tmptotal = tmptotal + mycost;

//  		eval("tmptotal = tmptotal + "+parray[i]+"PriceHash['"+tmpval+"'];")
	
	}
	

	tmptotal = Cash(tmptotal);


//window.div1.innerHTML = strToWrite

	this.estimatedprice.innerHTML = "$ "+tmptotal	

}

function Cash(money) {
	money=Math.round(money*100).toString();
	if (money<10) return '0.0'+money;
	return (money<100)?'0.'+money:+money.substring(0,money.length-2)+'.'+money.substring(money.length-2,money.length);
}


// -->
